Skip to content

Commit

Permalink
Avoid duplication of container breakpoints (#30969)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-utsumi committed Jun 13, 2020
1 parent 7c6a0db commit c3572ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
6 changes: 1 addition & 5 deletions scss/_grid.scss
Expand Up @@ -4,11 +4,7 @@

@if $enable-grid-classes {
// Single container class with breakpoint max-widths
.container {
@include make-container();
@include make-container-max-widths();
}

.container,
// 100% wide container at all breakpoints
.container-fluid {
@include make-container();
Expand Down
10 changes: 0 additions & 10 deletions scss/mixins/_grid.scss
Expand Up @@ -10,16 +10,6 @@
margin-left: auto;
}


// 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-row($gutter: $grid-gutter-width) {
display: flex;
flex-wrap: wrap;
Expand Down

0 comments on commit c3572ce

Please sign in to comment.