-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcolumns.scss
More file actions
66 lines (65 loc) · 1.18 KB
/
columns.scss
File metadata and controls
66 lines (65 loc) · 1.18 KB
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
.columns {
margin-left: -0.75rem;
margin-right: -0.75rem;
margin-top: -0.75rem;
&.is-centered {
justify-content: center;
}
flex-wrap: wrap;
&:last-child {
margin-bottom: -0.75rem;
}
&:not(:last-child) {
margin-bottom: -0.75rem;
}
@include tablet {
display: flex;
}
@include mobile {
&.is-mobile {
display: flex;
}
}
}
.column {
display: block;
padding: 0.75rem;
@include mobile {
@for $i from 1 through 12 {
&.is-#{$i}-mobile {
flex: none;
width: ($i / 12) * 100%
}
&.is-offset-#{$i}-mobile {
margin-left: ($i / 12) * 100%
}
}
&.is-12-mobile {
&:not(:last-child) {
padding-bottom: 0;
}
}
}
@include tablet-only {
@for $i from 1 through 12 {
&.is-#{$i}-tablet {
flex: none;
width: ($i / 12) * 100%
}
&.is-offset-#{$i}-tablet {
margin-left: ($i / 12) * 100%
}
}
}
@include desktop {
@for $i from 1 through 12 {
&.is-#{$i}-desktop {
flex: none;
width: ($i / 12) * 100%
}
&.is-offset-#{$i}-desktop {
margin-left: ($i / 12) * 100%
}
}
}
}