From 1a3d4baed9b5ac11d622f0f33703d0e533b8d7ce Mon Sep 17 00:00:00 2001 From: fabian-dietrich Date: Wed, 3 Sep 2025 15:29:27 +0200 Subject: [PATCH] done with lab git push gut status git status --- .vscode/settings.json | 3 ++ styles/style.css | 87 +++++++++++++++++++++++++++++++++++++++---- 2 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6b665aa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} diff --git a/styles/style.css b/styles/style.css index 9571ab1..d86a8e8 100644 --- a/styles/style.css +++ b/styles/style.css @@ -4,18 +4,28 @@ html { box-sizing: border-box; font-size: 16px; } - -*, *:before, *:after { + +*, +*:before, +*:after { box-sizing: inherit; } - -body, h1, h2, h3, h4, h5, h6, p, ol, ul { + +body, +h1, +h2, +h3, +h4, +h5, +h6, +p, +ol, +ul { margin: 0; padding: 0; font-weight: lighter; } - /* DO NOT REMOVE - Styling for the label showing the viewport width */ .viewport-dimensions { position: fixed; @@ -27,7 +37,7 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul { padding: 5px 8px; font-size: 14px; } - + /* STYLES */ /* Fonts */ @@ -175,5 +185,68 @@ header { .btn-blue { background-color: #007bff; } - + /* Write your CSS below */ + +/* ----- ITERATION 1 760px ----- */ + +@media screen and (max-width: 760px) { + .navbar { + flex-direction: column; + } + + .navbar li { + width: auto; + border-right: 0px; + border-bottom: 1px solid #fff; + } + + .main-article { + flex-direction: column; + } + + .main-article img { + width: 100%; + } + + .main-article .image { + width: 100%; + } + + .main-article .content { + width: 100%; + } + + .articles-container { + flex-direction: column; + } + + .article { + width: 100%; + margin-bottom: 20px; + } +} + +/* ----- ITERATION 2 760px ----- */ + +@media screen and (min-width: 761px), (max-width: 1024px) { + .navbar { + flex-direction: row; + justify-content: space-evenly; + } + + .navbar li { + width: 25%; + height: 40px; + } + + .articles-container { + flex-direction: flex-wrap; + padding: 0px; + } + + .article { + width: 45%; + margin: 20px; + } +}