mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Fix mixin media-breakpoint-only
Prevent mixin media-breakpoint-only from breaking when supplying the first or last entry in $grid-breakpoints.
This commit is contained in:
parent
72a0093200
commit
a47f373e82
@ -93,7 +93,13 @@
|
|||||||
$min: breakpoint-min($name, $breakpoints);
|
$min: breakpoint-min($name, $breakpoints);
|
||||||
$max: breakpoint-max($name, $breakpoints);
|
$max: breakpoint-max($name, $breakpoints);
|
||||||
|
|
||||||
|
@if $min != null and $max != null {
|
||||||
@media (min-width: $min) and (max-width: $max) {
|
@media (min-width: $min) and (max-width: $max) {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
|
} @else if $max == null {
|
||||||
|
@include media-breakpoint-up($name)
|
||||||
|
} @else if $min == null {
|
||||||
|
@include media-breakpoint-down($name)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user