postcss-modules-local-by-default
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/postcss-modules-local-by-default package

4.0.4 • Public • Published

Build Status codecov npm

CSS Modules: Local by Default

Transformation examples:

.foo { ... } /* => */ :local(.foo) { ... }

.foo .bar { ... } /* => */ :local(.foo) :local(.bar) { ... }

/* Shorthand global selector */

:global .foo .bar { ... } /* => */ .foo .bar { ... }

.foo :global .bar { ... } /* => */ :local(.foo) .bar { ... }

/* Targeted global selector */

:global(.foo) .bar { ... } /* => */ .foo :local(.bar) { ... }

.foo:global(.bar) { ... } /* => */ :local(.foo).bar { ... }

.foo :global(.bar) .baz { ... } /* => */ :local(.foo) .bar :local(.baz) { ... }

.foo:global(.bar) .baz { ... } /* => */ :local(.foo).bar :local(.baz) { ... }

Building

$ npm install
$ npm test
  • Build: Build Status
  • Lines: coveralls
  • Statements: codecov

Development

$ yarn test:watch

License

MIT

With thanks


Mark Dalgleish, 2015.

Package Sidebar

Install

npm i postcss-modules-local-by-default

Weekly Downloads

18,567,893

Version

4.0.4

License

MIT

Unpacked Size

22.4 kB

Total Files

4

Last publish

Collaborators

  • markdalgleish
  • sokra
  • geelen
  • evilebottnawi