yannstatic/_sass/common/classes/_media.scss

18 lines
405 B
SCSS
Raw Permalink Normal View History

2024-10-31 20:18:37 +01:00
@mixin media-breakpoint-down($name, $breakpoints: default) {
@if $breakpoints == default {
$breakpoints: $responsive;
}
@media (max-width: map-get($breakpoints, $name) - 1) {
@content;
}
}
@mixin media-breakpoint-up($name, $breakpoints: default) {
@if $breakpoints == default {
$breakpoints: $responsive;
}
@media (min-width: map-get($breakpoints, $name)) {
@content;
}
}