Skip to content

Instantly share code, notes, and snippets.

@kwaledesign
Created July 28, 2014 17:25
Show Gist options
  • Save kwaledesign/7e097539fb84c5494b97 to your computer and use it in GitHub Desktop.
Save kwaledesign/7e097539fb84c5494b97 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
$zindex: (
one: 9,
two: 10,
);
@function zindex($z) {
@if not map-has-key($zindex, $z) {
@warn "No z-index found in $zindex map for `#{$z}`. Property omitted.";
}
@return map-get($zindex, $z);
}
.test {
z-index: zindex(one);
}
.test {
z-index: 9;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment