andreypopp / andreypopp/rework-macro

nested selectors with rework-parent or css-whitespace

Aperta
#1 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
16
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

It would be awesome if we could nest selectors in a macro with [css-whitespace](https://github.com/visionmedia/css-whitespace)

``` javascript
@macro btn-state
&:hover
position: $1
```

or possibly with [rework-parent](https://github.com/fgnass/rework-parent)

``` javascript
@macro btn-state {}

&:hover {
position: $1
}
```

I'm not sure if this is doable but it would be a really nice addition. It's almost the only reason why I don't use rework in production and still prefer stylus or sass haha.

Thoughts on this?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.