diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..99c499e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5504 +} diff --git a/styles/style.css b/styles/style.css index 9571ab1..2ab5b0e 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 */ + +/* Responsive design: mobile screen (width < 760px) */ +@media screen and (max-width: 760px) { + nav { + display: flex; + } + .navbar { + flex-direction: column; + align-items: center; + } + .navbar li { + border: 1px solid white; + width: 100%; + } + .main-article { + display: flex; + flex-direction: column; + align-items: center; + padding: 0px; + } + .main-article .image { + padding-top: 20px; + width: 85%; + margin-bottom: 10px; + } + .main-article .content { + padding: 0px; + width: 75%; + } + .btn-blue { + margin-bottom: 20px; + } + .articles-container { + display: flex; + flex-direction: column; + } + .articles-container .article { + width: 100%; + margin-bottom: 20px; + } +} + +/* Responsive design: mobile screen (760px < width < 1024px) */ +@media screen and (max-width: 1024px) { + .navbar { + display: flex; + align-items: center; + justify-content: center; + padding: 0px; + } + .navbar li { + flex: 1; + display: flex; + } + .articles-container { + display: flex; + flex-direction: row; + } + .articles-container .article { + width: 45%; + margin-bottom: 20px; + } +}