$z-index: (
'header': 4,
'content': 1
'sidebar': 2,
'modal': 5,
'footer': 3
);
@function z($type){
@function map-get($z-index, $type);
}
// Example:
// .header {
// z-index: z('header');
// }
// .modal {
// z-index: z('modal');
// }
Latest version: - Add @if check
3 Responses
Write a 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.