-
Notifications
You must be signed in to change notification settings - Fork 1
/
core-grid.scss
65 lines (57 loc) · 1.61 KB
/
core-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
54
55
56
57
58
59
60
61
62
63
64
65
.row {
display: flex;
flex-flow: row wrap;
}
.row > .col {
display: block;
flex: 1 1 0;
width: auto;
}
$breakpoints: ('xs': 0, 'sm': 32, 'md': 48, 'lg': 64, 'xl': 80);
@each $name, $width in $breakpoints {
@media (min-width: #{$width}em) {
.row > .col.#{$name}-0 {display: none}
.row > .col.#{$name}-1,
.row > .col.#{$name}-2,
.row > .col.#{$name}-3,
.row > .col.#{$name}-4,
.row > .col.#{$name}-5,
.row > .col.#{$name}-6,
.row > .col.#{$name}-7,
.row > .col.#{$name}-8,
.row > .col.#{$name}-9,
.row > .col.#{$name}-10,
.row > .col.#{$name}-11,
.row > .col.#{$name}-12,
.row > .col.#{$name}-min,
.row > .col.#{$name}-max {display: block}
.row > .col.#{$name}-1,
.row > .col.#{$name}-2,
.row > .col.#{$name}-3,
.row > .col.#{$name}-4,
.row > .col.#{$name}-5,
.row > .col.#{$name}-6,
.row > .col.#{$name}-7,
.row > .col.#{$name}-8,
.row > .col.#{$name}-9,
.row > .col.#{$name}-10,
.row > .col.#{$name}-11,
.row > .col.#{$name}-12,
.row > .col.#{$name}-min {flex: none}
.row > .col.#{$name}-min,
.row > .col.#{$name}-max {width: auto}
.row > .col.#{$name}-1 {width: 8.3333%}
.row > .col.#{$name}-2 {width: 16.6667%}
.row > .col.#{$name}-3 {width: 25%}
.row > .col.#{$name}-4 {width: 33.3333%}
.row > .col.#{$name}-5 {width: 41.6667%}
.row > .col.#{$name}-6 {width: 50%}
.row > .col.#{$name}-7 {width: 58.3333%}
.row > .col.#{$name}-8 {width: 66.6667%}
.row > .col.#{$name}-9 {width: 75%}
.row > .col.#{$name}-10 {width: 83.3333%}
.row > .col.#{$name}-11 {width: 91.6667%}
.row > .col.#{$name}-12 {width: 100%}
.row > .col.#{$name}-max {flex: 1 1 0}
}
}