Added mixin for breakpoints

This commit is contained in:
Ryan Freeman 2021-11-17 21:48:03 +00:00
parent 42460463c5
commit 5b14472dbb
2 changed files with 29 additions and 0 deletions

25
styles/mixins.module.scss Normal file
View File

@ -0,0 +1,25 @@
@import "variables.module";
@mixin sm {
@media (min-width: #{$screen-sm-min}) {
@content;
}
}
@mixin md {
@media (min-width: #{$screen-md-min}) {
@content;
}
}
@mixin lg {
@media (min-width: #{$screen-lg-min}) {
@content;
}
}
@mixin xl {
@media (min-width: #{$screen-xl-min}) {
@content;
}
}

View File

@ -0,0 +1,4 @@
$screen-sm-min: 640px;
$screen-md-min: 768px;
$screen-lg-min: 1024px;
$screen-xl-min: 1280px;