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 authored and XhmikosR committed Aug 6, 2020
1 parent 89dc975 commit c4619c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scss/mixins/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
margin-left: -$gutter / 2;
}

// 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) {
position: relative;
// Prevent columns from becoming too narrow when at smaller grid tiers by
Expand Down

0 comments on commit c4619c9

Please sign in to comment.