Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement