cssstylus

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?


Solution

  • You can use CSS literals:

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