-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid.scss
53 lines (51 loc) · 852 Bytes
/
grid.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Display 1 column on mobile, 1 column on desktop
.show-1-1 {
flex-basis: 100%;
}
.show-1-2 {
flex-basis: 100%;
}
.show-1-3 {
flex-basis: 100%;
}
.show-1-4 {
flex-basis: 100%;
}
.show-2-4 {
flex: 0 1 calc(50% - .5rem);
}
@media (min-width: 768px) {
.show-1-2 {
flex: 0 1 calc(50% - .5rem);
}
.show-1-3 {
flex: 0 1 calc(33% - .5rem);
&.no-gap {
flex-basis: 33.33%;
}
}
.show-1-4 {
flex: 0 1 calc(25% - .75rem);
}
.show-2-4 {
flex: 0 1 calc(25% - .75rem);
}
}
.ui {
display: block;
@include md {
display: flex;
flex-wrap: wrap;
}
&__visual {
@include md {
flex: 1;
}
}
&__code {
@include md {
flex: 2;
margin-left: .5rem;
}
}
}