I write my css in a similar style to the BEM syntax where you have a block class (eg .person) and then an element class which (eg .person__hand). I have recently been trying SASS after using LESS and Stylus and was expecting the following to work but it errors..foo {&__bar {background: green;}}My epected result was.foo__bar { background: green; }The error I get isSass Error: Invalid CSS after " &": expected "{", was "__bar {""__bar" may only be used at the beginning of a compound selector.Is there another way of doing this in SASS?--
You received this message because you are subscribed to the Google Groups "Sass" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sass-lang/-/U6lH1aWPTewJ.
To post to this group, send email to sass...@googlegroups.com.
To unsubscribe from this group, send email to sass-lang+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sass-lang?hl=en.