How to modify the root parent selector in sass -


how can modify root element of parent selector chain? (using sass 3.3.x) like...

=prepend($prefix)   @at-root .#{$prefix}#{&}   // note there no dot (.) separating     @content  .foo   .bar     +prepend(baz)       background: red     

and return

.baz.foo .bar {   background: red; } 

or better... explicit way target root element (or nth element)?

=prepend($prefix)   &.#{$prefix}     @content  .foo   +prepend("baz")     .bar       background: red 

returns this:

.foo.baz .bar {   background: red; } 

on right track?


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -