Created
March 17, 2015 02:51
-
-
Save monoooki/4ecf60d70dda5b886dee to your computer and use it in GitHub Desktop.
z-index management for Stylus
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
// Sassy Z-Index Management For Complex Layouts - Smashing Magazine | |
// http://www.smashingmagazine.com/2014/06/12/sassy-z-index-management-for-complex-layouts/ | |
// elements | |
$e = hoge fuga moge header | |
zindex(name) | |
for v, i in $e | |
if v == name | |
return i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment