10 lines
250 B
SCSS
10 lines
250 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;
|
||
|
}
|
||
|
}
|
||
|
}
|