bootstrap 4.0.0.alpha5 → 4.0.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bootstrap might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/assets/javascripts/bootstrap.js +312 -207
- data/assets/javascripts/bootstrap.min.js +4 -4
- data/assets/javascripts/bootstrap/alert.js +9 -5
- data/assets/javascripts/bootstrap/button.js +5 -5
- data/assets/javascripts/bootstrap/carousel.js +52 -28
- data/assets/javascripts/bootstrap/collapse.js +19 -11
- data/assets/javascripts/bootstrap/dropdown.js +21 -19
- data/assets/javascripts/bootstrap/modal.js +69 -43
- data/assets/javascripts/bootstrap/popover.js +4 -4
- data/assets/javascripts/bootstrap/scrollspy.js +20 -11
- data/assets/javascripts/bootstrap/tab.js +19 -14
- data/assets/javascripts/bootstrap/tooltip.js +54 -22
- data/assets/javascripts/bootstrap/util.js +7 -12
- data/assets/stylesheets/_bootstrap-grid.scss +23 -3
- data/assets/stylesheets/_bootstrap-reboot.scss +2 -3
- data/assets/stylesheets/_bootstrap.scss +6 -6
- data/assets/stylesheets/bootstrap/_alert.scss +3 -4
- data/assets/stylesheets/bootstrap/_badge.scss +77 -0
- data/assets/stylesheets/bootstrap/_button-group.scss +18 -51
- data/assets/stylesheets/bootstrap/_buttons.scss +14 -20
- data/assets/stylesheets/bootstrap/_card.scss +30 -76
- data/assets/stylesheets/bootstrap/_carousel.scss +96 -171
- data/assets/stylesheets/bootstrap/_close.scss +3 -3
- data/assets/stylesheets/bootstrap/_code.scss +7 -0
- data/assets/stylesheets/bootstrap/_custom-forms.scss +13 -12
- data/assets/stylesheets/bootstrap/_dropdown.scss +17 -36
- data/assets/stylesheets/bootstrap/_forms.scss +61 -47
- data/assets/stylesheets/bootstrap/_grid.scss +13 -0
- data/assets/stylesheets/bootstrap/_images.scss +2 -2
- data/assets/stylesheets/bootstrap/_input-group.scss +17 -27
- data/assets/stylesheets/bootstrap/_list-group.scss +79 -63
- data/assets/stylesheets/bootstrap/_media.scss +5 -78
- data/assets/stylesheets/bootstrap/_mixins.scss +8 -5
- data/assets/stylesheets/bootstrap/_modal.scss +21 -13
- data/assets/stylesheets/bootstrap/_nav.scss +30 -68
- data/assets/stylesheets/bootstrap/_navbar.scss +131 -178
- data/assets/stylesheets/bootstrap/_normalize.scss +133 -94
- data/assets/stylesheets/bootstrap/_pagination.scss +16 -22
- data/assets/stylesheets/bootstrap/_popover.scss +3 -3
- data/assets/stylesheets/bootstrap/_print.scss +5 -8
- data/assets/stylesheets/bootstrap/_progress.scss +14 -127
- data/assets/stylesheets/bootstrap/_reboot.scss +16 -15
- data/assets/stylesheets/bootstrap/_responsive-embed.scss +18 -5
- data/assets/stylesheets/bootstrap/_tables.scss +13 -56
- data/assets/stylesheets/bootstrap/_tooltip.scss +1 -1
- data/assets/stylesheets/bootstrap/{_animation.scss → _transitions.scss} +6 -8
- data/assets/stylesheets/bootstrap/_type.scss +5 -12
- data/assets/stylesheets/bootstrap/_utilities.scss +2 -0
- data/assets/stylesheets/bootstrap/_variables.scss +320 -216
- data/assets/stylesheets/bootstrap/mixins/{_tag.scss → _badge.scss} +2 -2
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +25 -16
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +31 -58
- data/assets/stylesheets/bootstrap/mixins/_cards.scss +3 -0
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_float.scss +3 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +3 -5
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +1 -7
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +19 -23
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +19 -26
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -5
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_transforms.scss +14 -0
- data/assets/stylesheets/bootstrap/mixins/_visibility.scss +5 -0
- data/assets/stylesheets/bootstrap/utilities/_align.scss +5 -5
- data/assets/stylesheets/bootstrap/utilities/_background.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +10 -3
- data/assets/stylesheets/bootstrap/utilities/_display.scss +13 -8
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +42 -31
- data/assets/stylesheets/bootstrap/utilities/_float.scss +5 -9
- data/assets/stylesheets/bootstrap/utilities/_position.scss +23 -0
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +10 -0
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +36 -37
- data/assets/stylesheets/bootstrap/utilities/_text.scss +14 -12
- data/assets/stylesheets/bootstrap/utilities/_visibility.scss +1 -1
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/scss.rb +3 -5
- data/templates/project/_bootstrap-variables.scss +321 -217
- metadata +10 -10
- data/assets/stylesheets/_bootstrap-flex.scss +0 -8
- data/assets/stylesheets/bootstrap/_tags.scss +0 -77
- data/assets/stylesheets/bootstrap/mixins/_progress.scss +0 -23
- data/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
- data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
@@ -2,7 +2,7 @@
|
|
2
2
|
//
|
3
3
|
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
4
4
|
//
|
5
|
-
// (xs: 0, sm:
|
5
|
+
// (xs: 0, sm: 576px, md: 768px)
|
6
6
|
//
|
7
7
|
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
|
8
8
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
//
|
11
11
|
// >> breakpoint-next(sm)
|
12
12
|
// md
|
13
|
-
// >> breakpoint-next(sm, (xs: 0, sm:
|
13
|
+
// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px))
|
14
14
|
// md
|
15
15
|
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md))
|
16
16
|
// md
|
@@ -21,8 +21,8 @@
|
|
21
21
|
|
22
22
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
23
23
|
//
|
24
|
-
// >> breakpoint-min(sm, (xs: 0, sm:
|
25
|
-
//
|
24
|
+
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px))
|
25
|
+
// 576px
|
26
26
|
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
27
27
|
$min: map-get($breakpoints, $name);
|
28
28
|
@return if($min != 0, $min, null);
|
@@ -31,13 +31,24 @@
|
|
31
31
|
// Maximum breakpoint width. Null for the largest (last) breakpoint.
|
32
32
|
// The maximum value is calculated as the minimum of the next one less 0.1.
|
33
33
|
//
|
34
|
-
// >> breakpoint-max(sm, (xs: 0, sm:
|
34
|
+
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px))
|
35
35
|
// 767px
|
36
36
|
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
37
37
|
$next: breakpoint-next($name, $breakpoints);
|
38
38
|
@return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
|
39
39
|
}
|
40
40
|
|
41
|
+
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
|
42
|
+
// Useful for making responsive utilities.
|
43
|
+
//
|
44
|
+
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px))
|
45
|
+
// "" (Returns a blank string)
|
46
|
+
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px))
|
47
|
+
// "-sm"
|
48
|
+
@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
|
49
|
+
@return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
|
50
|
+
}
|
51
|
+
|
41
52
|
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
42
53
|
// Makes the @content apply to the given breakpoint and wider.
|
43
54
|
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
@@ -64,17 +75,6 @@
|
|
64
75
|
}
|
65
76
|
}
|
66
77
|
|
67
|
-
// Media between the breakpoint's minimum and maximum widths.
|
68
|
-
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
69
|
-
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
70
|
-
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
|
71
|
-
@include media-breakpoint-up($name, $breakpoints) {
|
72
|
-
@include media-breakpoint-down($name, $breakpoints) {
|
73
|
-
@content;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
78
|
// Media that spans multiple breakpoint widths.
|
79
79
|
// Makes the @content apply between the min and max breakpoints
|
80
80
|
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
@@ -84,3 +84,12 @@
|
|
84
84
|
}
|
85
85
|
}
|
86
86
|
}
|
87
|
+
|
88
|
+
// Media between the breakpoint's minimum and maximum widths.
|
89
|
+
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
90
|
+
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
91
|
+
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
|
92
|
+
@include media-breakpoint-between($name, $name, $breakpoints) {
|
93
|
+
@content;
|
94
|
+
}
|
95
|
+
}
|
@@ -12,96 +12,69 @@
|
|
12
12
|
border-color: $border;
|
13
13
|
@include box-shadow($btn-box-shadow);
|
14
14
|
|
15
|
+
// Hover and focus styles are shared
|
15
16
|
@include hover {
|
16
17
|
color: $color;
|
17
18
|
background-color: $active-background;
|
18
|
-
|
19
|
+
border-color: $active-border;
|
19
20
|
}
|
20
|
-
|
21
21
|
&:focus,
|
22
22
|
&.focus {
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
24
|
+
@if $enable-shadows {
|
25
|
+
box-shadow: $btn-box-shadow, 0 0 0 2px rgba($border, .5);
|
26
|
+
} @else {
|
27
|
+
box-shadow: 0 0 0 2px rgba($border, .5);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
// Disabled comes first so active can properly restyle
|
32
|
+
&.disabled,
|
33
|
+
&:disabled {
|
34
|
+
background-color: $background;
|
35
|
+
border-color: $border;
|
26
36
|
}
|
27
37
|
|
28
38
|
&:active,
|
29
39
|
&.active,
|
30
|
-
.
|
40
|
+
.show > &.dropdown-toggle {
|
31
41
|
color: $color;
|
32
42
|
background-color: $active-background;
|
33
|
-
|
34
|
-
|
35
|
-
background-image: none;
|
43
|
+
background-image: none; // Remove the gradient for the pressed/active state
|
44
|
+
border-color: $active-border;
|
36
45
|
@include box-shadow($btn-active-box-shadow);
|
37
|
-
|
38
|
-
&:hover,
|
39
|
-
&:focus,
|
40
|
-
&.focus {
|
41
|
-
color: $color;
|
42
|
-
background-color: darken($background, 17%);
|
43
|
-
border-color: darken($border, 25%);
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
&.disabled,
|
48
|
-
&:disabled {
|
49
|
-
&:focus,
|
50
|
-
&.focus {
|
51
|
-
background-color: $background;
|
52
|
-
border-color: $border;
|
53
|
-
}
|
54
|
-
@include hover {
|
55
|
-
background-color: $background;
|
56
|
-
border-color: $border;
|
57
|
-
}
|
58
46
|
}
|
59
47
|
}
|
60
48
|
|
61
|
-
@mixin button-outline-variant($color) {
|
49
|
+
@mixin button-outline-variant($color, $color-hover: #fff) {
|
62
50
|
color: $color;
|
63
51
|
background-image: none;
|
64
52
|
background-color: transparent;
|
65
53
|
border-color: $color;
|
66
54
|
|
67
55
|
@include hover {
|
68
|
-
color:
|
56
|
+
color: $color-hover;
|
69
57
|
background-color: $color;
|
70
|
-
|
58
|
+
border-color: $color;
|
71
59
|
}
|
72
60
|
|
73
61
|
&:focus,
|
74
62
|
&.focus {
|
75
|
-
|
76
|
-
|
77
|
-
|
63
|
+
box-shadow: 0 0 0 2px rgba($color, .5);
|
64
|
+
}
|
65
|
+
|
66
|
+
&.disabled,
|
67
|
+
&:disabled {
|
68
|
+
color: $color;
|
69
|
+
background-color: transparent;
|
78
70
|
}
|
79
71
|
|
80
72
|
&:active,
|
81
73
|
&.active,
|
82
|
-
.
|
83
|
-
color:
|
74
|
+
.show > &.dropdown-toggle {
|
75
|
+
color: $color-hover;
|
84
76
|
background-color: $color;
|
85
|
-
|
86
|
-
|
87
|
-
&:hover,
|
88
|
-
&:focus,
|
89
|
-
&.focus {
|
90
|
-
color: #fff;
|
91
|
-
background-color: darken($color, 17%);
|
92
|
-
border-color: darken($color, 25%);
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
&.disabled,
|
97
|
-
&:disabled {
|
98
|
-
&:focus,
|
99
|
-
&.focus {
|
100
|
-
border-color: lighten($color, 20%);
|
101
|
-
}
|
102
|
-
@include hover {
|
103
|
-
border-color: lighten($color, 20%);
|
104
|
-
}
|
77
|
+
border-color: $color;
|
105
78
|
}
|
106
79
|
}
|
107
80
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
// Color the label and help text
|
8
8
|
.form-control-feedback,
|
9
9
|
.form-control-label,
|
10
|
+
.col-form-label,
|
10
11
|
.form-check-label,
|
11
|
-
.form-check-inline,
|
12
12
|
.custom-control {
|
13
13
|
color: $color;
|
14
14
|
}
|
@@ -17,10 +17,8 @@
|
|
17
17
|
.form-control {
|
18
18
|
border-color: $color;
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
box-shadow: $input-box-shadow, 0 0 6px lighten($color, 20%);
|
23
|
-
}
|
20
|
+
&:focus {
|
21
|
+
@include box-shadow($input-box-shadow, 0 0 6px lighten($color, 20%));
|
24
22
|
}
|
25
23
|
}
|
26
24
|
|
@@ -3,21 +3,17 @@
|
|
3
3
|
// Horizontal gradient, from left to right
|
4
4
|
//
|
5
5
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
6
|
-
// Color stops are not available in IE9.
|
7
6
|
@mixin gradient-x($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
8
7
|
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
9
8
|
background-repeat: repeat-x;
|
10
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9
|
11
9
|
}
|
12
10
|
|
13
11
|
// Vertical gradient, from top to bottom
|
14
12
|
//
|
15
13
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
16
|
-
// Color stops are not available in IE9.
|
17
14
|
@mixin gradient-y($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
18
15
|
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
19
16
|
background-repeat: repeat-x;
|
20
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9
|
21
17
|
}
|
22
18
|
|
23
19
|
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
|
@@ -27,12 +23,10 @@
|
|
27
23
|
@mixin gradient-x-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
28
24
|
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
29
25
|
background-repeat: no-repeat;
|
30
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 gets no color-stop at all for proper fallback
|
31
26
|
}
|
32
27
|
@mixin gradient-y-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
33
28
|
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
34
29
|
background-repeat: no-repeat;
|
35
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 gets no color-stop at all for proper fallback
|
36
30
|
}
|
37
31
|
@mixin gradient-radial($inner-color: #555, $outer-color: #333) {
|
38
32
|
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
@@ -40,4 +34,4 @@
|
|
40
34
|
}
|
41
35
|
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
|
42
36
|
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
43
|
-
}
|
37
|
+
}
|
@@ -7,50 +7,46 @@
|
|
7
7
|
// Common properties for all breakpoints
|
8
8
|
%grid-column {
|
9
9
|
position: relative;
|
10
|
-
|
11
|
-
min-height: 1px;
|
12
|
-
|
13
|
-
@if $enable-flex {
|
14
|
-
width: 100%;
|
15
|
-
}
|
10
|
+
width: 100%;
|
11
|
+
min-height: 1px; // Prevent columns from collapsing when empty
|
16
12
|
|
17
13
|
@include make-gutters($gutters);
|
18
14
|
}
|
19
15
|
|
20
|
-
$breakpoint-counter: 0;
|
21
16
|
@each $breakpoint in map-keys($breakpoints) {
|
22
|
-
$breakpoint-
|
17
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
23
18
|
|
24
19
|
// Allow columns to stretch full width below their breakpoints
|
25
|
-
.col-#{$breakpoint} {
|
26
|
-
@extend %grid-column;
|
27
|
-
}
|
28
|
-
|
29
20
|
@for $i from 1 through $columns {
|
30
|
-
.col
|
21
|
+
.col#{$infix}-#{$i} {
|
31
22
|
@extend %grid-column;
|
32
23
|
}
|
33
24
|
}
|
25
|
+
.col#{$infix} {
|
26
|
+
@extend %grid-column;
|
27
|
+
}
|
34
28
|
|
35
29
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
36
30
|
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
31
|
+
.col#{$infix} {
|
32
|
+
flex-basis: 0;
|
33
|
+
flex-grow: 1;
|
34
|
+
max-width: 100%;
|
35
|
+
}
|
36
|
+
.col#{$infix}-auto {
|
37
|
+
flex: 0 0 auto;
|
38
|
+
width: auto;
|
43
39
|
}
|
44
40
|
|
45
41
|
@for $i from 1 through $columns {
|
46
|
-
.col
|
42
|
+
.col#{$infix}-#{$i} {
|
47
43
|
@include make-col($i, $columns);
|
48
44
|
}
|
49
45
|
}
|
50
46
|
|
51
47
|
@each $modifier in (pull, push) {
|
52
48
|
@for $i from 0 through $columns {
|
53
|
-
.#{$modifier}
|
49
|
+
.#{$modifier}#{$infix}-#{$i} {
|
54
50
|
@include make-col-modifier($modifier, $i, $columns)
|
55
51
|
}
|
56
52
|
}
|
@@ -58,8 +54,8 @@
|
|
58
54
|
|
59
55
|
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
60
56
|
@for $i from 0 through ($columns - 1) {
|
61
|
-
@if $
|
62
|
-
.offset
|
57
|
+
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-xs-0
|
58
|
+
.offset#{$infix}-#{$i} {
|
63
59
|
@include make-col-modifier(offset, $i, $columns)
|
64
60
|
}
|
65
61
|
}
|
@@ -2,13 +2,17 @@
|
|
2
2
|
//
|
3
3
|
// Generate semantic grid columns with these mixins.
|
4
4
|
|
5
|
-
@mixin make-container($
|
5
|
+
@mixin make-container($gutters: $grid-gutter-widths) {
|
6
|
+
position: relative;
|
6
7
|
margin-left: auto;
|
7
8
|
margin-right: auto;
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
|
10
|
+
@each $breakpoint in map-keys($gutters) {
|
11
|
+
@include media-breakpoint-up($breakpoint) {
|
12
|
+
$gutter: map-get($gutters, $breakpoint);
|
13
|
+
padding-right: ($gutter / 2);
|
14
|
+
padding-left: ($gutter / 2);
|
15
|
+
}
|
12
16
|
}
|
13
17
|
}
|
14
18
|
|
@@ -34,12 +38,8 @@
|
|
34
38
|
}
|
35
39
|
|
36
40
|
@mixin make-row($gutters: $grid-gutter-widths) {
|
37
|
-
|
38
|
-
|
39
|
-
flex-wrap: wrap;
|
40
|
-
} @else {
|
41
|
-
@include clearfix();
|
42
|
-
}
|
41
|
+
display: flex;
|
42
|
+
flex-wrap: wrap;
|
43
43
|
|
44
44
|
@each $breakpoint in map-keys($gutters) {
|
45
45
|
@include media-breakpoint-up($breakpoint) {
|
@@ -52,14 +52,11 @@
|
|
52
52
|
|
53
53
|
@mixin make-col-ready($gutters: $grid-gutter-widths) {
|
54
54
|
position: relative;
|
55
|
-
min-height: 1px; // Prevent collapsing
|
56
|
-
|
57
55
|
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
58
56
|
// always setting `width: 100%;`. This works because we use `flex` values
|
59
57
|
// later on to override this initial width.
|
60
|
-
|
61
|
-
|
62
|
-
}
|
58
|
+
width: 100%;
|
59
|
+
min-height: 1px; // Prevent collapsing
|
63
60
|
|
64
61
|
@each $breakpoint in map-keys($gutters) {
|
65
62
|
@include media-breakpoint-up($breakpoint) {
|
@@ -71,16 +68,12 @@
|
|
71
68
|
}
|
72
69
|
|
73
70
|
@mixin make-col($size, $columns: $grid-columns) {
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
} @else {
|
81
|
-
float: left;
|
82
|
-
width: percentage($size / $columns);
|
83
|
-
}
|
71
|
+
flex: 0 0 percentage($size / $columns);
|
72
|
+
// width: percentage($size / $columns);
|
73
|
+
// Add a `max-width` to ensure content within each column does not blow out
|
74
|
+
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
75
|
+
// do not appear to require this.
|
76
|
+
max-width: percentage($size / $columns);
|
84
77
|
}
|
85
78
|
|
86
79
|
@mixin make-col-offset($size, $columns: $grid-columns) {
|