From 22e141cd81954202d21a71cf02b7cc6588cb7bd3 Mon Sep 17 00:00:00 2001 From: Profile Profile Date: Mon, 9 Mar 2026 22:05:55 +0300 Subject: [PATCH] add ContentLayout.css --- src/styles/ContentLayout.css | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/styles/ContentLayout.css diff --git a/src/styles/ContentLayout.css b/src/styles/ContentLayout.css new file mode 100644 index 0000000..8af8fc2 --- /dev/null +++ b/src/styles/ContentLayout.css @@ -0,0 +1,45 @@ +.content-main{ + margin: 0 auto; + display: flex; + gap: 12px; + width: 100%; +} + + .content { + flex: 2; /* Занимает 2 части */ + } + + .sidebar { + /*flex: 1; Занимает 1 часть */ + min-width: 250px; /* Минимальная ширина для сайдбара */ + width: 250px; + } + + .banner { + min-width: 260px; + max-width: 260px; + min-height: 200px; + background: #f0f0f0; + } + + @media (max-width: 768px) { + + .content-main{ + width: 100%; + flex-direction: column; + margin: 0; + padding: 8px; + } + + .sidebar { + display: none; + } + + .content { + flex: 1; /* Контент на всю ширину */ + width: 100%; + } + + + } +