We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00b0e0a commit 0d08c74Copy full SHA for 0d08c74
scss/_grid.scss
@@ -25,11 +25,19 @@
25
max-width: $container-max-width;
26
}
27
28
+ // Extend each breakpoint which is smaller or equal to the current breakpoint
29
+ $extend-breakpoint: true;
30
+
31
@each $name, $width in $grid-breakpoints {
- @if ($container-max-width > $width or $breakpoint == $name) {
32
+ @if ($extend-breakpoint) {
33
.container#{breakpoint-infix($name, $grid-breakpoints)} {
34
@extend %responsive-container-#{$breakpoint};
35
36
37
+ // Once the current breakpoint is reached, stop extending
38
+ @if ($breakpoint == $name) {
39
+ $extend-breakpoint: false;
40
+ }
41
42
43
0 commit comments