Fix card class name

This commit is contained in:
AlxMedia 2021-08-22 18:11:09 +02:00
parent c4d4d09d98
commit f786391a4c
3 changed files with 10 additions and 10 deletions

View file

@ -15,7 +15,7 @@
<?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/page-title'); ?>
<div class="featured-card-category group"> <div class="category-featured-cards group">
<?php <?php
while ( $loop_featured->have_posts() ) : $loop_featured->the_post(); while ( $loop_featured->have_posts() ) : $loop_featured->the_post();
$ids[] = get_the_ID(); $ids[] = get_the_ID();

View file

@ -190,10 +190,10 @@
.front-widgets { padding: 10px 15px 10px 15px; } .front-widgets { padding: 10px 15px 10px 15px; }
/* category */ /* category */
.featured-card-category .featured-card-outer { width: 100%; margin: 20px 0 0; } .category-featured-cards .featured-card-outer { width: 100%; margin: 20px 0 0; }
.featured-card-category .featured-card-outer:nth-child(1) .featured-card { margin-right: 0; } .category-featured-cards .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; } .category-featured-cards .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-image-wrapper { height: 160px; }
/* single */ /* single */
.entry-header .entry-title { font-size: 22px; letter-spacing: 0; } .entry-header .entry-title { font-size: 22px; letter-spacing: 0; }

View file

@ -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 { 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; } .featured-card-title a { color: #fff; position: relative; }
body.category.paged .featured-card-category { display: none; } body.category.paged .category-featured-cards { display: none; }
.featured-card-category .featured-card-outer { margin: 30px 0; float: left; width: 50%; } .category-featured-cards .featured-card-outer { margin: 30px 0; float: left; width: 50%; }
.featured-card-category .featured-card { margin: 0; } .category-featured-cards .featured-card { margin: 0; }
.featured-card-category .featured-card-outer:nth-child(1) .featured-card { margin-right: 20px; } .category-featured-cards .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; } .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 { 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; } .card-comments:hover span { padding-right: 10px; }