aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-09-01 20:13:52 -0700
committerMark Otto <[email protected]>2015-09-01 20:13:52 -0700
commitc053f23fe6a30ce0b02b643f04718c8a78c79435 (patch)
tree28837178885876c49d7562059b10109a07ebb621
parent5d5398afdb1c6f90303c4742cc857aa4d9064ec1 (diff)
parentc42d0e10f4c42f8fe21da0abc07a95ff99bf50c1 (diff)
downloadbootstrap-c053f23fe6a30ce0b02b643f04718c8a78c79435.tar.xz
bootstrap-c053f23fe6a30ce0b02b643f04718c8a78c79435.zip
Merge pull request #17362 from omeid/v4-container-mixin
Semantic grid: add make-container-breakpoint
-rw-r--r--scss/_grid.scss7
-rw-r--r--scss/mixins/_grid.scss10
2 files changed, 11 insertions, 6 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss
index b71d5b03d..1841b7faa 100644
--- a/scss/_grid.scss
+++ b/scss/_grid.scss
@@ -4,13 +4,8 @@
.container {
@include make-container();
+ @include make-container-max-widths();
- // For each breakpoint, define the maximum width of the container in a media query
- @each $breakpoint, $container-max-width in $container-max-widths {
- @include media-breakpoint-up($breakpoint) {
- max-width: $container-max-width;
- }
- }
}
diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss
index 56b8c6f20..87b4ac94a 100644
--- a/scss/mixins/_grid.scss
+++ b/scss/mixins/_grid.scss
@@ -10,6 +10,16 @@
@include clearfix();
}
+
+// For each breakpoint, define the maximum width of the container in a media query
+@mixin make-container-max-widths($max-widths: $container-max-widths) {
+ @each $breakpoint, $container-max-width in $max-widths {
+ @include media-breakpoint-up($breakpoint) {
+ max-width: $container-max-width;
+ }
+ }
+}
+
@mixin make-row($gutter: $grid-gutter-width) {
@if $enable-flex {
display: flex;