Refactor and split SCSS files, add mixins

This commit is contained in:
Xevion
2022-09-20 19:49:40 -05:00
parent ca9406e133
commit 13b5e61de2
4 changed files with 97 additions and 82 deletions

23
_sass/mixins.scss Normal file
View File

@@ -0,0 +1,23 @@
@mixin for-size($size) {
@if $size == phone-only {
@media (max-width: 599px) {
@content;
}
} @else if $size == tablet-portrait-up {
@media (min-width: 600px) {
@content;
}
} @else if $size == tablet-landscape-up {
@media (min-width: 900px) {
@content;
}
} @else if $size == desktop-up {
@media (min-width: 1200px) {
@content;
}
} @else if $size == big-desktop-up {
@media (min-width: 1800px) {
@content;
}
}
}