Skip to content

Commit 77eba4f

Browse files
committed
Only display flexbox when we have room
If the display size is < 768px, we'll dispay single column entries.
1 parent e0c58c8 commit 77eba4f

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

docs/book/css/site.css

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,23 @@
88
border-bottom: 0;
99
}
1010

11-
.components {
12-
display: flex;
13-
flex-direction: row;
14-
flex-wrap: wrap;
15-
justify-content: space-between;
16-
align-items: flex-start;
17-
align-content: flex-start;
11+
@media screen and (min-width: 768px) {
12+
.components {
13+
display: flex;
14+
flex-direction: row;
15+
flex-wrap: wrap;
16+
justify-content: space-between;
17+
align-items: flex-start;
18+
align-content: flex-start;
19+
}
20+
21+
.component {
22+
flex-basis: 48%;
23+
}
1824
}
1925

2026
.component {
2127
min-height: 200px;
22-
flex-basis: 48%;
2328
border: 1px solid #CCCCCC;
2429
border-radius: 10px;
2530
margin-bottom: 1em;

0 commit comments

Comments
 (0)