Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions learnjs/15. News App/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,34 @@ main {
.news-source {
margin-block: 12px;
}

/* ----- Media Query ----- */

@media only screen and (max-width: 1200px) {
nav{
padding: 0px 30px;
}
main{
padding: 10px 30px;
}
}
@media only screen and (max-width: 1100px) {
.cards-container {
justify-content: space-evenly;
}
}
@media only screen and (max-width: 767px) {
.nav-links {
display: none;
}
}
@media only screen and (max-width: 500px) {
.main-nav{
flex-direction: column;
height: 150px;
justify-content: space-evenly;
}
#cards-container{
margin-top: 100px;
}
}