Kosmetika Kosmetika - 5 months ago 8
CSS Question

Stylus - selectors that are near: "+" operator

Unfortunately I cannot get this working in Stylus:

.class1 + .class2
background: red


It doesn't catch this styles for element. Maybe I'm not aware of syntax?

Answer

You can use css literals

 @css {
   .class1 + .class2
    background: red
 }