I'm not sure how this works, but essentially I have two sections in my styling:
.my-class-1 .my-subclass-1 .this-class {
background: #6a98e8;
}
.my-class-1 .my-subclass-1 .my-subclass-2 .this-class {
background: #6a98e8;
}
Is there a way to condense this into one style? Ideally I'd want my-subclass-2 to be optional, as I want the same result for this-class regardless of the two setups.
The style depends on there being my-class-1 and my-subclass-1, but after that I want to essentially not care about any further children between them and this-class.