-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheet.scss
83 lines (63 loc) · 1.52 KB
/
stylesheet.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Media Query Ranges
$xsmall-screen-up: 426px !default;
$small-screen-up: 601px !default;
$medium-screen-up: 993px !default;
$large-screen-up: 1201px !default;
$extra-large-screen: 1600px !default;
$xsmall-and-up: "only screen and (min-width : #{$xsmall-screen-up})" !default;
$small-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
$medium-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
$large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
$extra-large-and-up: "only screen and (min-width : #{$extra-large-screen})" !default;
$num-cols: 12 !default;
.grid-container {
display: grid;
grid-template-columns: repeat($num-cols, 1fr);
grid-gap: 0.5em;
@media #{$small-and-up} {
grid-gap: 2em;
}
}
$i: 1;
@while $i <= $num-cols {
.grid-xs-#{$i} {
grid-column: span $i;
}
$i: $i + 1;
}
$i: 1;
@media #{$small-and-up} {
@while $i <= $num-cols {
.grid-sm-#{$i} {
grid-column: span $i;
}
$i: $i + 1
}
}
$i: 1;
@media #{$medium-and-up} {
@while $i <= $num-cols {
.grid-md-#{$i} {
grid-column: span $i;
}
$i: $i + 1
}
}
$i: 1;
@media #{$large-and-up} {
@while $i <= $num-cols {
.grid-lg-#{$i} {
grid-column: span $i;
}
$i: $i + 1
}
}
$i: 1;
@media #{$extra-large-and-up} {
@while $i <= $num-cols {
.grid-xl-#{$i} {
grid-column: span $i;
}
$i: $i + 1
}
}