$z-index: (
popup : 3,
high : 2,
mid : 0,
low : 1,
negative : -1
);
@function z-index($key) {
@return map-get($z-index, $key);
}
.popup {
z-index: z-index(popup);
}
.header {
z-index: z-index(header);
}
Simple function in order to get neat organisation of your z-indexes.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.