3.0.2 • Published 9 months ago

postcss-modules-local-by-default v3.0.2

Weekly downloads
7,196,776
License
MIT
Repository
github
Last release
9 months ago

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

$ npm run autotest

License

MIT

With thanks


Mark Dalgleish, 2015.

css-loaderstrikingly-taro-clirtl-css-loaderrtlcss-loaderrk-react-redux-scriptssearch-input-reactsearch-list-reactstylex-atomic-loadersps-clisxyj_taro_clireact-monkreact-css-modules-with-dynamic-classesreact-misc-toolboxrangle-react-scriptspostcss-modules-syncpostcss-composesposthtml-postcss-modulesperfect-css-loadermy-css-modules-loader-corenativescript-css-loadernois-react-toastmps-clinode-stylus-css-modules-requiretape-babel-css-modulestagged-css-modules@cameron-martin/css-modules-loader-core@c-art/clifhir2fis-msprd-css-loader_0_26_1help-widgetjest-css-modules-processoricssifyless-plugin-css-modulesless-plugin-css-modules2@fangchan/taro-cliyan-css-loader@jackfranklin/css-loader-fork@jackfranklin/css-loader-with-module-mapping@dallonf/css-modules-require-hook@dallonf/tape-babel-css-modules@demonarchy/babel-plugin-react-css-modulesyntemp@kaliber/build@kandebr/css-modules-loader-core@mmmcorp/css-loader@mpxjs/webpack-pluginvision-css-loader@sanity/css-loader@rangle/react-scripts@randomjs/css-loader@startupjs/babel-plugin-react-css-modules@summersky/taro-cli@summersky/tarojs-cli@ngxvoice/ngx-voicelistner@nodecraft/css-loader@hylo/babel-plugin-react-css-modules@reshadow/babel@wallejs/clia-css-loader@zxcabs/rtl-css-loader@zongze/babel-plugin-react-css-modules@vusion/css-loader@wenziguo/tarojs-cli@ericmcornelius/easevusion-css-loadervue-bombvue-compmentrefinishta-css-loaderts-css-modulesvue-toast-demo-zehua@dayuw/tarojs-cli@ddder/css-loaderbroccoli-css-modulesbabel-plugin-react-css-modulesbabel-plugin-react-css-modules-avionbabel-plugin-react-css-modules-fix-11babel-plugin-react-css-modules-modifybabel-plugin-react-css-modules-ne-smalltownbabel-plugin-react-css-modules-sassbabel-plugin-react-css-modules-themebabel-plugin-react-native-csscourse-vue-tplcomponent-stylesheets-loadercmifybutter-component-buildercss-flat-loadercss-less-loadercss-loader-1css-loader-bbqcss-loader-fixercss-loader-functional-locals-conventioncss-loader-getlocalidentcss-loader-jnrdtcss-loader-modify-kstncss-loader-xcss-modules-loader-corecss-modules-loader-core-btdcss-modules-loader-core-source-mapcss-modules-loader-core-win
3.0.2

9 months ago

3.0.1

10 months ago

3.0.0

10 months ago

2.0.6

12 months ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-beta2

4 years ago

1.0.0-beta1

4 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago