mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-21 06:50:24 +00:00
Merge pull request #18888 from CrispyBacon12/nested-mixins-pass-breakpoints
Allow optional breakpoint arguments to be passed on to nested media query mixins
This commit is contained in:
commit
01c3f874e1
2 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
|||
@extend %grid-column;
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-up($breakpoint) {
|
||||
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
||||
// Work around cross-media @extend (https://github.com/sass/sass/issues/1050)
|
||||
%grid-column-float-#{$breakpoint} {
|
||||
float: left;
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@
|
|||
|
||||
|
||||
// For each breakpoint, define the maximum width of the container in a media query
|
||||
@mixin make-container-max-widths($max-widths: $container-max-widths) {
|
||||
@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) {
|
||||
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
||||
max-width: $container-max-width;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue