2022-07-18 17:23:27 +02:00
|
|
|
@use "sass:map";
|
|
|
|
|
2020-07-28 22:16:30 +02:00
|
|
|
/*
|
2022-07-18 17:23:27 +02:00
|
|
|
Responsive breakpoints
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Screen sizes
|
|
|
|
$screen-sizes-map: (
|
|
|
|
'sm': 576px,
|
|
|
|
'md': 768px,
|
|
|
|
'lg': 1280px,
|
|
|
|
);
|
|
|
|
|
|
|
|
// Max width screen size
|
|
|
|
$screen-sm-max: calc(#{map.get($screen-sizes-map, "sm")} - 1px);
|
|
|
|
$screen-md-max: calc(#{map.get($screen-sizes-map, "md")} - 1px);
|
|
|
|
$screen-lg-max: calc(#{map.get($screen-sizes-map, "lg")} - 1px);
|
|
|
|
|
|
|
|
// Min width screen size
|
|
|
|
$screen-sm-min: map.get($screen-sizes-map, "sm");
|
|
|
|
$screen-md-min: map.get($screen-sizes-map, "md");
|
|
|
|
$screen-lg-min: map.get($screen-sizes-map, "lg");
|
|
|
|
|
|
|
|
// Max width media query mixins
|
|
|
|
@mixin screen-sm-max {
|
|
|
|
@media screen and (max-width: $screen-sm-max) {
|
|
|
|
@content;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin screen-md-max {
|
|
|
|
@media screen and (max-width: $screen-md-max) {
|
|
|
|
@content;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin screen-lg-max {
|
|
|
|
@media screen and (max-width: $screen-lg-max) {
|
|
|
|
@content;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
// Min width media query mixins
|
|
|
|
@mixin screen-sm-min {
|
|
|
|
@media screen and (min-width: $screen-sm-min) {
|
|
|
|
@content;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin screen-md-min {
|
|
|
|
@media screen and (min-width: $screen-md-min) {
|
|
|
|
@content;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin screen-lg-min {
|
|
|
|
@media screen and (min-width: $screen-lg-min) {
|
|
|
|
@content;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
DEPRECATED
|
2020-07-28 22:16:30 +02:00
|
|
|
*/
|
|
|
|
$break-small: 575px;
|
|
|
|
$break-midpoint: 780px;
|
|
|
|
$break-large: 576px;
|
2022-07-20 22:47:51 +02:00
|
|
|
|
|
|
|
$screen-sizes-map: (
|
|
|
|
'sm': 576px,
|
|
|
|
'md': 768px,
|
|
|
|
'lg': 1280px,
|
|
|
|
);
|