hackertours-theme/assets/sass/mixins/breakpoint/_respond-to.scss
2023-02-01 10:33:48 +01:00

13 lines
322 B
SCSS

@mixin respond-to($breakpoint) {
// If the key exists in the map
@if map-has-key($breakpoints, $breakpoint) {
// Prints a media query based on the value
@media (min-width: map-get($breakpoints, $breakpoint)) {
@content;
}
} @else {
@media (min-width: $breakpoint) {
@content;
}
}
}