Created
February 10, 2021 14:14
-
-
Save GregJacobs82/82773ffa72df604358051ec817308eb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$colors: ( | |
a: red, | |
b: green, | |
c: blue | |
); | |
@each $color, $name in $colors{ | |
$i: index($colors, $color $name); | |
a:nth-child(#{$i}){ color:$color; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment