Skip to content

Instantly share code, notes, and snippets.

@ZachSaucier
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZachSaucier/42258904b354a0fd1f42 to your computer and use it in GitHub Desktop.
Save ZachSaucier/42258904b354a0fd1f42 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$colors: #FF0097,
#A200FF,
#00ABA9,
#8CBF26,
#1BA1E2,
#E671B8,
#F09609,
#A05000;
@for $i from 1 through length($colors) {
.count:nth-of-type(#{length($colors)}n + #{$i} ) {
background-color: nth($colors, $i);
}
}
.count:nth-of-type(8n + 1) {
background-color: #FF0097;
}
.count:nth-of-type(8n + 2) {
background-color: #A200FF;
}
.count:nth-of-type(8n + 3) {
background-color: #00ABA9;
}
.count:nth-of-type(8n + 4) {
background-color: #8CBF26;
}
.count:nth-of-type(8n + 5) {
background-color: #1BA1E2;
}
.count:nth-of-type(8n + 6) {
background-color: #E671B8;
}
.count:nth-of-type(8n + 7) {
background-color: #F09609;
}
.count:nth-of-type(8n + 8) {
background-color: #A05000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment