2018-11-04 22:46:42 +01:00
|
|
|
// Based upon the fine work and thoughts from Bootstrap v4.
|
|
|
|
// Copyright 2011-2018 The Bootstrap Authors
|
|
|
|
// Copyright 2011-2018 Twitter, Inc.
|
2021-03-03 19:33:19 +01:00
|
|
|
// Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
2018-11-04 22:46:42 +01:00
|
|
|
|
|
|
|
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
|
|
// Makes the @content apply to the given breakpoint and wider.
|
|
|
|
@mixin media-breakpoint-up($name) {
|
|
|
|
$min: breakpoint-min($name);
|
|
|
|
@if $min {
|
|
|
|
@media screen and (min-width: $min) {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
} @else {
|
|
|
|
@content;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2018-11-04 22:46:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
|
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
|
|
@mixin media-breakpoint-down($name) {
|
|
|
|
$max: breakpoint-max($name);
|
|
|
|
@if $max {
|
|
|
|
@media screen and (max-width: $max) {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
} @else {
|
|
|
|
@content;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2018-11-04 22:46:42 +01:00
|
|
|
}
|