Skip to content

Instantly share code, notes, and snippets.

@levigideon
Created July 1, 2014 16:15
Show Gist options
  • Save levigideon/ecacf0e74e74d10f46aa to your computer and use it in GitHub Desktop.
Save levigideon/ecacf0e74e74d10f46aa to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
$elements: test, test-2, somehthing, something-else;
@each $el in $elements {
.#{$el} {
z-index: index($elements, $el);
}
}
.test {
z-index: 1;
}
.test-2 {
z-index: 2;
}
.somehthing {
z-index: 3;
}
.something-else {
z-index: 4;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment