1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-11 20:27:12 +01:00
metamask-extension/ui/css/design-system/breakpoints.scss

74 lines
1.3 KiB
SCSS
Raw Normal View History

@use "sass:map";
2020-07-28 22:16:30 +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;
$screen-sizes-map: (
'sm': 576px,
'md': 768px,
'lg': 1280px,
);