npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

postcss-nest-atrules

0.1.3 • Public • Published

PostCSS Nest Atrules Build Status

PostCSS plugin to nest atrules inside their rules (inverse of unwarpping).

The main reason why I made this plugin is that it makes it easy to then convert CSS to CSS-in-JS.

.root {
  color: red;
}
@media screen and (min-width: 5em) {
  .root {
     color: green;
  }
}
.root {
  color: red;
 
  @media screen and (min-width: 5em) {
    color: green;
  }
}

Usage

postcss([ require('postcss-nest-atrules') ])

See PostCSS docs for examples for your environment.

install

npm i postcss-nest-atrules

Downloadsweekly downloads

12

version

0.1.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability