Created
December 20, 2016 16:09
-
-
Save agragregra/a06b45c40d9d984d8ec1192cf10a790b to your computer and use it in GitHub Desktop.
Sass nth-child background-color loop
This file contains hidden or 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: $red, $blue, $accent | |
@for $i from 1 through length($colors) | |
.carousel-services .owl-item:nth-child(#{length($colors)}n+#{$i}) | |
background-color: nth($colors, $i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment