Files
aduzuki/src/scss/global/_mediaqueries.scss
julliechaumard dd49ba357b commit
2023-02-28 01:15:30 +01:00

24 lines
461 B
SCSS

$breakpoints: (
"phone": 600px,
"desktop": 1200px
);
@mixin media_min($key) {
@media (min-width: map-get($breakpoints,$key)) {
&{ @content; }
}
}
@mixin media_max($key) {
@media (max-width: map-get($breakpoints,$key)) {
&{ @content; }
}
}
@mixin media_minmax($key_min, $key_max) {
@media (min-width: map-get($breakpoints,$key_min)) and (max-width: map-get($breakpoints,$key_max)) {
&{ @content; }
}
}