From c7cf459763f2e656382e754ed90142053c717033 Mon Sep 17 00:00:00 2001 From: Stradow Date: Wed, 19 Nov 2025 08:36:13 +0100 Subject: [PATCH] half solved --- .vscode/settings.json | 3 +++ styles/style.css | 57 +++++++++++++++++++++++++++++++++++++------ 2 files changed, 53 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..2f83612 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5503 +} diff --git a/styles/style.css b/styles/style.css index 9571ab1..7c739c5 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,38 @@ header { .btn-blue { background-color: #007bff; } - + /* Write your CSS below */ + +@media screen and (max-width: 760px) { + .navbar { + flex-direction: column; + } + + .navbar li { + border: 1px solid white; + text-align: center; + width: 100%; + } + + .main-article { + flex-direction: column; + justify-content: center; + align-items: center; + } + + .main-article .content { + width: 100%; + text-align: center; + } + + .articles-container { + flex-direction: column; + align-items: center; + } + + .article { + width: 100%; + margin-bottom: 20px; + } +}