Answer the question
In order to leave comments, you need to log in
To inherit or not to inherit properties in scss?
Using sass, the question arose, to inherit or not to inherit?
<div class="block">
<div class="inner_block"></div>
</div>
.block {
// свойства
.inner_block {
// свойства
}
}
.block {
// свойства
}
.inner_block {
// свойства
}
Answer the question
In order to leave comments, you need to log in
For example, I inherit. Since it is not known whether you will have another such block, with the class
.inner_blockfor other purposes. And in such cases, I inherit this class from the parent.
Of course, I'm not hinting at anything, but ... "To use or not to use sass?".
And yes: perhaps we are talking about scss.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question