Skip to content

Commit

Permalink
refactor: change columns size
Browse files Browse the repository at this point in the history
  • Loading branch information
mraihanaf committed Sep 11, 2024
1 parent 150d71c commit 1aee6b3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ header {
place-content: center;
}
.gallery {
columns: 300px;
columns: 3;
min-height: 100vh;
padding: 2rem;
& .media__container {
Expand Down Expand Up @@ -69,13 +69,19 @@ header {
-o-transition: 400ms cubic-bezier(0, 2, 1, 1);
}
}

@media (width <= 1100px){
/* & {
columns: 3;
} */
& .media__container {
border-radius: 10px;
}
}
@media (width <= 700px) {
& {
columns: 2;
}
& .media__container {
border-radius: 10px;
}
}
}
.media__modal {
Expand Down

0 comments on commit 1aee6b3

Please sign in to comment.