Answer the question
In order to leave comments, you need to log in
Does SCSS or SASS have a selector for classes ending in __container?
There are classes .header__container, .menu__container, .nav__container. Is it possible to somehow use CSS or SASS to make common styles for classes ending in __container without writing them separately.
Answer the question
In order to leave comments, you need to log in
Alternatively, expand the placeholder:
%container {
// Общие стили
}
.header__container {
@extend %container;
}
.menu__container {
@extend %container;
}
.nav__container {
@extend %container;
}
.container
<div class="nav__container container">
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question