Not sure if it's possible or not but this has been bugging me for a while.
Is it possible in SASS to select multiple direct descendants within a nested block?
// This works
div
{
> .one
{
/* ... */
}
}
// This doesn't work
div
{
> .one,
> .two
{
/* ... */
}
}
It works, you do something wrong. More then, you can look at compiled css here: http://sass-lang.com/try.html , in your case it provides:
div > .one {
/* ... */ }
div > .one,
div > .two {
/* ... */ }
So it works.
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