mod/bootstrap/vendor/bootstrap/scss/mixins/_breakpoints.scss in card-1.93.2 vs mod/bootstrap/vendor/bootstrap/scss/mixins/_breakpoints.scss in card-1.93.3

- old
+ new

@@ -79,12 +79,22 @@ // Makes the @content apply between the min and max breakpoints @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) { $min: breakpoint-min($lower, $breakpoints); $max: breakpoint-max($upper, $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($lower) { + @content; + } + } @else if $min == null { + @include media-breakpoint-down($upper) { + @content; + } } } // Media between the breakpoint's minimum and maximum widths. // No minimum for the smallest breakpoint, and no maximum for the largest one. @@ -96,10 +106,14 @@ @if $min != null and $max != null { @media (min-width: $min) and (max-width: $max) { @content; } } @else if $max == null { - @include media-breakpoint-up($name) + @include media-breakpoint-up($name) { + @content; + } } @else if $min == null { - @include media-breakpoint-down($name) + @include media-breakpoint-down($name) { + @content; + } } }