summaryrefslogtreecommitdiffstats
path: root/node_modules/postcss-modules-local-by-default/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss-modules-local-by-default/README.md')
-rw-r--r--node_modules/postcss-modules-local-by-default/README.md65
1 files changed, 65 insertions, 0 deletions
diff --git a/node_modules/postcss-modules-local-by-default/README.md b/node_modules/postcss-modules-local-by-default/README.md
new file mode 100644
index 0000000..13fb131
--- /dev/null
+++ b/node_modules/postcss-modules-local-by-default/README.md
@@ -0,0 +1,65 @@
+[![Build Status][ci-img]][ci] [![codecov][codecov-img]][codecov] [![npm][npm-img]][npm]
+
+# CSS Modules: Local by Default
+
+Transformation examples:
+
+```css
+.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
+
+```bash
+$ npm install
+$ npm test
+```
+
+ - Build: [![Build Status][ci-img]][ci]
+ - Lines: [![coveralls][coveralls-img]][coveralls]
+ - Statements: [![codecov][codecov-img]][codecov]
+
+## Development
+
+```bash
+$ npm run autotest
+```
+
+## License
+
+MIT
+
+## With thanks
+
+ - [Tobias Koppers](https://github.com/sokra)
+ - [Glen Maddern](https://github.com/geelen)
+
+---
+Mark Dalgleish, 2015.
+
+[ci-img]: https://img.shields.io/travis/css-modules/postcss-modules-local-by-default/master.svg?style=flat-square
+[ci]: https://travis-ci.org/css-modules/postcss-modules-local-by-default
+[npm-img]: https://img.shields.io/npm/v/postcss-modules-local-by-default.svg?style=flat-square
+[npm]: https://www.npmjs.com/package/postcss-modules-local-by-default
+[coveralls-img]: https://img.shields.io/coveralls/css-modules/postcss-modules-local-by-default/master.svg?style=flat-square
+[coveralls]: https://coveralls.io/r/css-modules/postcss-modules-local-by-default?branch=master
+[codecov-img]: https://img.shields.io/codecov/c/github/css-modules/postcss-modules-local-by-default/master.svg?style=flat-square
+[codecov]: https://codecov.io/github/css-modules/postcss-modules-local-by-default?branch=master