amy-d
3/23/2017 - 3:42 PM

z-index with Sass maps

z-index with Sass maps

$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
);
.something {
  z-index: map-get($zindex, change-your-world);
}