diff options
| author | Ken Paulsen <[email protected]> | 2017-05-04 10:54:59 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-06-18 02:08:11 -0700 |
| commit | a47f373e8203fc3dbe8a2d28f99d07743d78d22b (patch) | |
| tree | 8a74bcc8684aec8e29abc9f30889e2dfe0ebce9a | |
| parent | 72a009320049720701ef225962566ebd7c3c053c (diff) | |
| download | bootstrap-a47f373e8203fc3dbe8a2d28f99d07743d78d22b.tar.xz bootstrap-a47f373e8203fc3dbe8a2d28f99d07743d78d22b.zip | |
Fix mixin media-breakpoint-only
Prevent mixin media-breakpoint-only from breaking when supplying the
first or last entry in $grid-breakpoints.
| -rw-r--r-- | scss/mixins/_breakpoints.scss | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scss/mixins/_breakpoints.scss b/scss/mixins/_breakpoints.scss index be1d034d8..9a374fee6 100644 --- a/scss/mixins/_breakpoints.scss +++ b/scss/mixins/_breakpoints.scss @@ -93,7 +93,13 @@ $min: breakpoint-min($name, $breakpoints); $max: breakpoint-max($name, $breakpoints); - @media (min-width: $min) and (max-width: $max) { - @content; + @if $min != null and $max != null { + @media (min-width: $min) and (max-width: $max) { + @content; + } + } @else if $max == null { + @include media-breakpoint-up($name) + } @else if $min == null { + @include media-breakpoint-down($name) } } |
