From 8ee9604061267bcb41eec95f299dcfeddc7ea1d6 Mon Sep 17 00:00:00 2001 From: argoexpert press Date: Sat, 28 Jun 2025 21:59:01 +0300 Subject: [PATCH] reverse right column --- content-post-rfo.php | 10 ++++++---- frontend/src/global.css | 10 ++++++++++ frontend/src/styles/components/agro-informer.css | 10 ++++++++++ frontend/src/styles/components/article-item.css | 2 ++ frontend/src/styles/layout/container.css | 1 + frontend/src/styles/layout/header/header.css | 1 + frontend/src/styles/pages/main.css | 6 ++---- rfo/landing.php | 2 +- sidebar-left.php | 5 ++--- 9 files changed, 35 insertions(+), 12 deletions(-) diff --git a/content-post-rfo.php b/content-post-rfo.php index abd19e9..654a05c 100644 --- a/content-post-rfo.php +++ b/content-post-rfo.php @@ -21,10 +21,12 @@ $has_video = isset($args['has_video']) ? $args['has_video'] : false;
-
- - - +
+
+ + + +
diff --git a/frontend/src/global.css b/frontend/src/global.css index 95e3d5b..209745a 100644 --- a/frontend/src/global.css +++ b/frontend/src/global.css @@ -85,4 +85,14 @@ button { .btn_download{ border: 2px solid black; +} + + +@media (max-width: 768px) { + + body, html { + width: 100%; + max-width: 100%; + } + } \ No newline at end of file diff --git a/frontend/src/styles/components/agro-informer.css b/frontend/src/styles/components/agro-informer.css index 1f79f76..74449b3 100644 --- a/frontend/src/styles/components/agro-informer.css +++ b/frontend/src/styles/components/agro-informer.css @@ -35,3 +35,13 @@ font-weight: 700; padding: 12px; } + + + +@media (max-width: 768px) { + + .agro-widget { + overflow: hidden; + } + +} diff --git a/frontend/src/styles/components/article-item.css b/frontend/src/styles/components/article-item.css index f94320b..fa26ee0 100644 --- a/frontend/src/styles/components/article-item.css +++ b/frontend/src/styles/components/article-item.css @@ -64,6 +64,7 @@ .article-item--lg .article-item__image-container img { height: 41.5rem; + max-width: 100%; } .article-item--lg .article-item__text { @@ -135,6 +136,7 @@ .article-item { width: 100%; + max-width: 100%; } .article-item-mob{ diff --git a/frontend/src/styles/layout/container.css b/frontend/src/styles/layout/container.css index be0eb4e..7c3fe51 100644 --- a/frontend/src/styles/layout/container.css +++ b/frontend/src/styles/layout/container.css @@ -6,5 +6,6 @@ @media (max-width: 767px) { .container { padding: 0 2rem; + max-width: 100%; } } diff --git a/frontend/src/styles/layout/header/header.css b/frontend/src/styles/layout/header/header.css index 81c5cf5..076fb76 100644 --- a/frontend/src/styles/layout/header/header.css +++ b/frontend/src/styles/layout/header/header.css @@ -129,6 +129,7 @@ .header__inner { padding: 1.5rem 0; + max-width: 100%; } .header__logo { diff --git a/frontend/src/styles/pages/main.css b/frontend/src/styles/pages/main.css index 7353d80..352163c 100644 --- a/frontend/src/styles/pages/main.css +++ b/frontend/src/styles/pages/main.css @@ -88,8 +88,7 @@ ul.wp-block-list li{ } -/** @media (max-width: 1439px) { */ -@media (min-width: 768px) and (max-width: 1024px) { +@media (max-width: 1439px) { .content { grid-template-columns: 36.4rem 1fr; grid-template-areas: @@ -102,7 +101,6 @@ ul.wp-block-list li{ 'middle middle' 'right right'; } - } @media (max-width: 767px) { @@ -434,4 +432,4 @@ ul.wp-block-list li{ .no-mobile-border { border: none; } -} \ No newline at end of file +} diff --git a/rfo/landing.php b/rfo/landing.php index 70bc03f..e0f1836 100644 --- a/rfo/landing.php +++ b/rfo/landing.php @@ -6,7 +6,7 @@ 'opinion', // slug рубрики - 'style' => 'short', + 'style' => '', 'title' => 'Интервью', 'has_video' => true ]);?> diff --git a/sidebar-left.php b/sidebar-left.php index af89aa8..787eb60 100644 --- a/sidebar-left.php +++ b/sidebar-left.php @@ -38,10 +38,9 @@ if ( in_category('interviews') ) { - + - - +