Last active
August 29, 2015 14:11
-
-
Save xiaody/39a8e3ea73d95a487ede to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
$z-layers: ( | |
"goku": 901, | |
"shoryuken": 800, | |
"modal": ( | |
"base": 500, | |
"close": 100, | |
"header": 50, | |
"footer": 10 | |
), | |
"default": 1, | |
"below": -1 | |
); | |
@function map-deep-get($map, $keys...) { | |
@each $key in $keys { | |
$map: map-get($map, $key); | |
} | |
@return $map; | |
} | |
.close { | |
z-index: map-deep-get($z-layers, 'modal', 'close'); | |
} |
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
.close { | |
z-index: 100; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment