This commit is contained in:
Fedor Katurov 2022-11-02 11:58:45 +06:00
commit 5104c2518b
34 changed files with 6844 additions and 0 deletions

27
assets/css/_mixins.scss Normal file
View file

@ -0,0 +1,27 @@
@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;
}
}
}