Skip to content

Instantly share code, notes, and snippets.

@ahaywood
Created March 23, 2017 15:42
Show Gist options
  • Save ahaywood/dbcbbb03a91a187bb6683671b2346a06 to your computer and use it in GitHub Desktop.
Save ahaywood/dbcbbb03a91a187bb6683671b2346a06 to your computer and use it in GitHub Desktop.
z-index with Sass maps
.something {
z-index: map-get($zindex, change-your-world);
}
$zindex: (
subnav : 9003,
search-bar-icon : 9002,
search-bar : 9001,
mega-menu : 9000,
featured-box-cta : 8999,
testimonial-content : 401,
testimonial-image : 400,
change-your-world : 200
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment