W
W
Web Lizard2015-12-21 16:37:07
Sass
Web Lizard, 2015-12-21 16:37:07

Is it possible to do a nested extend in sass?

Let's say I have such a structure.

.header {
    .level-0 {
         //далее некий набор стилей
    }
}

And there is a footer that has level-3 . Which is exactly the same as level-0 in header. But when I try to make extend the compiler swears.
And I'm trying to do it like this:
.footer {
    .level-3 {
        @extend .header.level-0;
    }
}

Does not work. That's how I tried it too.
.footer {
    .level-3 {
        @extend .header .level-0;
    }
}

In general, what I'm trying to do - is it possible at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-12-21
@Lizard-108

Impossible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question