Commit a3bc24ab authored by Mark Otto's avatar Mark Otto Committed by GitHub
Browse files

Merge pull request #20973 from pixelbandito/container-gutter-breakpoints

Container padding uses per-breakpoint gutter sizes, fixes #19304.
parents 73154d03 e1fefe60
Showing with 9 additions and 3 deletions
+9 -3
......@@ -2,14 +2,20 @@
//
// Generate semantic grid columns with these mixins.
@mixin make-container($gutter: $grid-gutter-width-base) {
@mixin make-container($gutters: $grid-gutter-widths) {
margin-left: auto;
margin-right: auto;
padding-left: ($gutter / 2);
padding-right: ($gutter / 2);
@if not $enable-flex {
@include clearfix();
}
@each $breakpoint in map-keys($gutters) {
@include media-breakpoint-up($breakpoint) {
$gutter: map-get($gutters, $breakpoint);
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
}
}
}
......
Supports Markdown
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