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.5 • 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.

/postcss-modules-local-by-default/

    Package Sidebar

    Install

    npm i postcss-modules-local-by-default

    Weekly Downloads

    14,465,415

    Version

    4.0.5

    License

    MIT

    Unpacked Size

    22.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • markdalgleish
    • sokra
    • geelen
    • evilebottnawi