Created
July 19, 2014 09:55
-
-
Save bogdansoare/a1c26fbb386c7d1d9064 to your computer and use it in GitHub Desktop.
Organizing z-index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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