mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
initial
This commit is contained in:
commit
5104c2518b
34 changed files with 6844 additions and 0 deletions
27
assets/css/_mixins.scss
Normal file
27
assets/css/_mixins.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue