diff --git a/index.html b/index.html index 1b8846b..0cda3a0 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,9 @@

Ironhack News

  • Tech
  • Sports
  • +
    + Hamburguer menu icon +
    diff --git a/styles/style.css b/styles/style.css index 9571ab1..25b025a 100644 --- a/styles/style.css +++ b/styles/style.css @@ -15,7 +15,6 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul { font-weight: lighter; } - /* DO NOT REMOVE - Styling for the label showing the viewport width */ .viewport-dimensions { position: fixed; @@ -177,3 +176,76 @@ header { } /* Write your CSS below */ +@media (width < 760px) { + header nav .navbar { + flex-direction: column; + align-items: center; + + li { + width: 100%; + border-bottom: #ffffff solid 1px; + } + } + + main { + .articles-container { + flex-direction: column; + gap: 40px; + + .article { + width: 100%; + } + } + + .main-article { + flex-direction: column; + align-items: center; + + .content { + width: 100%; + } + .image { + width: 100%; + } + } + } +} + +@media (width < 1024px) and (width > 760px) { + header nav .navbar { + justify-content: space-evenly; + justify-items: center; + + li { + width: 100%; + } + } + + main .articles-container { + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + gap: 40px; + + .article { + width: 45%; + } + } +} + +@media (width < 480px){ + header nav { + .navbar{ + display: none + } + + .hamburguer-menu { + display: block; + } + } +} + +.hamburguer-menu { + display: none; + padding: 5px +} \ No newline at end of file