Answer the question
In order to leave comments, you need to log in
How to deal in this case with BEM inheritance in Less?
Good afternoon. I use BEM and Less in layout. There is this menu:
<nav class="header-nav">
<ul class="header-nav__list">
<li class="header-nav__item"><a href="/" class="header-nav__link">News</a></li>
<li class="header-nav__item"><a href="/" class="header-nav__link">FAQ</a></li>
<li class="header-nav__item"><a href="/" class="header-nav__link">Contacts</a></li>
</ul>
</nav>
.header{
&-nav{
&__item{display: inline-block; vertical-align: middle;}
&__link{padding: 20px 30px;}
}
}
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