├── .editorconfig ├── .gitignore ├── .rollup.js ├── .tape.js ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── INSTALL.md ├── LICENSE.md ├── README-zh.md ├── README.md ├── index.js ├── lib ├── custom-selectors-from-root.js ├── export-to.js ├── import-from.js ├── selectors-ast-from-selectors-string.js ├── transform-rules.js └── transform-selectors-by-custom-selectors.js ├── package.json ├── test ├── basic.css ├── basic.expect.css ├── basic.import-empty.expect.css ├── basic.import.expect.css ├── basic.preserve.expect.css ├── empty.css ├── export-selectors.css ├── export-selectors.js ├── export-selectors.json ├── export-selectors.mjs ├── import-selectors.css ├── import-selectors.js ├── import-selectors.json ├── safety.css └── safety.expect.css └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/.gitignore -------------------------------------------------------------------------------- /.rollup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/.rollup.js -------------------------------------------------------------------------------- /.tape.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/.tape.js -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /INSTALL.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/INSTALL.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README-zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/README-zh.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/README.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/index.js -------------------------------------------------------------------------------- /lib/custom-selectors-from-root.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/lib/custom-selectors-from-root.js -------------------------------------------------------------------------------- /lib/export-to.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/lib/export-to.js -------------------------------------------------------------------------------- /lib/import-from.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/lib/import-from.js -------------------------------------------------------------------------------- /lib/selectors-ast-from-selectors-string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/lib/selectors-ast-from-selectors-string.js -------------------------------------------------------------------------------- /lib/transform-rules.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/lib/transform-rules.js -------------------------------------------------------------------------------- /lib/transform-selectors-by-custom-selectors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/lib/transform-selectors-by-custom-selectors.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/package.json -------------------------------------------------------------------------------- /test/basic.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/basic.css -------------------------------------------------------------------------------- /test/basic.expect.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/basic.expect.css -------------------------------------------------------------------------------- /test/basic.import-empty.expect.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/basic.import-empty.expect.css -------------------------------------------------------------------------------- /test/basic.import.expect.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/basic.import.expect.css -------------------------------------------------------------------------------- /test/basic.preserve.expect.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/basic.preserve.expect.css -------------------------------------------------------------------------------- /test/empty.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/export-selectors.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/export-selectors.css -------------------------------------------------------------------------------- /test/export-selectors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/export-selectors.js -------------------------------------------------------------------------------- /test/export-selectors.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/export-selectors.json -------------------------------------------------------------------------------- /test/export-selectors.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/export-selectors.mjs -------------------------------------------------------------------------------- /test/import-selectors.css: -------------------------------------------------------------------------------- 1 | @custom-selector :--heading h1, h2, h3; 2 | -------------------------------------------------------------------------------- /test/import-selectors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/import-selectors.js -------------------------------------------------------------------------------- /test/import-selectors.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/import-selectors.json -------------------------------------------------------------------------------- /test/safety.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/safety.css -------------------------------------------------------------------------------- /test/safety.expect.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/test/safety.expect.css -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csstools/postcss-custom-selectors/HEAD/yarn.lock --------------------------------------------------------------------------------