Skip to content

Commit 85ebe64

Browse files
committed
Fix(style): Ensure responsive boxes on mobile
1 parent 243f7ad commit 85ebe64

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

static/css/homepage.css

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,36 @@
2727
}
2828

2929
.h2columns {
30-
display: grid;
31-
grid-template-columns: 50% 50%;
30+
display: flex;
31+
flex-wrap: wrap;
3232
gap: 1.5rem;
3333
margin-top: 0;
34+
padding: 0 1rem;
3435
justify-content: center;
3536
}
3637

38+
.h2columns > div {
39+
flex: 1 1 45%;
40+
min-width: 300px;
41+
}
42+
3743
.h3columns {
38-
display: grid;
39-
grid-template-columns: 33% 33% 33%;
44+
display: flex;
45+
flex-wrap: wrap;
4046
gap: 1rem;
4147
margin-top: 0;
48+
padding: 0 1rem;
49+
justify-content: center;
50+
}
51+
52+
.h3columns > div {
53+
flex: 1 1 0;
54+
}
55+
56+
@media (max-width: 600px) {
57+
.h3columns > div {
58+
flex: 1 1 100%;
59+
}
4260
}
4361

4462
.hfeature {

0 commit comments

Comments
 (0)