aboutsummaryrefslogtreecommitdiffstats
path: root/old-apps/web-shared/src/styles/base/_breakpoints.scss
diff options
context:
space:
mode:
Diffstat (limited to 'old-apps/web-shared/src/styles/base/_breakpoints.scss')
-rw-r--r--old-apps/web-shared/src/styles/base/_breakpoints.scss19
1 files changed, 19 insertions, 0 deletions
diff --git a/old-apps/web-shared/src/styles/base/_breakpoints.scss b/old-apps/web-shared/src/styles/base/_breakpoints.scss
new file mode 100644
index 0000000..9b61af3
--- /dev/null
+++ b/old-apps/web-shared/src/styles/base/_breakpoints.scss
@@ -0,0 +1,19 @@
+$breakpoints: (
+ xs: "768px",
+ sm: "768px",
+ md: "1200px",
+ lg: "1200px",
+ xl: "1600px"
+) !default;
+
+@mixin breakpoint($breakpoint, $logic: false) {
+ @if ($logic) {
+ @media #{$logic} and (min-width: map-get($map: $breakpoints, $key: $breakpoint)) {
+ @content;
+ }
+ } @else {
+ @media (min-width: map-get($map: $breakpoints, $key: $breakpoint)) {
+ @content;
+ }
+ }
+}