Created
November 10, 2017 15:21
-
-
Save davaynamore/5b67b0b52f85e53e246db8c882bfc3c9 to your computer and use it in GitHub Desktop.
smart 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: ( | |
navbar: 1, | |
content: 2 | |
); | |
@function z-index($key) { | |
@return map-get($z-index, $key); | |
} | |
@mixin z-index($key) { | |
z-index: z-index($key); | |
} | |
.navigation { | |
@include z-index(navbar); // 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment