Skip to content

Instantly share code, notes, and snippets.

@robertlyall
Created November 3, 2014 12:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save robertlyall/c79d35a7f3e90a29aa64 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$a: 'a' 'b' 'c';
div {
@for $n from 1 through length($a) {
&:#{nth($a, $n)} {
color: blue;
}
}
}
div:a, div:b, div:c {
color: red;
}
div:a {
color: blue;
}
div:b {
color: blue;
}
div:c {
color: blue;
}
div:a, div:b, div:c {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment