-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path_columns.scss
109 lines (97 loc) · 2.1 KB
/
_columns.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Columns
// Base column styles
*[class*="col-"],
*[class*="sm-col-"],
*[class*="md-col-"],
*[class*="flex-basis-"],
.col {
flex: 0 1 $flex-basis;
position: relative;
box-sizing: border-box;
padding-left: $col-padding;
padding-right: $col-padding;
min-width: 0;
}
// standard column sizing
@for $i from 1 through 12 {
$flex-basis: 8.333333% * $i;
.col-#{$i} {
flex-basis: $flex-basis;
}
}
// column sizing for IE10/11
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
@for $i from 1 through 12 {
$width: 8.333333% * $i;
.col-#{$i} {
width: $width;
flex-basis: auto;
}
}
}
// Col Grow Option
.col-grow {
flex: 1 1 $flex-basis;
}
.col-no-pad {
padding-left: 0;
padding-right: 0;
}
// Medium Breakpoint Adjustments
@media screen and (max-width: $medium-breakpoint) {
// Medium columns (.md-col-6, etc.)
@for $i from 1 through 12 {
$flex-basis: 8.333333% * $i;
.md-col-#{$i} {
flex-basis: $flex-basis;
}
}
// Medium col-no-pad
.md-col-no-pad {
padding-left: 0;
padding-right: 0;
}
}
// Medium Breakpoint Adjustments for IE10/11
@media screen and (max-width: $medium-breakpoint) and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
@for $i from 1 through 12 {
$width: 8.333333% * $i;
.md-col-#{$i} {
width: $width;
flex-basis: auto;
}
}
}
// Small Breakpoint Adjustments
@media screen and (max-width: $small-breakpoint) {
// default columns go full width
*[class*="col-"] {
flex: 1 1 $flex-basis;
flex-basis: 100%;
}
// small columns (.sm-col-6, etc.)
@for $i from 1 through 12 {
$flex-basis: 8.333333% * $i;
.sm-col-#{$i} {
flex-basis: $flex-basis;
flex-grow: 0;
}
}
// Small col-no-pad
.sm-col-no-pad {
padding-left: 0;
padding-right: 0;
}
}
// Small Breakpoint Adjustments for IE10/11
@media screen and (max-width: $small-breakpoint) and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
@for $i from 1 through 12 {
$width: 8.333333% * $i;
.sm-col-#{$i} {
width: $width;
flex-basis: auto;
}
}
}