diff --git a/index.html b/index.html index 1b8846b..4483c60 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,7 @@

Ironhack News

  • News
  • Tech
  • Sports
  • + diff --git a/styles/style.css b/styles/style.css index 9571ab1..61c0dda 100644 --- a/styles/style.css +++ b/styles/style.css @@ -82,7 +82,9 @@ header { display: flex; justify-content: flex-start; } - +.navbar .small-menu { + display:none; + } .navbar li { width: 130px; height: 40px; @@ -177,3 +179,65 @@ header { } /* Write your CSS below */ +@media (width < 760px){ + .navbar { + flex-direction: column; + justify-content: center; + } + .navbar li { + width: auto; + flex-direction: column; + border-top: 1px solid #ffffff; + border-right: initial; + } + .main-article { + flex-direction: column; + width: 83%; + } + .main-article .content { + width: auto; + } + .main-article img { + width: 220%; + } + .articles-container { + flex-direction: column; + align-items: center; + } + .article { + width: 90%; + margin-bottom: 30px; + } +} +@media (min-width: 760px) and (max-width: 1024px) { + .navbar { + justify-content: space-around; + } + .navbar li { + width: 100%; + } + .articles-container { + justify-content: space-between; + } + .article { + margin-bottom: 30px; + flex: 0 0 45%; + } +} +@media (width < 480px) { + .newspaper-name { + border: 0px + } + .navbar { + align-items: center; + } + .navbar li { + display: none; + } + .navbar .small-menu { + display: block; + width: 8%; + height: auto; + } +} +