Commit c053f23f authored by Mark Otto's avatar Mark Otto

Merge pull request #17362 from omeid/v4-container-mixin

Semantic grid: add make-container-breakpoint
parents 5d5398af c42d0e10
...@@ -4,13 +4,8 @@ ...@@ -4,13 +4,8 @@
.container { .container {
@include make-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;
}
}
} }
......
...@@ -10,6 +10,16 @@ ...@@ -10,6 +10,16 @@
@include clearfix(); @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) { @mixin make-row($gutter: $grid-gutter-width) {
@if $enable-flex { @if $enable-flex {
display: flex; display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment