mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-05-05 07:46:40 +07:00
33 lines
448 B
SCSS
33 lines
448 B
SCSS
@import "./variables";
|
|
|
|
@mixin phone {
|
|
@media (max-width: $size-phone) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin tablet {
|
|
@media (max-width: $size-tablet) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin desktop {
|
|
@media (max-width: $size-desktop) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin color-per-child($colors) {
|
|
@each $color in $colors {
|
|
&:nth-child(#{index(($colors), ($color))}) {
|
|
color: $color;
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin light_theme {
|
|
:root.light {
|
|
@content;
|
|
}
|
|
}
|