Skip to content

Instantly share code, notes, and snippets.

@agragregra
Created December 20, 2016 16:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save agragregra/a06b45c40d9d984d8ec1192cf10a790b to your computer and use it in GitHub Desktop.
Save agragregra/a06b45c40d9d984d8ec1192cf10a790b to your computer and use it in GitHub Desktop.
Sass nth-child background-color loop
$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