Skip to content

Commit 7132c3d

Browse files
committed
use breakpoints
1 parent 4e7638d commit 7132c3d

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

src/styles/grid.scss

+34-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,39 @@
11
// Display 1 column on mobile, 1 column on desktop
2-
.show-1-1 {
3-
flex-basis: 100%;
4-
}
5-
.show-1-2 {
6-
flex-basis: 100%;
7-
}
8-
.show-1-3 {
9-
flex-basis: 100%;
10-
}
11-
.show-1-4 {
12-
flex-basis: 100%;
2+
.sm {
3+
&-show-1-1 {
4+
flex-basis: 100%;
5+
}
6+
&-show-1-2 {
7+
flex-basis: 100%;
8+
}
9+
&-show-1-3 {
10+
flex-basis: 100%;
11+
}
12+
&-show-1-4 {
13+
flex-basis: 100%;
14+
}
15+
&-show-2-4 {
16+
flex: 0 1 calc(50% - .5rem);
17+
}
1318
}
14-
.show-2-4 {
15-
flex: 0 1 calc(50% - .5rem);
19+
@media (min-width: 576px) {
20+
.md {
21+
&-show-1-1 {
22+
flex-basis: 100%;
23+
}
24+
&-show-1-2 {
25+
flex-basis: 100%;
26+
}
27+
&-show-1-3 {
28+
flex-basis: 100%;
29+
}
30+
&-show-1-4 {
31+
flex-basis: 100%;
32+
}
33+
&-show-2-4 {
34+
flex: 0 1 calc(50% - .5rem);
35+
}
36+
}
1637
}
1738

1839
@media (min-width: 768px) {

0 commit comments

Comments
 (0)