Skip to content

Commit

Permalink
Restore make-container-max-widths mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Aug 5, 2020
1 parent e8566e1 commit 1de415d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scss/mixins/_grid.scss
Expand Up @@ -13,6 +13,15 @@
margin-left: calc(var(--bs-gutter-x) / -2); // stylelint-disable-line function-blacklist
}

// For each breakpoint, define the maximum width of the container in a media query
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {
@each $breakpoint, $container-max-width in $max-widths {
@include media-breakpoint-up($breakpoint, $breakpoints) {
max-width: $container-max-width;
}
}
}

@mixin make-col-ready($gutter: $grid-gutter-width) {
// Add box sizing if only the grid is loaded
box-sizing: if(variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
Expand Down

0 comments on commit 1de415d

Please sign in to comment.