From b3ac97840569ae591f1fd1f56001c09160a71ef4 Mon Sep 17 00:00:00 2001 From: Almas Khan Date: Tue, 2 Sep 2025 17:53:58 +0200 Subject: [PATCH 1/3] media query --- styles/style.css | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/styles/style.css b/styles/style.css index 9571ab1..0855fce 100644 --- a/styles/style.css +++ b/styles/style.css @@ -177,3 +177,36 @@ header { } /* Write your CSS below */ + +@media all and (max-width: 760px) { + .navbar { + flex-direction: column; + align-item: center; + } + .navbar li { + border-bottom: 1px solid white; + border-right: 0; + width: 100%; + padding: 2rem; + } + .navbar li:last-child { border-bottom:0 } + + .main-article { + display: flex; + flex-direction: column; + align-items: center; + width:100%; + } + .articles-container { + display: flex; + flex-direction: column; + gap: 20px; + width: 100%; + padding:0; + } + + .articles-container .article { + width:100% + } + +} \ No newline at end of file From 1a4a243a0ac59fa07003b869fa76cc66a63bd85c Mon Sep 17 00:00:00 2001 From: Almas Khan Date: Tue, 2 Sep 2025 18:06:46 +0200 Subject: [PATCH 2/3] media query --- styles/style.css | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/styles/style.css b/styles/style.css index 0855fce..2f618b3 100644 --- a/styles/style.css +++ b/styles/style.css @@ -209,4 +209,40 @@ header { width:100% } -} \ No newline at end of file +} + +@media (min-width: 760px) and (max-width: 1024px) { + .navbar { + display: flex; + justify-content: space-between; + padding: 0; + margin: 0; + } + + .navbar li { + flex: 1; + list-style: none; + } + + .navbar li:last-child a { + border-right: none; + } + + .main-article { + display: flex; + flex-direction: row; + align-items: center; + gap: 20px; + width: 100%; + margin-bottom: 20px; + } + + .main-article img { + width: 50%; + height: auto; + border-radius: 8px; + } + .main-article .content { + width: 50%; + } +} From 5e7fa06be593c36fb5c85f1ba17d66a479088bd7 Mon Sep 17 00:00:00 2001 From: Almas Khan Date: Thu, 4 Sep 2025 21:27:18 +0200 Subject: [PATCH 3/3] ironHack-news --- index.html | 1 + styles/style.css | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/index.html b/index.html index 1b8846b..dd76161 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@

Ironhack News