Skip to content

Instantly share code, notes, and snippets.

@kfrank
Last active August 29, 2015 14:02
Show Gist options
  • Save kfrank/2e79b4f20854ee160d36 to your computer and use it in GitHub Desktop.
Save kfrank/2e79b4f20854ee160d36 to your computer and use it in GitHub Desktop.
Color loop for style tiles
li {
$colors: $primary $secondary $tertiary $quaternary;
@each $color in $colors {
&:nth-child(#{index($colors,$color)}) {
background: $color;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment