Skip to content

Commit 1aee6b3

Browse files
committed
refactor: change columns size
1 parent 150d71c commit 1aee6b3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

style.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ header {
2222
place-content: center;
2323
}
2424
.gallery {
25-
columns: 300px;
25+
columns: 3;
2626
min-height: 100vh;
2727
padding: 2rem;
2828
& .media__container {
@@ -69,13 +69,19 @@ header {
6969
-o-transition: 400ms cubic-bezier(0, 2, 1, 1);
7070
}
7171
}
72+
73+
@media (width <= 1100px){
74+
/* & {
75+
columns: 3;
76+
} */
77+
& .media__container {
78+
border-radius: 10px;
79+
}
80+
}
7281
@media (width <= 700px) {
7382
& {
7483
columns: 2;
7584
}
76-
& .media__container {
77-
border-radius: 10px;
78-
}
7985
}
8086
}
8187
.media__modal {

0 commit comments

Comments
 (0)