Simplified media queries

- Switched to pixel based values again to fix error
- Future version should use em values again
This commit is contained in:
Stephan Hagedorn 2022-08-11 21:40:10 +02:00
parent 0214054c81
commit bf818600f8

View file

@ -33,10 +33,10 @@
@mixin goingLarge($width) {
// @media (min-width: $width/16+em) { @content; }
// @media (min-width: (math.div($width, 16)+em)) { @content; }
@media (min-width: (math.div($width, 16))) { @content; }
@media (min-width: ($width)) { @content; }
}
//Desktop-first Media Query
@mixin goingSmall($width) {
@media (max-width: (math.div($width, 16)+em)) { @content; }
@media (max-width: ($width)) { @content; }
}