diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/styles/style.css b/styles/style.css index 9571ab1..8c9f885 100644 --- a/styles/style.css +++ b/styles/style.css @@ -177,3 +177,73 @@ header { } /* Write your CSS below */ + +@media (width < 760px) { + .navbar { + flex-direction: column; + align-items: center; + border:#fff; + } + + .navbar li { + width: 100%; + border-top: 1px solid #ffffff; + } + + .main-article { + flex-direction: column; + } + + .main-article .image, + .main-article .content { + width: 100%; + padding: 10px 0; + } + + .articles-container { + flex-direction: column; + align-items: center; + } + + .article { + width: 100%; + margin-bottom: 20px; + } +} + +@media (min-width: 761px) and (max-width: 1023px) { + .navbar li { + width: auto; + flex: 1 1 0; + border-right: 1px solid #ffffff; + height: 48px; + display: flex; + align-items: center; + justify-content: center; + } + + .navbar li:last-child { + border-right: none; + } + + .main-article { + flex-direction: column; + } + + .main-article .image, + .main-article .content { + width: 100%; + padding: 10px 0; + } + + .articles-container { + flex-direction: row; + justify-content: space-between; + align-items: center; + } + + .article { + width: 48%; + margin-bottom: 20px; + } +}