├── .eslintignore ├── .eslintrc ├── .gitignore ├── .npmignore ├── .npmrc ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── index.js ├── lib ├── clone-splice-parent-onto-node-when.js ├── find-node-ancestor-with-selector.js ├── gather-variable-dependencies.js ├── generate-descendant-pieces-from-selector.js ├── generate-direct-descendant-pieces-from-selector.js ├── generate-scope-list.js ├── is-node-under-scope.js ├── is-piece-always-ancestor-selector.js ├── is-under-scope.js ├── resolve-decl.js ├── resolve-value.js └── shallow-clone-node.js ├── package.json ├── playground ├── .eslintignore ├── .gitignore ├── .npmrc ├── README.md ├── build.js ├── build.js.map ├── caniuse-db-json-systemjs-paths.json ├── css.js ├── custom-postcss-mixins │ ├── cursor-hand.js │ └── toggle-checkbox-enclosed.js ├── gulpfile.js ├── index.html ├── jspm.config.js ├── jspm_packages │ ├── .loaderversions │ ├── system.js │ ├── system.js.map │ └── system.src.js ├── package.json └── src │ ├── js │ ├── actions │ │ └── PlaygroundActions.js │ ├── components │ │ ├── EditorTextarea.js │ │ ├── PlaygroundApp.js │ │ └── PlaygroundHeader.js │ ├── constants │ │ └── PlaygroundConstants.js │ ├── dispatcher │ │ └── AppDispatcher.js │ ├── lib │ │ └── deferred-promise.js │ ├── main.js │ ├── services │ │ └── PlaygroundPersistentSettingsDAO.js │ └── stores │ │ ├── PlaygroundSettingsStore.js │ │ └── PlaygroundStore.js │ └── postcss │ └── playground.css └── test ├── fixtures ├── cascade-on-nested-rules-in-proper-scope.css ├── cascade-on-nested-rules-in-proper-scope.expected.css ├── cascade-on-nested-rules.css ├── cascade-on-nested-rules.expected.css ├── cascade-with-calc-expression-on-nested-rules.css ├── cascade-with-calc-expression-on-nested-rules.expected.css ├── circular-reference.css ├── circular-reference.expected.css ├── comma-separated-variable-declaration.css ├── comma-separated-variable-declaration.expected.css ├── comma-separated-variable-usage.css ├── comma-separated-variable-usage.expected.css ├── css4-descendant-selector.css ├── css4-descendant-selector.expected.css ├── descendant-selector.css ├── descendant-selector.expected.css ├── direct-descendant-selector-descendant-scope.css ├── direct-descendant-selector-descendant-scope.expected.css ├── direct-descendant-selector-direct-descendant-scope.css ├── direct-descendant-selector-direct-descendant-scope.expected.css ├── direct-descendant-selector.css ├── direct-descendant-selector.expected.css ├── empty-var-func.css ├── empty-var-func.expected.css ├── important-variable-declaration.css ├── important-variable-declaration.expected.css ├── js-defined-preserve-injected.css ├── js-defined-preserve-injected.expected.css ├── js-defined-preserve.css ├── js-defined-preserve.expected.css ├── js-defined.css ├── js-defined.expected.css ├── local-variable-non-root.css ├── local-variable-non-root.expected.css ├── malformed-variable-usage.css ├── malformed-variable-usage.expected.css ├── media-query-nested.css ├── media-query-nested.expected.css ├── media-query.css ├── media-query.expected.css ├── missing-variable-should-fallback-calc.css ├── missing-variable-should-fallback-calc.expected.css ├── missing-variable-should-fallback-nested.css ├── missing-variable-should-fallback-nested.expected.css ├── missing-variable-should-fallback-var.css ├── missing-variable-should-fallback-var.expected.css ├── missing-variable-should-fallback.css ├── missing-variable-should-fallback.expected.css ├── missing-variable-usage.css ├── missing-variable-usage.expected.css ├── nested-inside-other-func.css ├── nested-inside-other-func.expected.css ├── no-var-func-just-root.css ├── no-var-func-just-root.expected.css ├── no-var-func.css ├── no-var-func.expected.css ├── preserve-computed.css ├── preserve-computed.expected.css ├── preserve-variables-in-media.css ├── preserve-variables-in-media.expected.css ├── preserve-variables.css ├── preserve-variables.expected.css ├── pseudo-selector-declare-variable.css ├── pseudo-selector-declare-variable.expected.css ├── pseudo-selector.css ├── pseudo-selector.expected.css ├── remove-empty-rules-after-variable-collection.css ├── remove-empty-rules-after-variable-collection.expected.css ├── remove-nested-empty-rules-after-variable-collection.css ├── remove-nested-empty-rules-after-variable-collection.expected.css ├── root-variable.css ├── root-variable.expected.css ├── scope-last-piece-of-combinator-sequence.css ├── scope-last-piece-of-combinator-sequence.expected.css ├── self-reference-fallback.css ├── self-reference-fallback.expected.css ├── self-reference.css ├── self-reference.expected.css ├── star-selector-scope.css ├── star-selector-scope.expected.css ├── support-directive.css ├── support-directive.expected.css ├── variable-reference-other-variable-media-query1.css ├── variable-reference-other-variable-media-query1.expected.css ├── variable-reference-other-variable-media-query2.css ├── variable-reference-other-variable-media-query2.expected.css ├── variable-reference-other-variable.css ├── variable-reference-other-variable.expected.css ├── variable-with-calc-expression-reference-other-variable.css └── variable-with-calc-expression-reference-other-variable.expected.css └── test.js /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/README.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/index.js -------------------------------------------------------------------------------- /lib/clone-splice-parent-onto-node-when.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/clone-splice-parent-onto-node-when.js -------------------------------------------------------------------------------- /lib/find-node-ancestor-with-selector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/find-node-ancestor-with-selector.js -------------------------------------------------------------------------------- /lib/gather-variable-dependencies.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/gather-variable-dependencies.js -------------------------------------------------------------------------------- /lib/generate-descendant-pieces-from-selector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/generate-descendant-pieces-from-selector.js -------------------------------------------------------------------------------- /lib/generate-direct-descendant-pieces-from-selector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/generate-direct-descendant-pieces-from-selector.js -------------------------------------------------------------------------------- /lib/generate-scope-list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/generate-scope-list.js -------------------------------------------------------------------------------- /lib/is-node-under-scope.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/is-node-under-scope.js -------------------------------------------------------------------------------- /lib/is-piece-always-ancestor-selector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/is-piece-always-ancestor-selector.js -------------------------------------------------------------------------------- /lib/is-under-scope.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/is-under-scope.js -------------------------------------------------------------------------------- /lib/resolve-decl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/resolve-decl.js -------------------------------------------------------------------------------- /lib/resolve-value.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/resolve-value.js -------------------------------------------------------------------------------- /lib/shallow-clone-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/lib/shallow-clone-node.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/package.json -------------------------------------------------------------------------------- /playground/.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | jspm_packages 3 | build.js 4 | -------------------------------------------------------------------------------- /playground/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /playground/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /playground/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/README.md -------------------------------------------------------------------------------- /playground/build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/build.js -------------------------------------------------------------------------------- /playground/build.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/build.js.map -------------------------------------------------------------------------------- /playground/caniuse-db-json-systemjs-paths.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/caniuse-db-json-systemjs-paths.json -------------------------------------------------------------------------------- /playground/css.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/css.js -------------------------------------------------------------------------------- /playground/custom-postcss-mixins/cursor-hand.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/custom-postcss-mixins/cursor-hand.js -------------------------------------------------------------------------------- /playground/custom-postcss-mixins/toggle-checkbox-enclosed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/custom-postcss-mixins/toggle-checkbox-enclosed.js -------------------------------------------------------------------------------- /playground/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/gulpfile.js -------------------------------------------------------------------------------- /playground/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/index.html -------------------------------------------------------------------------------- /playground/jspm.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/jspm.config.js -------------------------------------------------------------------------------- /playground/jspm_packages/.loaderversions: -------------------------------------------------------------------------------- 1 | 0.20.14 -------------------------------------------------------------------------------- /playground/jspm_packages/system.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/jspm_packages/system.js -------------------------------------------------------------------------------- /playground/jspm_packages/system.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/jspm_packages/system.js.map -------------------------------------------------------------------------------- /playground/jspm_packages/system.src.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/jspm_packages/system.src.js -------------------------------------------------------------------------------- /playground/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/package.json -------------------------------------------------------------------------------- /playground/src/js/actions/PlaygroundActions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/actions/PlaygroundActions.js -------------------------------------------------------------------------------- /playground/src/js/components/EditorTextarea.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/components/EditorTextarea.js -------------------------------------------------------------------------------- /playground/src/js/components/PlaygroundApp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/components/PlaygroundApp.js -------------------------------------------------------------------------------- /playground/src/js/components/PlaygroundHeader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/components/PlaygroundHeader.js -------------------------------------------------------------------------------- /playground/src/js/constants/PlaygroundConstants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/constants/PlaygroundConstants.js -------------------------------------------------------------------------------- /playground/src/js/dispatcher/AppDispatcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/dispatcher/AppDispatcher.js -------------------------------------------------------------------------------- /playground/src/js/lib/deferred-promise.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/lib/deferred-promise.js -------------------------------------------------------------------------------- /playground/src/js/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/main.js -------------------------------------------------------------------------------- /playground/src/js/services/PlaygroundPersistentSettingsDAO.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/services/PlaygroundPersistentSettingsDAO.js -------------------------------------------------------------------------------- /playground/src/js/stores/PlaygroundSettingsStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/stores/PlaygroundSettingsStore.js -------------------------------------------------------------------------------- /playground/src/js/stores/PlaygroundStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/js/stores/PlaygroundStore.js -------------------------------------------------------------------------------- /playground/src/postcss/playground.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/playground/src/postcss/playground.css -------------------------------------------------------------------------------- /test/fixtures/cascade-on-nested-rules-in-proper-scope.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/cascade-on-nested-rules-in-proper-scope.css -------------------------------------------------------------------------------- /test/fixtures/cascade-on-nested-rules-in-proper-scope.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/cascade-on-nested-rules-in-proper-scope.expected.css -------------------------------------------------------------------------------- /test/fixtures/cascade-on-nested-rules.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/cascade-on-nested-rules.css -------------------------------------------------------------------------------- /test/fixtures/cascade-on-nested-rules.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/cascade-on-nested-rules.expected.css -------------------------------------------------------------------------------- /test/fixtures/cascade-with-calc-expression-on-nested-rules.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/cascade-with-calc-expression-on-nested-rules.css -------------------------------------------------------------------------------- /test/fixtures/cascade-with-calc-expression-on-nested-rules.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/cascade-with-calc-expression-on-nested-rules.expected.css -------------------------------------------------------------------------------- /test/fixtures/circular-reference.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/circular-reference.css -------------------------------------------------------------------------------- /test/fixtures/circular-reference.expected.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: undefined; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/comma-separated-variable-declaration.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/comma-separated-variable-declaration.css -------------------------------------------------------------------------------- /test/fixtures/comma-separated-variable-declaration.expected.css: -------------------------------------------------------------------------------- 1 | .some-bar-namespace * ~ * { 2 | margin-top: 13px; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/comma-separated-variable-usage.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/comma-separated-variable-usage.css -------------------------------------------------------------------------------- /test/fixtures/comma-separated-variable-usage.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/comma-separated-variable-usage.expected.css -------------------------------------------------------------------------------- /test/fixtures/css4-descendant-selector.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/css4-descendant-selector.css -------------------------------------------------------------------------------- /test/fixtures/css4-descendant-selector.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/css4-descendant-selector.expected.css -------------------------------------------------------------------------------- /test/fixtures/descendant-selector.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/descendant-selector.css -------------------------------------------------------------------------------- /test/fixtures/descendant-selector.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/descendant-selector.expected.css -------------------------------------------------------------------------------- /test/fixtures/direct-descendant-selector-descendant-scope.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/direct-descendant-selector-descendant-scope.css -------------------------------------------------------------------------------- /test/fixtures/direct-descendant-selector-descendant-scope.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/direct-descendant-selector-descendant-scope.expected.css -------------------------------------------------------------------------------- /test/fixtures/direct-descendant-selector-direct-descendant-scope.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/direct-descendant-selector-direct-descendant-scope.css -------------------------------------------------------------------------------- /test/fixtures/direct-descendant-selector-direct-descendant-scope.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/direct-descendant-selector-direct-descendant-scope.expected.css -------------------------------------------------------------------------------- /test/fixtures/direct-descendant-selector.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/direct-descendant-selector.css -------------------------------------------------------------------------------- /test/fixtures/direct-descendant-selector.expected.css: -------------------------------------------------------------------------------- 1 | .foo > .bar { 2 | width: 150px; 3 | } -------------------------------------------------------------------------------- /test/fixtures/empty-var-func.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/empty-var-func.css -------------------------------------------------------------------------------- /test/fixtures/empty-var-func.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/empty-var-func.expected.css -------------------------------------------------------------------------------- /test/fixtures/important-variable-declaration.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/important-variable-declaration.css -------------------------------------------------------------------------------- /test/fixtures/important-variable-declaration.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/important-variable-declaration.expected.css -------------------------------------------------------------------------------- /test/fixtures/js-defined-preserve-injected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/js-defined-preserve-injected.css -------------------------------------------------------------------------------- /test/fixtures/js-defined-preserve-injected.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/js-defined-preserve-injected.expected.css -------------------------------------------------------------------------------- /test/fixtures/js-defined-preserve.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/js-defined-preserve.css -------------------------------------------------------------------------------- /test/fixtures/js-defined-preserve.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/js-defined-preserve.expected.css -------------------------------------------------------------------------------- /test/fixtures/js-defined.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/js-defined.css -------------------------------------------------------------------------------- /test/fixtures/js-defined.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/js-defined.expected.css -------------------------------------------------------------------------------- /test/fixtures/local-variable-non-root.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/local-variable-non-root.css -------------------------------------------------------------------------------- /test/fixtures/local-variable-non-root.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/local-variable-non-root.expected.css -------------------------------------------------------------------------------- /test/fixtures/malformed-variable-usage.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/malformed-variable-usage.css -------------------------------------------------------------------------------- /test/fixtures/malformed-variable-usage.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/malformed-variable-usage.expected.css -------------------------------------------------------------------------------- /test/fixtures/media-query-nested.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/media-query-nested.css -------------------------------------------------------------------------------- /test/fixtures/media-query-nested.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/media-query-nested.expected.css -------------------------------------------------------------------------------- /test/fixtures/media-query.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/media-query.css -------------------------------------------------------------------------------- /test/fixtures/media-query.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/media-query.expected.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback-calc.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback-calc.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback-calc.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback-calc.expected.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback-nested.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback-nested.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback-nested.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback-nested.expected.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback-var.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback-var.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback-var.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback-var.expected.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-should-fallback.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-should-fallback.expected.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-usage.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/missing-variable-usage.css -------------------------------------------------------------------------------- /test/fixtures/missing-variable-usage.expected.css: -------------------------------------------------------------------------------- 1 | .box-foo { 2 | width: undefined; 3 | } -------------------------------------------------------------------------------- /test/fixtures/nested-inside-other-func.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/nested-inside-other-func.css -------------------------------------------------------------------------------- /test/fixtures/nested-inside-other-func.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/nested-inside-other-func.expected.css -------------------------------------------------------------------------------- /test/fixtures/no-var-func-just-root.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --foo-width: 150px; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/no-var-func-just-root.expected.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/no-var-func.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/no-var-func.css -------------------------------------------------------------------------------- /test/fixtures/no-var-func.expected.css: -------------------------------------------------------------------------------- 1 | .box { 2 | width: 100px; 3 | } -------------------------------------------------------------------------------- /test/fixtures/preserve-computed.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/preserve-computed.css -------------------------------------------------------------------------------- /test/fixtures/preserve-computed.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/preserve-computed.expected.css -------------------------------------------------------------------------------- /test/fixtures/preserve-variables-in-media.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/preserve-variables-in-media.css -------------------------------------------------------------------------------- /test/fixtures/preserve-variables-in-media.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/preserve-variables-in-media.expected.css -------------------------------------------------------------------------------- /test/fixtures/preserve-variables.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/preserve-variables.css -------------------------------------------------------------------------------- /test/fixtures/preserve-variables.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/preserve-variables.expected.css -------------------------------------------------------------------------------- /test/fixtures/pseudo-selector-declare-variable.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/pseudo-selector-declare-variable.css -------------------------------------------------------------------------------- /test/fixtures/pseudo-selector-declare-variable.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/pseudo-selector-declare-variable.expected.css -------------------------------------------------------------------------------- /test/fixtures/pseudo-selector.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/pseudo-selector.css -------------------------------------------------------------------------------- /test/fixtures/pseudo-selector.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/pseudo-selector.expected.css -------------------------------------------------------------------------------- /test/fixtures/remove-empty-rules-after-variable-collection.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/remove-empty-rules-after-variable-collection.css -------------------------------------------------------------------------------- /test/fixtures/remove-empty-rules-after-variable-collection.expected.css: -------------------------------------------------------------------------------- 1 | :root { 2 | 3 | background: #ff0000; 4 | } -------------------------------------------------------------------------------- /test/fixtures/remove-nested-empty-rules-after-variable-collection.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/remove-nested-empty-rules-after-variable-collection.css -------------------------------------------------------------------------------- /test/fixtures/remove-nested-empty-rules-after-variable-collection.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/remove-nested-empty-rules-after-variable-collection.expected.css -------------------------------------------------------------------------------- /test/fixtures/root-variable.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/root-variable.css -------------------------------------------------------------------------------- /test/fixtures/root-variable.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/root-variable.expected.css -------------------------------------------------------------------------------- /test/fixtures/scope-last-piece-of-combinator-sequence.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/scope-last-piece-of-combinator-sequence.css -------------------------------------------------------------------------------- /test/fixtures/scope-last-piece-of-combinator-sequence.expected.css: -------------------------------------------------------------------------------- 1 | .foo + .bar { 2 | width: 150px; 3 | } -------------------------------------------------------------------------------- /test/fixtures/self-reference-fallback.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/self-reference-fallback.css -------------------------------------------------------------------------------- /test/fixtures/self-reference-fallback.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/self-reference-fallback.expected.css -------------------------------------------------------------------------------- /test/fixtures/self-reference.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/self-reference.css -------------------------------------------------------------------------------- /test/fixtures/self-reference.expected.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: undefined; 3 | } -------------------------------------------------------------------------------- /test/fixtures/star-selector-scope.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/star-selector-scope.css -------------------------------------------------------------------------------- /test/fixtures/star-selector-scope.expected.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | background: #0f0; 3 | } -------------------------------------------------------------------------------- /test/fixtures/support-directive.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/support-directive.css -------------------------------------------------------------------------------- /test/fixtures/support-directive.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/support-directive.expected.css -------------------------------------------------------------------------------- /test/fixtures/variable-reference-other-variable-media-query1.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/variable-reference-other-variable-media-query1.css -------------------------------------------------------------------------------- /test/fixtures/variable-reference-other-variable-media-query1.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/variable-reference-other-variable-media-query1.expected.css -------------------------------------------------------------------------------- /test/fixtures/variable-reference-other-variable-media-query2.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/variable-reference-other-variable-media-query2.css -------------------------------------------------------------------------------- /test/fixtures/variable-reference-other-variable-media-query2.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/variable-reference-other-variable-media-query2.expected.css -------------------------------------------------------------------------------- /test/fixtures/variable-reference-other-variable.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/variable-reference-other-variable.css -------------------------------------------------------------------------------- /test/fixtures/variable-reference-other-variable.expected.css: -------------------------------------------------------------------------------- 1 | .box-foo { 2 | width: calc(150px + 15vw); 3 | } -------------------------------------------------------------------------------- /test/fixtures/variable-with-calc-expression-reference-other-variable.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/variable-with-calc-expression-reference-other-variable.css -------------------------------------------------------------------------------- /test/fixtures/variable-with-calc-expression-reference-other-variable.expected.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/fixtures/variable-with-calc-expression-reference-other-variable.expected.css -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codyhouse/postcss-css-variables/HEAD/test/test.js --------------------------------------------------------------------------------