SHARE
TWEET

Untitled

a guest Jul 19th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Z-index mapping: Correctly place your variable in the correct position based on what it should appear above and behind.
  2.  
  3. // Example usage: z-index: z(header);
  4.  
  5. $z-list: (
  6.     highest,
  7.     lowest
  8. );
  9.  
  10. @function z($var) {
  11.     @return length($z-list) - index($z-list, $var) + 2;
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top