.rule{
&-first.&-second{
/*rules*/
}
}
Generates error "Invalid CSS..."
.rule-first.rule-second{
/*rules*/
}
Can it be done? How?
You can do this with @at-root and interpolation. You will need to be using a version of SASS that supports those features.
.rule {
@at-root #{&}-first#{&}-second{
/*rules*/
}
}
Outputs to:
.rule-first.rule-second {
/*rules*/
}
Demo: http://sassmeister.com/gist/f7f9e25a0896e47e0adc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With