mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
Allow custom breakpoint config to be passed on by mixins which nest media query mixins.
This commit is contained in:
parent
6ff249791e
commit
0762a1978c
@ -21,7 +21,7 @@
|
|||||||
@extend %grid-column;
|
@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)
|
// Work around cross-media @extend (https://github.com/sass/sass/issues/1050)
|
||||||
%grid-column-float-#{$breakpoint} {
|
%grid-column-float-#{$breakpoint} {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
|
|
||||||
|
|
||||||
// For each breakpoint, define the maximum width of the container in a media query
|
// 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 {
|
@each $breakpoint, $container-max-width in $max-widths {
|
||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
||||||
max-width: $container-max-width;
|
max-width: $container-max-width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user