yannstatic/_sass/common/classes/_media.scss
2024-10-31 20:18:37 +01:00

18 lines
405 B
SCSS

@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;
}
}