new style yets moread

This commit is contained in:
arlemp@selectel.ru
2022-08-17 11:49:37 +03:00
parent 1ce92069c7
commit e624534b02
3 changed files with 12 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<?php $posts = get_posts( array(
'numberposts' => 6,
'numberposts' => 4,
'category' => $category_id, // текущая рубрика
'orderby' => 'date',
'order' => 'DESC',

View File

@@ -10,7 +10,7 @@
<?if (defined('TESTMODE') and TESTMODE == 1):?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style-test.css?ver=3">
<?else:?>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=280">
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=283">
<?endif?>
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
<!--<link href="<?php echo get_stylesheet_directory_uri()?>/pub/fontawesome.css" rel="stylesheet">-->

View File

@@ -2507,14 +2507,18 @@ span.rub_back_title{
}
@media screen and (min-width: 1800px) {
@media screen and (min-width: 1600px) {
#yets-5, #yets-6{
display: block;
}
.moread{
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-template-rows: 2fr;
grid-auto-rows: 0;
overflow-y: hidden;
row-gap: 0;
}
}
@@ -2895,3 +2899,7 @@ and (max-device-width : 667px) {