Skip to content

Commit c0a4691

Browse files
authored
Merge branch 'stackable' into 24-pin-top-level-menu
2 parents 318bf30 + 5d05a8e commit c0a4691

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

src/css/landing.css

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
.boxes {
2-
display: flex;
3-
flex-wrap: wrap;
4-
justify-content: space-between;
2+
display: grid;
3+
column-gap: 1rem;
4+
row-gap: 2rem;
5+
grid-template-columns: 1fr 1fr 1fr;
56
}
67

7-
.box {
8-
flex: 0 30%;
9-
min-height: 200px;
10-
margin-bottom: 2%; /* (200-32*3)/2 */
11-
}
12-
13-
.boxes.two-column .box {
14-
flex: 0 48%;
8+
.boxes.two-column {
9+
grid-template-columns: 1fr 1fr;
1510
}
1611

1712
.box h3 {
@@ -31,13 +26,13 @@
3126
}
3227

3328
@media screen and (max-width: 1023.5px) {
34-
.box {
35-
flex: 0 47% !important;
29+
.boxes {
30+
grid-template-columns: 1fr 1fr;
3631
}
3732
}
3833

3934
@media screen and (max-width: 768px) {
40-
.box {
41-
flex: 0 100% !important;
35+
.boxes {
36+
grid-template-columns: 1fr;
4237
}
4338
}

0 commit comments

Comments
 (0)