postcss / postcss-nested

PostCSS plugin to unwrap nested rules like how Sass does it.
MIT License
1.15k stars 66 forks source link

how do i do a child class? #86

Closed ralyodio closed 4 years ago

ralyodio commented 4 years ago

In sass I can do:

a {
  color: blue;

  &.active {
    color: green;  
  }
}

How would I do this with postcss-nested?

ai commented 4 years ago

In the same way. Do you have any problem with the same code in PostCSS with postcss-nested?

ralyodio commented 4 years ago

I think its a problem with svelte and rollupjs not picking up the css correctly.

ai commented 4 years ago

👍

ai commented 4 years ago

Wish you a good luck in configuring them