given the following structure, is there a way to select sibling-b
using less?
<div class='sibling-a'>
<div class='only-if-this-class-is-present'
</div>
<div class='sibling-b'>
</div>
As you may gather, I would like to select sibling-b
whenever only-if-this-class-is-present
exists on sibling-a
's descendant element.
I know CSS does not have a parent selector, and I've looked at answers to questions such as...
Is there a CSS parent selector?
Selector for subsequent sibling of element containing specific item
... but I'm curious to know if I can select elements this way using Less?
Thank you!