akkounts/app/assets/stylesheets/legacy/_mediaqueries.scss
Sebastian Kippe 878eac083c
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Move legacy (S)CSS files to legacy folder
2022-02-12 12:43:37 -06:00

34 lines
701 B
SCSS

$breakpoints-max: (
small: 600px,
medium: 960px,
large: 1280px
);
$breakpoints-min: (
small: 601px,
medium: 961px,
large: 1281px
);
@mixin media-max($screen-size) {
@if map-has-key($breakpoints-max, $screen-size) {
@media (max-width: map-get($breakpoints-max, $screen-size)) {
@content;
}
} @else {
// Debugging
@warn "'#{$screen-size}' has not been declared as a breakpoint."
}
}
@mixin media-min($screen-size) {
@if map-has-key($breakpoints-min, $screen-size) {
@media (min-width: map-get($breakpoints-min, $screen-size)) {
@content;
}
} @else {
// Debugging
@warn "'#{$screen-size}' has not been declared as a breakpoint."
}
}