Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created December 26, 2014 07:17
Show Gist options
  • Select an option

  • Save gunnarbittersmann/c35868f5625c0fcca157 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/c35868f5625c0fcca157 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
li
{
@for $i from 1 to 13
{
&:nth-child(24n+#{$i})
{
background: red;
}
}
}
li:nth-child(24n+1) {
background: red;
}
li:nth-child(24n+2) {
background: red;
}
li:nth-child(24n+3) {
background: red;
}
li:nth-child(24n+4) {
background: red;
}
li:nth-child(24n+5) {
background: red;
}
li:nth-child(24n+6) {
background: red;
}
li:nth-child(24n+7) {
background: red;
}
li:nth-child(24n+8) {
background: red;
}
li:nth-child(24n+9) {
background: red;
}
li:nth-child(24n+10) {
background: red;
}
li:nth-child(24n+11) {
background: red;
}
li:nth-child(24n+12) {
background: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment