A
A
Alexey Nikolaev2016-05-26 16:51:44
Web development
Alexey Nikolaev, 2016-05-26 16:51:44

Is there a plugin for grunt\gulp to manage z-index automatically?

Good day.
Is there a plugin that allows you to automatically control the depth of an element? For example, instead of the default:

.selector {
    z-index: 1000;
    z-index: $depth-selector-base; // как вариант
}

one could write something like:
.selector {
    z-index: above(.selector-2);
    z-index: below(.selector-3);
    z-index: between(.selector-2, .selector-3);

I couldn't find anything similar on google. Everywhere at most - advice about sass, variables, that's all, but there is no automation. It would be cool to forget about the need to remember the depths of the elements, and fit in between them if you need to add something.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2016-05-27
@index0h

less

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question