Skip to content

Instantly share code, notes, and snippets.

@Jezfx
Created September 19, 2017 13:21
Show Gist options
  • Save Jezfx/f51e0a35b7aafdfd556a7446f670c609 to your computer and use it in GitHub Desktop.
Save Jezfx/f51e0a35b7aafdfd556a7446f670c609 to your computer and use it in GitHub Desktop.
z-index map system
///* ========================================================================
// #Z-INDEX
// ======================================================================== */
$z-index-map: (
'far-background': -20,
'background': -10,
'middle': 0,
'forground': 10,
'near-foreground': 20
);
.u-z-index--far-background { z-index: map-get($z-index-map, 'far-background') !important; }
.u-z-index--background { z-index: map-get($z-index-map, 'background') !important; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment