mirror of
https://ghproxy.net/https://github.com/AlxMedia/incolor.git
synced 2025-08-26 08:17:39 +08:00
Minor fixes
This commit is contained in:
parent
9cdc2a9e37
commit
06a28910e3
7 changed files with 26 additions and 7 deletions
|
@ -5,6 +5,9 @@
|
|||
<div class="featured-card-image-wrapper">
|
||||
<div class="featured-card-image" style="background-image:url('<?php if ( has_post_thumbnail() ): ?><?php the_post_thumbnail_url('incolor-medium'); ?><?php else: ?><?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png<?php endif; ?>');">
|
||||
<a class="featured-card-link" href="<?php the_permalink(); ?>"></a>
|
||||
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
|
||||
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
|
||||
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
|
||||
</div>
|
||||
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
|
||||
<a class="card-comments" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
<div class="list-card-left">
|
||||
<div class="list-card-image" style="background-image:url('<?php if ( has_post_thumbnail() ): ?><?php the_post_thumbnail_url('incolor-medium'); ?><?php else: ?><?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png<?php endif; ?>');">
|
||||
<a class="list-card-link" href="<?php the_permalink(); ?>"></a>
|
||||
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
|
||||
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
|
||||
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
|
||||
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
|
||||
<a class="card-comments" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -6,7 +6,7 @@ $featured = new WP_Query(
|
|||
'update_post_meta_cache' => false,
|
||||
'update_post_term_cache' => false,
|
||||
'ignore_sticky_posts' => 1,
|
||||
'posts_per_page' => absint( get_theme_mod('featured-posts-count','0') ),
|
||||
'posts_per_page' => absint( get_theme_mod('featured-posts-count','5') ),
|
||||
'cat' => absint( get_theme_mod('featured-category','') )
|
||||
)
|
||||
);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Incolor\n"
|
||||
"POT-Creation-Date: 2021-08-20 18:57+0200\n"
|
||||
"POT-Creation-Date: 2021-08-20 19:44+0200\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
|
16
readme.txt
16
readme.txt
|
@ -68,10 +68,22 @@ License: CC0 1.0 Universal (CC0 1.0)
|
|||
Source: https://stocksnap.io
|
||||
|
||||
Carousel images
|
||||
1. https://stocksnap.io/photo/X - CC0 1.0 Universal (CC0 1.0)
|
||||
1. https://stocksnap.io/photo/FLU1A9EK7E - CC0 1.0 Universal (CC0 1.0)
|
||||
2. https://stocksnap.io/photo/IUJP9OI22I - CC0 1.0 Universal (CC0 1.0)
|
||||
3. https://stocksnap.io/photo/EPNK1H7KBP - CC0 1.0 Universal (CC0 1.0)
|
||||
4. https://stocksnap.io/photo/13LKG0AGI0 - CC0 1.0 Universal (CC0 1.0)
|
||||
5. https://stocksnap.io/photo/3VLGQNBZP2 - CC0 1.0 Universal (CC0 1.0)
|
||||
|
||||
Content images
|
||||
1. https://stocksnap.io/photo/X - CC0 1.0 Universal (CC0 1.0)
|
||||
1. https://stocksnap.io/photo/13LKG0AGI0 - CC0 1.0 Universal (CC0 1.0)
|
||||
2. https://stocksnap.io/photo/3VLGQNBZP2 - CC0 1.0 Universal (CC0 1.0)
|
||||
3. https://stocksnap.io/photo/EPNK1H7KBP - CC0 1.0 Universal (CC0 1.0)
|
||||
|
||||
Sidebar images
|
||||
1. https://stocksnap.io/photo/13LKG0AGI0 - CC0 1.0 Universal (CC0 1.0)
|
||||
2. https://stocksnap.io/photo/3VLGQNBZP2 - CC0 1.0 Universal (CC0 1.0)
|
||||
3. https://stocksnap.io/photo/EPNK1H7KBP - CC0 1.0 Universal (CC0 1.0)
|
||||
4. https://stocksnap.io/photo/FLU1A9EK7E - CC0 1.0 Universal (CC0 1.0)
|
||||
|
||||
== Changelog ==
|
||||
|
||||
|
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 412 KiB After Width: | Height: | Size: 410 KiB |
|
@ -706,6 +706,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
.article-card { overflow: hidden; }
|
||||
.list-card { margin: 0 auto; max-width: 1280px; position: relative; padding: 20px 40px 20px 0; border: 1px solid transparent; border-bottom: 1px solid hsla(0,0%,100%,.15); transition: background-color .2s,border-color .2s,padding .2s; }
|
||||
.list-card:hover { background-color: rgba(255,255,255,.05); border-color: rgba(255,255,255,.3); padding-left: 20px; padding-right: 20px; }
|
||||
.list-card:hover .thumb-icon { background: #fff; color: #111; }
|
||||
.list-card-wrap { display: block; position: relative; padding-left: 270px; min-height: 140px; }
|
||||
.list-card-left { position: absolute; left: 0; top: 0; }
|
||||
.list-card-link { top: 0; bottom: 0; left: 0; position: absolute; right: 0; outline: none; }
|
||||
|
@ -742,8 +743,9 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
.featured-card:hover:after { border-color: rgba(255,255,255,0.3); }
|
||||
|
||||
.featured-card-image-wrapper { height: 180px; overflow: hidden; }
|
||||
.featured-card-image { width: 100%; height: 100%; background-size: cover; background-position: 50%; overflow: hidden; transition: all .5s cubic-bezier(0,0,0,1.15); }
|
||||
.featured-card-image { position: relative; width: 100%; height: 100%; background-size: cover; background-position: 50%; overflow: hidden; transition: all .5s cubic-bezier(0,0,0,1.15); }
|
||||
.featured-card:hover .featured-card-image { -ms-transform: scale(1.05); transform: scale(1.05); }
|
||||
.featured-card:hover .thumb-icon { background: #fff; color: #111; }
|
||||
.featured-card-link { top: 0; bottom: 0; left: 0; position: absolute; right: 0; outline: none; }
|
||||
.featured-card-link:focus { background: rgba(255,255,255,0.06); }
|
||||
.featured-card-content { padding: 30px; }
|
||||
|
@ -807,9 +809,8 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
* Section: Footer
|
||||
/* ------------------------------------------------------------------------- */
|
||||
#footer { background: rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.1); color: #777; position: relative; padding-bottom: 20px; }
|
||||
#footer .pad { padding-bottom: 20px; }
|
||||
|
||||
#footer-ads { text-align: center; padding: 10px 0; border-bottom: 1px solid #444; }
|
||||
#footer-ads { text-align: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
|
||||
#footer-ads .widget { padding-bottom: 0; font-size: 0; line-height: 0; }
|
||||
#footer-ads h3 { display: none; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue