nex3/sass — Issue #251: @extend _any_ selector
Author: powerbuoy
Created: 2012-01-17 21:18:18+00:00
State: open

I would love the ability to `@extend` _any_ selector, not just classes. Example (based on Twitter bootstrap):

#my-ul {
@extend .row;
}

#my-ul li {
@extend .row > *[class^=span];
@extend .span-one-third;
}

The generated code would be just like with classes:

.row, #my-ul {
...
}

.row > *[class^=span], #my-ul li {
...
}

.span-one-third, #my-ul li {
...
}