css and/or SASS + (sibling) selector upwards
sass
Solution
SASS supports all CSS3 selectors. Sibling `+` selector is one of them. But it does not bring some extra features. It means you can do
.first {
+ .second {
font-size: smaller;
}
}
But you can't impact a parent with it...
P.S. It seems to be a feature of CSS4.
Problem
In CSS there is no way to select a sibling with plus if the sibling is above in the output, a preceding element in the HTML. For example ``` <div class="first"> <div class="second"> .second + .first { //style applied to div.first } ``` Is there anyway to do this in SASS/SCSS?