diff --git a/frontend/src/styles/pages/main.css b/frontend/src/styles/pages/main.css index 23d88d8..7353d80 100644 --- a/frontend/src/styles/pages/main.css +++ b/frontend/src/styles/pages/main.css @@ -39,7 +39,7 @@ ul.wp-block-list li{ } .news-list-picture{ - /** height: 21rem !important;*/ + height: 21rem !important; object-fit: cover; width: 100%; } @@ -88,7 +88,8 @@ ul.wp-block-list li{ } -@media (max-width: 1439px) { +/** @media (max-width: 1439px) { */ +@media (min-width: 768px) and (max-width: 1024px) { .content { grid-template-columns: 36.4rem 1fr; grid-template-areas: @@ -101,6 +102,7 @@ ul.wp-block-list li{ 'middle middle' 'right right'; } + } @media (max-width: 767px) { diff --git a/frontend/src/styles/rfo/article.css b/frontend/src/styles/rfo/article.css index 41d2ffd..521147f 100644 --- a/frontend/src/styles/rfo/article.css +++ b/frontend/src/styles/rfo/article.css @@ -23,6 +23,16 @@ border-radius: 14px; } +.article-interview-wrapper__rfo{ + /* flex: 0 0 auto; Запрещаем растягивание и сжатие */ + background-color: white; + border: 6px solid white; + padding-top: 22px; + border-radius: 14px; +} + + + .article-item-rfo{ position: relative; flex-shrink: 0; @@ -32,11 +42,10 @@ /* МАСКА через встроенный data URI */ - -webkit-mask-image: url('data:image/svg+xml;utf8,'); + -webkit-mask-image: var(--article-item-mask); -webkit-mask-repeat: no-repeat; -webkit-mask-size: cover; - - mask-image: url('data:image/svg+xml;utf8,'); + mask-image: var(--article-item-mask); mask-repeat: no-repeat; mask-size: cover; } diff --git a/frontend/src/styles/rfo/rfo.css b/frontend/src/styles/rfo/rfo.css index 1a13ddc..3830165 100644 --- a/frontend/src/styles/rfo/rfo.css +++ b/frontend/src/styles/rfo/rfo.css @@ -8,6 +8,7 @@ --seryy: #c4d3d9; --2: #f1f3eb; --tekst: #2f2f2f; + --article-item-mask: url('data:image/svg+xml;utf8,'); } .header-rfo { diff --git a/rfo/category-end.php b/rfo/category-end.php index 4a53be5..f0c3c77 100644 --- a/rfo/category-end.php +++ b/rfo/category-end.php @@ -12,6 +12,7 @@ // Извлекаем параметры $category = isset($args['category']) ? $args['category'] : 'rfo'; $title = isset($args['title']) ? $args['title'] : 'РФО'; +$wrapper = isset($args['wrapper']) ? $args['wrapper'] : 'article-item-wrapper__rfo'; $style = isset($args['style']) ? $args['style'] : 0; $posts_count = isset($args['posts_count']) ? $args['posts_count'] : 1; ?> @@ -28,7 +29,7 @@ $posts_count = isset($args['posts_count']) ? $args['posts_count'] : 1; if ($query->have_posts()) : ?> -
+
diff --git a/rfo/landing.php b/rfo/landing.php index dda022c..720fc93 100644 --- a/rfo/landing.php +++ b/rfo/landing.php @@ -6,8 +6,9 @@ 'opinion', // slug рубрики - 'style' => '', - 'title' => 'Интервью' + 'wrapper' => 'article-interview-wrapper__rfo', + 'style' => '', + 'title' => 'Интервью' ]);?>