Cataloguer/assets/css/abstracts/_mixins.scss

13 lines
293 B
SCSS
Raw Normal View History

2022-12-17 18:41:44 +00:00
@mixin mq($width, $type: min) {
@if map_has_key($breakpoints, $width) {
$width: map_get($breakpoints, $width);
@if $type == max {
$width: $width - 1px;
}
@media only screen and (#{$type}-width: $width) {
@content;
}
}
}