Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.