Kosmetika Kosmetika - 1 year ago 70
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 Source

You can use css literals

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