mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
27 lines
390 B
SCSS
27 lines
390 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;
|
|
}
|
|
}
|
|
}
|