From 8dd57b83c003c1b6aa4ce0b217a601651985182d Mon Sep 17 00:00:00 2001 From: vicmarchesi Date: Sun, 10 Nov 2024 13:40:01 +0000 Subject: [PATCH] Solved Lab --- styles/style.css | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/styles/style.css b/styles/style.css index 9571ab1..86f793a 100644 --- a/styles/style.css +++ b/styles/style.css @@ -177,3 +177,77 @@ header { } /* Write your CSS below */ + +@media (max-width: 760px) { + .navbar { + display: flex; + flex-direction: column; + } + .navbar li { + width: 100%; + border: 1px white solid; + } + .main-article { + display: flex; + flex-direction: column; + width: 100%; + } + .main-article .content { + width: 100%; + padding: 0 20px; + height: auto; + } + + .main-article img { + width: 200%; + height: auto; + display: flex; + align-items: center; + } + + .articles-container { + display: flex; + flex-direction: column; + width: 100%; + } + + .article { + width: 100%; + padding: 20px; + border: 1px solid #ccc; + } +} + +@media (min-width: 760px) and (max-width: 1024px) { + .navbar { + display: flex; + flex-direction: row; + } + + .main-article { + display: grid; + align-items: center; + grid-template-columns: 1fr 1fr; + width: 100%; + } + .main-article .content { + width: 100%; + height: auto; + } + + .main-article img { + width: 200%; + height: 100%; + } + + .article { + width: 100%; + } + + .articles-container { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 20px; + grid-template-columns: 45% 45%; + } +} \ No newline at end of file