mirror of
https://ghproxy.net/https://github.com/AlxMedia/incolor.git
synced 2025-08-26 08:17:39 +08:00
Fix card class name
This commit is contained in:
parent
c4d4d09d98
commit
f786391a4c
3 changed files with 10 additions and 10 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
<?php get_template_part('inc/page-title'); ?>
|
||||
|
||||
<div class="featured-card-category group">
|
||||
<div class="category-featured-cards group">
|
||||
<?php
|
||||
while ( $loop_featured->have_posts() ) : $loop_featured->the_post();
|
||||
$ids[] = get_the_ID();
|
||||
|
|
|
@ -190,10 +190,10 @@
|
|||
.front-widgets { padding: 10px 15px 10px 15px; }
|
||||
|
||||
/* category */
|
||||
.featured-card-category .featured-card-outer { width: 100%; margin: 20px 0 0; }
|
||||
.featured-card-category .featured-card-outer:nth-child(1) .featured-card { margin-right: 0; }
|
||||
.featured-card-category .featured-card-outer:nth-child(2) .featured-card { margin-left: 0; }
|
||||
.featured-card-category .featured-card-image-wrapper { height: 160px; }
|
||||
.category-featured-cards .featured-card-outer { width: 100%; margin: 20px 0 0; }
|
||||
.category-featured-cards .featured-card-outer:nth-child(1) .featured-card { margin-right: 0; }
|
||||
.category-featured-cards .featured-card-outer:nth-child(2) .featured-card { margin-left: 0; }
|
||||
.category-featured-cards .featured-card-image-wrapper { height: 160px; }
|
||||
|
||||
/* single */
|
||||
.entry-header .entry-title { font-size: 22px; letter-spacing: 0; }
|
||||
|
|
10
style.css
10
style.css
|
@ -754,11 +754,11 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
.featured-card-title { font-size: 18px; line-height: 1.5em; text-transform: uppercase; font-weight: 600; height: 80px; overflow: hidden; }
|
||||
.featured-card-title a { color: #fff; position: relative; }
|
||||
|
||||
body.category.paged .featured-card-category { display: none; }
|
||||
.featured-card-category .featured-card-outer { margin: 30px 0; float: left; width: 50%; }
|
||||
.featured-card-category .featured-card { margin: 0; }
|
||||
.featured-card-category .featured-card-outer:nth-child(1) .featured-card { margin-right: 20px; }
|
||||
.featured-card-category .featured-card-outer:nth-child(2) .featured-card { margin-left: 20px; }
|
||||
body.category.paged .category-featured-cards { display: none; }
|
||||
.category-featured-cards .featured-card-outer { margin: 30px 0; float: left; width: 50%; }
|
||||
.category-featured-cards .featured-card { margin: 0; }
|
||||
.category-featured-cards .featured-card-outer:nth-child(1) .featured-card { margin-right: 20px; }
|
||||
.category-featured-cards .featured-card-outer:nth-child(2) .featured-card { margin-left: 20px; }
|
||||
|
||||
.card-comments { background: #009ae4; color: #fff; padding: 1px 8px; position: absolute; right: 0; top: 20px; transition: all 0.2s ease; }
|
||||
.card-comments:hover span { padding-right: 10px; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue