Skip to content

Instantly share code, notes, and snippets.

@daleyjem
Created December 10, 2014 21:28
Show Gist options
  • Save daleyjem/25584a805941f42b7ef8 to your computer and use it in GitHub Desktop.
Save daleyjem/25584a805941f42b7ef8 to your computer and use it in GitHub Desktop.
SASS z-index() mixin
// Z-index
$z-indexes: (
base: 1,
modal: 1000
);
@mixin z-index($key, $increment: 0) {
z-index: map-get($z-indexes, $key) + $increment;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment