Skip to content

Instantly share code, notes, and snippets.

@marbiano
Created March 8, 2014 20:16
Show Gist options
  • Save marbiano/9438226 to your computer and use it in GitHub Desktop.
Save marbiano/9438226 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
@import "compass";
@mixin z-index($map){
@each $element, $value in $map {
#{$element} {
z-index: $value;
}
}
}
@include z-index((".below": -1, ".middle": 0, ".above": 1));
.below {
z-index: -1;
}
.middle {
z-index: 0;
}
.above {
z-index: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment