Answer the question
In order to leave comments, you need to log in
Why doesn't ampersand compile nesting?
All my layout components are written in BEM, I start each new block with something like this:
.footer{
width: 100%;
position: relative;
&__plate{
position: relative;
z-index: 3;
@extend %plate;
}
}
.footer{
width: 100%;
position: relative;
}
.footer .footer__plate{
position: relative;
z-index: 3;
...
}
.footer{
width: 100%;
position: relative;
}
.footer__plate{
position: relative;
z-index: 3;
...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question