Skip to content

Instantly share code, notes, and snippets.

@bogdansoare
Created July 19, 2014 09:55
Show Gist options
  • Save bogdansoare/a1c26fbb386c7d1d9064 to your computer and use it in GitHub Desktop.
Save bogdansoare/a1c26fbb386c7d1d9064 to your computer and use it in GitHub Desktop.
Organizing z-index
$z-index: (
modal : 200,
navigation : 100,
footer : 90,
triangle : 60,
navigation-rainbow : 50,
share-type : 41,
share : 40,
);
@function z-index($key) {
@return map-get($z-index, $key);
}
@mixin z-index($key) {
z-index: z-index($key);
}
.navigation {
@include z-index(navigation);
}
.modal {
@include z-index(modal);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment