My HTML:
<div class="first second">...</div>
<div class="third">...</div>
My CSS:
.first.second {
... // lots of properties setup here(50+ lines)
}
My questions are:
Q1-for .first.second selector, I think it mean .first && .second, not .first || .second, is my understanding correct? And what's the official name of it, I couldn't find resources about it.
Q2- I want class third to have the same properties setup but avoid to setup a new class selector like:
.third {
... // 50+ duplicated lines and take so much space on the css file
}
But I can't do it like:
.first.second.third {
...
}
Because it means .first && .second && .third
So what's the best way to represent (classA %% classB) || classC