From fee47f6414cc3ae9a88f3ee0ed20f1d6f2d9f556 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Oct 2023 15:58:02 +0800 Subject: added plugin from postcss: postcss-fixes rucksack-css --- node_modules/postcss-unopacity/.editorconfig | 14 + node_modules/postcss-unopacity/.eslintrc | 122 + node_modules/postcss-unopacity/.npmignore | 2 + node_modules/postcss-unopacity/.travis.yml | 5 + node_modules/postcss-unopacity/CHANGELOG.md | 7 + node_modules/postcss-unopacity/CONTRIBUTING.md | 60 + node_modules/postcss-unopacity/LICENSE.md | 15 + node_modules/postcss-unopacity/README.md | 187 ++ node_modules/postcss-unopacity/index.js | 17 + .../node_modules/ansi-regex/index.js | 4 + .../node_modules/ansi-regex/license | 21 + .../node_modules/ansi-regex/package.json | 64 + .../node_modules/ansi-regex/readme.md | 39 + .../node_modules/ansi-styles/index.js | 65 + .../node_modules/ansi-styles/license | 21 + .../node_modules/ansi-styles/package.json | 50 + .../node_modules/ansi-styles/readme.md | 86 + .../postcss-unopacity/node_modules/chalk/index.js | 116 + .../postcss-unopacity/node_modules/chalk/license | 21 + .../chalk/node_modules/supports-color/index.js | 50 + .../chalk/node_modules/supports-color/license | 21 + .../chalk/node_modules/supports-color/package.json | 49 + .../chalk/node_modules/supports-color/readme.md | 36 + .../node_modules/chalk/package.json | 70 + .../postcss-unopacity/node_modules/chalk/readme.md | 213 ++ .../node_modules/has-flag/index.js | 10 + .../node_modules/has-flag/license | 21 + .../node_modules/has-flag/package.json | 48 + .../node_modules/has-flag/readme.md | 64 + .../node_modules/postcss/CHANGELOG.md | 460 +++ .../postcss-unopacity/node_modules/postcss/LICENSE | 20 + .../node_modules/postcss/README.md | 379 +++ .../node_modules/postcss/docs/guidelines/plugin.md | 195 ++ .../node_modules/postcss/docs/guidelines/runner.md | 143 + .../node_modules/postcss/docs/source-maps.md | 72 + .../node_modules/postcss/docs/syntax.md | 231 ++ .../node_modules/postcss/lib/at-rule.js | 159 + .../node_modules/postcss/lib/comment.js | 89 + .../node_modules/postcss/lib/container.js | 935 ++++++ .../node_modules/postcss/lib/css-syntax-error.js | 272 ++ .../node_modules/postcss/lib/declaration.js | 130 + .../node_modules/postcss/lib/input.js | 198 ++ .../node_modules/postcss/lib/lazy-result.js | 432 +++ .../node_modules/postcss/lib/list.js | 95 + .../node_modules/postcss/lib/map-generator.js | 312 ++ .../node_modules/postcss/lib/node.js | 672 +++++ .../node_modules/postcss/lib/parse.js | 43 + .../node_modules/postcss/lib/parser.js | 514 ++++ .../node_modules/postcss/lib/postcss.d.ts | 1305 +++++++++ .../node_modules/postcss/lib/postcss.js | 292 ++ .../node_modules/postcss/lib/previous-map.js | 162 + .../node_modules/postcss/lib/processor.js | 240 ++ .../node_modules/postcss/lib/result.js | 206 ++ .../node_modules/postcss/lib/root.js | 143 + .../node_modules/postcss/lib/rule.js | 136 + .../node_modules/postcss/lib/stringifier.js | 335 +++ .../node_modules/postcss/lib/stringify.js | 17 + .../node_modules/postcss/lib/terminal-highlight.js | 76 + .../node_modules/postcss/lib/tokenize.js | 273 ++ .../node_modules/postcss/lib/vendor.js | 52 + .../node_modules/postcss/lib/warn-once.js | 14 + .../node_modules/postcss/lib/warning.js | 122 + .../node_modules/postcss/package.json | 76 + .../node_modules/source-map/CHANGELOG.md | 301 ++ .../node_modules/source-map/LICENSE | 28 + .../node_modules/source-map/README.md | 729 +++++ .../source-map/dist/source-map.debug.js | 3091 ++++++++++++++++++++ .../node_modules/source-map/dist/source-map.js | 3090 +++++++++++++++++++ .../node_modules/source-map/dist/source-map.min.js | 2 + .../source-map/dist/source-map.min.js.map | 1 + .../node_modules/source-map/lib/array-set.js | 121 + .../node_modules/source-map/lib/base64-vlq.js | 140 + .../node_modules/source-map/lib/base64.js | 67 + .../node_modules/source-map/lib/binary-search.js | 111 + .../node_modules/source-map/lib/mapping-list.js | 79 + .../node_modules/source-map/lib/quick-sort.js | 114 + .../source-map/lib/source-map-consumer.js | 1082 +++++++ .../source-map/lib/source-map-generator.js | 416 +++ .../node_modules/source-map/lib/source-node.js | 413 +++ .../node_modules/source-map/lib/util.js | 417 +++ .../node_modules/source-map/package.json | 72 + .../node_modules/source-map/source-map.js | 8 + .../node_modules/strip-ansi/index.js | 6 + .../node_modules/strip-ansi/license | 21 + .../node_modules/strip-ansi/package.json | 57 + .../node_modules/strip-ansi/readme.md | 33 + .../node_modules/supports-color/browser.js | 2 + .../node_modules/supports-color/index.js | 84 + .../node_modules/supports-color/license | 21 + .../node_modules/supports-color/package.json | 66 + .../node_modules/supports-color/readme.md | 60 + node_modules/postcss-unopacity/package.json | 39 + .../test/fixtures/basic.actual.css | 3 + .../test/fixtures/basic.copy.actual.css | 4 + .../test/fixtures/basic.copy.expect.css | 4 + .../postcss-unopacity/test/fixtures/basic.css | 3 + .../test/fixtures/basic.expect.css | 3 + .../test/fixtures/basic.prefixed.actual.css | 3 + .../test/fixtures/basic.prefixed.expect.css | 3 + .../test/fixtures/basic.warn.actual.css | 3 + .../test/fixtures/basic.warn.expect.css | 3 + node_modules/postcss-unopacity/test/index.js | 83 + 102 files changed, 21081 insertions(+) create mode 100644 node_modules/postcss-unopacity/.editorconfig create mode 100644 node_modules/postcss-unopacity/.eslintrc create mode 100644 node_modules/postcss-unopacity/.npmignore create mode 100644 node_modules/postcss-unopacity/.travis.yml create mode 100644 node_modules/postcss-unopacity/CHANGELOG.md create mode 100644 node_modules/postcss-unopacity/CONTRIBUTING.md create mode 100644 node_modules/postcss-unopacity/LICENSE.md create mode 100644 node_modules/postcss-unopacity/README.md create mode 100644 node_modules/postcss-unopacity/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-regex/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-regex/license create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-regex/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-regex/readme.md create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-styles/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-styles/license create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-styles/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/ansi-styles/readme.md create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/license create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/license create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/readme.md create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/chalk/readme.md create mode 100644 node_modules/postcss-unopacity/node_modules/has-flag/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/has-flag/license create mode 100644 node_modules/postcss-unopacity/node_modules/has-flag/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/has-flag/readme.md create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/CHANGELOG.md create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/LICENSE create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/README.md create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/docs/guidelines/plugin.md create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/docs/guidelines/runner.md create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/docs/source-maps.md create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/docs/syntax.md create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/at-rule.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/comment.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/container.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/css-syntax-error.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/declaration.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/input.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/lazy-result.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/list.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/map-generator.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/node.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/parse.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/parser.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/postcss.d.ts create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/postcss.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/previous-map.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/processor.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/result.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/root.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/rule.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/stringifier.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/stringify.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/terminal-highlight.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/tokenize.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/vendor.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/warn-once.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/lib/warning.js create mode 100644 node_modules/postcss-unopacity/node_modules/postcss/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/CHANGELOG.md create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/LICENSE create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/README.md create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/dist/source-map.debug.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/dist/source-map.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/dist/source-map.min.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/dist/source-map.min.js.map create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/array-set.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/base64-vlq.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/base64.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/binary-search.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/mapping-list.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/quick-sort.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/source-map-consumer.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/source-map-generator.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/source-node.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/lib/util.js create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/source-map/source-map.js create mode 100644 node_modules/postcss-unopacity/node_modules/strip-ansi/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/strip-ansi/license create mode 100644 node_modules/postcss-unopacity/node_modules/strip-ansi/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/strip-ansi/readme.md create mode 100644 node_modules/postcss-unopacity/node_modules/supports-color/browser.js create mode 100644 node_modules/postcss-unopacity/node_modules/supports-color/index.js create mode 100644 node_modules/postcss-unopacity/node_modules/supports-color/license create mode 100644 node_modules/postcss-unopacity/node_modules/supports-color/package.json create mode 100644 node_modules/postcss-unopacity/node_modules/supports-color/readme.md create mode 100644 node_modules/postcss-unopacity/package.json create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.actual.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.copy.actual.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.copy.expect.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.expect.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.prefixed.actual.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.prefixed.expect.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.warn.actual.css create mode 100644 node_modules/postcss-unopacity/test/fixtures/basic.warn.expect.css create mode 100644 node_modules/postcss-unopacity/test/index.js (limited to 'node_modules/postcss-unopacity') diff --git a/node_modules/postcss-unopacity/.editorconfig b/node_modules/postcss-unopacity/.editorconfig new file mode 100644 index 00000000..7843e7d0 --- /dev/null +++ b/node_modules/postcss-unopacity/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +indent_style = tab +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[*.{json,yml}] +indent_size = 2 diff --git a/node_modules/postcss-unopacity/.eslintrc b/node_modules/postcss-unopacity/.eslintrc new file mode 100644 index 00000000..d85f6967 --- /dev/null +++ b/node_modules/postcss-unopacity/.eslintrc @@ -0,0 +1,122 @@ +{ + "rules": { + "no-shadow-restricted-names": [2], + "computed-property-spacing": [2], + "no-empty-character-class": [2], + "no-irregular-whitespace": [2], + "no-unexpected-multiline": [2], + "no-multiple-empty-lines": [2], + "space-return-throw-case": [2], + "no-constant-condition": [2], + "no-extra-boolean-cast": [2], + "no-inner-declarations": [2], + "no-this-before-super": [2], + "no-array-constructor": [2], + "object-curly-spacing": [2, "always"], + "no-floating-decimal": [2], + "no-warning-comments": [2], + "handle-callback-err": [2], + "no-unneeded-ternary": [2], + "operator-assignment": [2], + "space-before-blocks": [2], + "no-native-reassign": [2], + "no-trailing-spaces": [2], + "operator-linebreak": [2, "after"], + "consistent-return": [2], + "no-duplicate-case": [2], + "no-invalid-regexp": [2], + "no-negated-in-lhs": [2], + "constructor-super": [2], + "no-nested-ternary": [0], + "no-extend-native": [2], + "block-scoped-var": [2], + "no-control-regex": [2], + "no-sparse-arrays": [2], + "no-throw-literal": [2], + "no-return-assign": [2], + "no-const-assign": [2], + "no-class-assign": [2], + "no-extra-parens": [2], + "no-regex-spaces": [2], + "no-implied-eval": [2], + "no-useless-call": [2], + "no-self-compare": [2], + "no-octal-escape": [2], + "no-new-wrappers": [2], + "no-process-exit": [2], + "no-catch-shadow": [2], + "linebreak-style": [2], + "space-infix-ops": [2], + "space-unary-ops": [2], + "no-func-assign": [2], + "no-unreachable": [2], + "accessor-pairs": [2], + "no-empty-label": [2], + "no-fallthrough": [2], + "no-path-concat": [2], + "no-new-require": [2], + "no-spaced-func": [2], + "no-unused-vars": [2], + "spaced-comment": [2], + "no-delete-var": [2], + "comma-spacing": [2], + "no-extra-semi": [2], + "no-extra-bind": [2], + "arrow-spacing": [2], + "prefer-spread": [2], + "no-new-object": [2], + "no-multi-str": [2], + "semi-spacing": [2], + "no-lonely-if": [2], + "dot-notation": [2], + "dot-location": [2, "property"], + "comma-dangle": [2, "never"], + "no-dupe-args": [2], + "no-dupe-keys": [2], + "no-ex-assign": [2], + "no-obj-calls": [2], + "valid-typeof": [2], + "default-case": [2], + "no-redeclare": [2], + "no-div-regex": [2], + "no-sequences": [2], + "no-label-var": [2], + "comma-style": [2], + "brace-style": [2], + "no-debugger": [2], + "quote-props": [0], + "no-iterator": [2], + "no-new-func": [2], + "key-spacing": [2, { "align": "value" }], + "complexity": [2], + "new-parens": [2], + "no-eq-null": [2], + "no-bitwise": [0], + "wrap-iife": [2], + "no-caller": [2], + "use-isnan": [2], + "no-labels": [2], + "no-shadow": [2], + "camelcase": [2], + "eol-last": [2], + "no-octal": [2], + "no-empty": [2], + "no-alert": [2], + "no-proto": [2], + "no-undef": [2], + "no-eval": [2], + "no-with": [2], + "no-void": [2], + "new-cap": [2], + "eqeqeq": [2], + "no-new": [2], + "quotes": [2, "single"], + "indent": [2, "tab"], + "semi": [2, "always"], + "yoda": [2, "never"] + }, + "env": { + "mocha": true, + "node": true + } +} diff --git a/node_modules/postcss-unopacity/.npmignore b/node_modules/postcss-unopacity/.npmignore new file mode 100644 index 00000000..1ca95717 --- /dev/null +++ b/node_modules/postcss-unopacity/.npmignore @@ -0,0 +1,2 @@ +node_modules/ +npm-debug.log diff --git a/node_modules/postcss-unopacity/.travis.yml b/node_modules/postcss-unopacity/.travis.yml new file mode 100644 index 00000000..c8d06639 --- /dev/null +++ b/node_modules/postcss-unopacity/.travis.yml @@ -0,0 +1,5 @@ +sudo: false +language: node_js +node_js: + - stable + - "0.12" diff --git a/node_modules/postcss-unopacity/CHANGELOG.md b/node_modules/postcss-unopacity/CHANGELOG.md new file mode 100644 index 00000000..4a2248f3 --- /dev/null +++ b/node_modules/postcss-unopacity/CHANGELOG.md @@ -0,0 +1,7 @@ +## 1.0.1 (2015-10-24) + +- Updated: Tests and documentation + +## 1.0.0 (2015-10-04) + +- Added: Initial version diff --git a/node_modules/postcss-unopacity/CONTRIBUTING.md b/node_modules/postcss-unopacity/CONTRIBUTING.md new file mode 100644 index 00000000..9a1ff560 --- /dev/null +++ b/node_modules/postcss-unopacity/CONTRIBUTING.md @@ -0,0 +1,60 @@ +You want to help? You rock! Now, take a moment to be sure your contributions make sense to everyone else. + +## Reporting Issues + +Found a problem? Want a new feature? + +- See if your issue or idea has [already been reported]. +- Provide a [reduced test case] or a [live example]. + +Remember, a bug is a _demonstrable problem_ caused by _our_ code. + +## Submitting Pull Requests + +Pull requests are the greatest contributions, so be sure they are focused in scope, and do avoid unrelated commits. + +1. To begin, [fork this project], clone your fork, and add our upstream. + ```bash + # Clone your fork of the repo into the current directory + git clone https://github.com//postcss-unopacity + # Navigate to the newly cloned directory + cd postcss-unopacity + # Assign the original repo to a remote called "upstream" + git remote add upstream https://github.com/jonathantneal/postcss-unopacity + # Install the tools necessary for development + npm install + ``` + +2. Create a branch for your feature or fix: + ```bash + # Move into a new branch for a feature + git checkout -b feature/thing + ``` + ```bash + # Move into a new branch for a fix + git checkout -b fix/something + ``` + +3. Be sure your code follows our practices. + ```bash + # Test current code + npm run test + ``` + +4. Push your branch up to your fork: + ```bash + # Push a feature branch + git push origin feature/thing + ``` + ```bash + # Push a fix branch + git push origin fix/something + ``` + +5. Now [open a pull request] with a clear title and description. + +[already been reported]: issues +[fork this project]: fork +[live example]: http://codepen.io/pen +[open a pull request]: https://help.github.com/articles/using-pull-requests/ +[reduced test case]: https://css-tricks.com/reduced-test-cases/ diff --git a/node_modules/postcss-unopacity/LICENSE.md b/node_modules/postcss-unopacity/LICENSE.md new file mode 100644 index 00000000..565f84e3 --- /dev/null +++ b/node_modules/postcss-unopacity/LICENSE.md @@ -0,0 +1,15 @@ +# CC0 1.0 Universal License + +Public Domain Dedication + +The person(s) who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. + +You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. + +In no way are the patent or trademark rights of any person affected by CC0, nor are the rights that other persons may have in the work or in how the work is used, such as publicity or privacy rights. + +Unless expressly stated otherwise, the person(s) who associated a work with this deed makes no warranties about the work, and disclaims liability for all uses of the work, to the fullest extent permitted by applicable law. + +When using or citing the work, you should not imply endorsement by the author or the affirmer. + +This is a [human-readable summary of the Legal Code](https://creativecommons.org/publicdomain/zero/1.0/) ([read the full text](https://creativecommons.org/publicdomain/zero/1.0/legalcode)). diff --git a/node_modules/postcss-unopacity/README.md b/node_modules/postcss-unopacity/README.md new file mode 100644 index 00000000..16c7ca21 --- /dev/null +++ b/node_modules/postcss-unopacity/README.md @@ -0,0 +1,187 @@ +# UnOpacity [![Build Status][ci-img]][ci] + + + +[UnOpacity] replaces the `opacity` property with a `filter` property. This can be useful for outputting CSS for older browsers like Internet Explorer 8. + +```css +/* before */ + +.figure { + opacity: .5; +} + +/* after */ + +.figure { + filter: alpha(opacity=50); +} +``` + +## Usage + +Add [UnOpacity] to your build tool: + +```bash +npm install postcss-unopacity --save-dev +``` + +#### Node + +```js +require('postcss-unopacity')({ /* options */ }).process(YOUR_CSS); +``` + +#### PostCSS + +Add [PostCSS] to your build tool: + +```bash +npm install postcss --save-dev +``` + +Load [UnOpacity] as a PostCSS plugin: + +```js +postcss([ + require('postcss-unopacity')({ /* options */ }) +]); +``` + +#### Gulp + +Add [Gulp PostCSS] to your build tool: + +```bash +npm install gulp-postcss --save-dev +``` + +Enable [UnOpacity] within your Gulpfile: + +```js +var postcss = require('gulp-postcss'); + +gulp.task('css', function () { + return gulp.src('./css/src/*.css').pipe( + postcss([ + require('postcss-unopacity')({ /* options */ }) + ]) + ).pipe( + gulp.dest('./css') + ); +}); +``` + +#### Grunt + +Add [Grunt PostCSS] to your build tool: + +```bash +npm install grunt-postcss --save-dev +``` + +Enable [UnOpacity] within your Gruntfile: + +```js +grunt.loadNpmTasks('grunt-postcss'); + +grunt.initConfig({ + postcss: { + options: { + processors: [ + require('postcss-unopacity')({ /* options */ }) + ] + }, + dist: { + src: 'css/*.css' + } + } +}); +``` + +### Options + +#### `method` + +Type: `String` +Default: `'replace'` + +##### `replace` +Replace any `opacity` property with a fallback. +```css +/* before */ + +.figure { + opacity: .5; +} + +/* after */ + +.figure { + filter: alpha(opacity=50); +} +``` + +##### `copy` +Copy any `opacity` property with a fallback. +```css +/* before */ + +.figure { + opacity: .5; +} + +/* after */ + +.figure { + filter: alpha(opacity=50); + opacity: .5; +} +``` + +##### `warn` +Warn when an `opacity` property is used. + +#### `prefixed` + +Type: `Boolean` +Default: `false` + +##### `true` +Use an `-ms-filter` property as a fallback. +```css +/* before */ + +.figure { + opacity: .5; +} + +/* after */ + +.figure { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; +} +``` + +##### `false` +Use a `filter` property as a fallback. +```css +/* before */ + +.figure { + opacity: .5; +} + +/* after */ + +.figure { + filter: alpha(opacity=50); +} +``` + +[ci]: https://travis-ci.org/jonathantneal/postcss-unopacity +[ci-img]: https://travis-ci.org/jonathantneal/postcss-unopacity.svg +[Gulp PostCSS]: https://github.com/postcss/gulp-postcss +[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss +[PostCSS]: https://github.com/postcss/postcss +[UnOpacity]: https://github.com/jonathantneal/postcss-unopacity diff --git a/node_modules/postcss-unopacity/index.js b/node_modules/postcss-unopacity/index.js new file mode 100644 index 00000000..b67472c8 --- /dev/null +++ b/node_modules/postcss-unopacity/index.js @@ -0,0 +1,17 @@ +var postcss = require('postcss'); + +module.exports = postcss.plugin('postcss-unopacity', function (opts) { + var method = opts && /^(copy|warn)$/.test(opts.method) ? opts.method : 'replace'; + var prefixed = opts && 'prefixed' in opts ? opts.prefixed : false; + + return function (css, result) { + css.walkDecls('opacity', function (decl) { + var value = Math.floor(decl.value * 100); + var clone = prefixed ? decl.clone({ prop: '-ms-filter', value: '"progid:DXImageTransform.Microsoft.Alpha(Opacity=' + value + ')"' }) : decl.clone({ prop: 'filter', value: 'alpha(opacity=' + value + ')' }); + + if (method === 'replace') decl.replaceWith(clone); + else if (method === 'copy') decl.parent.insertBefore(decl, clone); + else if (method === 'warn') result.warn('opacity detected', { node: decl }); + }); + }; +}); diff --git a/node_modules/postcss-unopacity/node_modules/ansi-regex/index.js b/node_modules/postcss-unopacity/node_modules/ansi-regex/index.js new file mode 100644 index 00000000..b9574ed7 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-regex/index.js @@ -0,0 +1,4 @@ +'use strict'; +module.exports = function () { + return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g; +}; diff --git a/node_modules/postcss-unopacity/node_modules/ansi-regex/license b/node_modules/postcss-unopacity/node_modules/ansi-regex/license new file mode 100644 index 00000000..654d0bfe --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-regex/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/postcss-unopacity/node_modules/ansi-regex/package.json b/node_modules/postcss-unopacity/node_modules/ansi-regex/package.json new file mode 100644 index 00000000..eb44fb5c --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-regex/package.json @@ -0,0 +1,64 @@ +{ + "name": "ansi-regex", + "version": "2.1.1", + "description": "Regular expression for matching ANSI escape codes", + "license": "MIT", + "repository": "chalk/ansi-regex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Appelman (jbnicolai.com)", + "JD Ballard (github.com/qix-)" + ], + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "xo && ava --verbose", + "view-supported": "node fixtures/view-codes.js" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "devDependencies": { + "ava": "0.17.0", + "xo": "0.16.0" + }, + "xo": { + "rules": { + "guard-for-in": 0, + "no-loop-func": 0 + } + } +} diff --git a/node_modules/postcss-unopacity/node_modules/ansi-regex/readme.md b/node_modules/postcss-unopacity/node_modules/ansi-regex/readme.md new file mode 100644 index 00000000..6a928edf --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-regex/readme.md @@ -0,0 +1,39 @@ +# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex) + +> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) + + +## Install + +``` +$ npm install --save ansi-regex +``` + + +## Usage + +```js +const ansiRegex = require('ansi-regex'); + +ansiRegex().test('\u001b[4mcake\u001b[0m'); +//=> true + +ansiRegex().test('cake'); +//=> false + +'\u001b[4mcake\u001b[0m'.match(ansiRegex()); +//=> ['\u001b[4m', '\u001b[0m'] +``` + +## FAQ + +### Why do you test for codes not in the ECMA 48 standard? + +Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. If I recall correctly, we test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. + +On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/postcss-unopacity/node_modules/ansi-styles/index.js b/node_modules/postcss-unopacity/node_modules/ansi-styles/index.js new file mode 100644 index 00000000..78945278 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-styles/index.js @@ -0,0 +1,65 @@ +'use strict'; + +function assembleStyles () { + var styles = { + modifiers: { + reset: [0, 0], + bold: [1, 22], // 21 isn't widely supported and 22 does the same thing + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + colors: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + gray: [90, 39] + }, + bgColors: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49] + } + }; + + // fix humans + styles.colors.grey = styles.colors.gray; + + Object.keys(styles).forEach(function (groupName) { + var group = styles[groupName]; + + Object.keys(group).forEach(function (styleName) { + var style = group[styleName]; + + styles[styleName] = group[styleName] = { + open: '\u001b[' + style[0] + 'm', + close: '\u001b[' + style[1] + 'm' + }; + }); + + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + }); + + return styles; +} + +Object.defineProperty(module, 'exports', { + enumerable: true, + get: assembleStyles +}); diff --git a/node_modules/postcss-unopacity/node_modules/ansi-styles/license b/node_modules/postcss-unopacity/node_modules/ansi-styles/license new file mode 100644 index 00000000..654d0bfe --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-styles/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/postcss-unopacity/node_modules/ansi-styles/package.json b/node_modules/postcss-unopacity/node_modules/ansi-styles/package.json new file mode 100644 index 00000000..78c535f7 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-styles/package.json @@ -0,0 +1,50 @@ +{ + "name": "ansi-styles", + "version": "2.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Appelman (jbnicolai.com)" + ], + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "mocha" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "devDependencies": { + "mocha": "*" + } +} diff --git a/node_modules/postcss-unopacity/node_modules/ansi-styles/readme.md b/node_modules/postcss-unopacity/node_modules/ansi-styles/readme.md new file mode 100644 index 00000000..3f933f61 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/ansi-styles/readme.md @@ -0,0 +1,86 @@ +# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) + +> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal + +You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. + +![](screenshot.png) + + +## Install + +``` +$ npm install --save ansi-styles +``` + + +## Usage + +```js +var ansi = require('ansi-styles'); + +console.log(ansi.green.open + 'Hello world!' + ansi.green.close); +``` + + +## API + +Each style has an `open` and `close` property. + + +## Styles + +### Modifiers + +- `reset` +- `bold` +- `dim` +- `italic` *(not widely supported)* +- `underline` +- `inverse` +- `hidden` +- `strikethrough` *(not widely supported)* + +### Colors + +- `black` +- `red` +- `green` +- `yellow` +- `blue` +- `magenta` +- `cyan` +- `white` +- `gray` + +### Background colors + +- `bgBlack` +- `bgRed` +- `bgGreen` +- `bgYellow` +- `bgBlue` +- `bgMagenta` +- `bgCyan` +- `bgWhite` + + +## Advanced usage + +By default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. + +- `ansi.modifiers` +- `ansi.colors` +- `ansi.bgColors` + + +###### Example + +```js +console.log(ansi.colors.green.open); +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/postcss-unopacity/node_modules/chalk/index.js b/node_modules/postcss-unopacity/node_modules/chalk/index.js new file mode 100644 index 00000000..2d85a917 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/index.js @@ -0,0 +1,116 @@ +'use strict'; +var escapeStringRegexp = require('escape-string-regexp'); +var ansiStyles = require('ansi-styles'); +var stripAnsi = require('strip-ansi'); +var hasAnsi = require('has-ansi'); +var supportsColor = require('supports-color'); +var defineProps = Object.defineProperties; +var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM); + +function Chalk(options) { + // detect mode if not set manually + this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled; +} + +// use bright blue on Windows as the normal blue color is illegible +if (isSimpleWindowsTerm) { + ansiStyles.blue.open = '\u001b[94m'; +} + +var styles = (function () { + var ret = {}; + + Object.keys(ansiStyles).forEach(function (key) { + ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); + + ret[key] = { + get: function () { + return build.call(this, this._styles.concat(key)); + } + }; + }); + + return ret; +})(); + +var proto = defineProps(function chalk() {}, styles); + +function build(_styles) { + var builder = function () { + return applyStyle.apply(builder, arguments); + }; + + builder._styles = _styles; + builder.enabled = this.enabled; + // __proto__ is used because we must return a function, but there is + // no way to create a function with a different prototype. + /* eslint-disable no-proto */ + builder.__proto__ = proto; + + return builder; +} + +function applyStyle() { + // support varags, but simply cast to string in case there's only one arg + var args = arguments; + var argsLen = args.length; + var str = argsLen !== 0 && String(arguments[0]); + + if (argsLen > 1) { + // don't slice `arguments`, it prevents v8 optimizations + for (var a = 1; a < argsLen; a++) { + str += ' ' + args[a]; + } + } + + if (!this.enabled || !str) { + return str; + } + + var nestedStyles = this._styles; + var i = nestedStyles.length; + + // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, + // see https://github.com/chalk/chalk/issues/58 + // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. + var originalDim = ansiStyles.dim.open; + if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) { + ansiStyles.dim.open = ''; + } + + while (i--) { + var code = ansiStyles[nestedStyles[i]]; + + // Replace any instances already present with a re-opening code + // otherwise only the part of the string until said closing code + // will be colored, and the rest will simply be 'plain'. + str = code.open + str.replace(code.closeRe, code.open) + code.close; + } + + // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. + ansiStyles.dim.open = originalDim; + + return str; +} + +function init() { + var ret = {}; + + Object.keys(styles).forEach(function (name) { + ret[name] = { + get: function () { + return build.call(this, [name]); + } + }; + }); + + return ret; +} + +defineProps(Chalk.prototype, init()); + +module.exports = new Chalk(); +module.exports.styles = ansiStyles; +module.exports.hasColor = hasAnsi; +module.exports.stripColor = stripAnsi; +module.exports.supportsColor = supportsColor; diff --git a/node_modules/postcss-unopacity/node_modules/chalk/license b/node_modules/postcss-unopacity/node_modules/chalk/license new file mode 100644 index 00000000..654d0bfe --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/index.js b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/index.js new file mode 100644 index 00000000..4346e272 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/index.js @@ -0,0 +1,50 @@ +'use strict'; +var argv = process.argv; + +var terminator = argv.indexOf('--'); +var hasFlag = function (flag) { + flag = '--' + flag; + var pos = argv.indexOf(flag); + return pos !== -1 && (terminator !== -1 ? pos < terminator : true); +}; + +module.exports = (function () { + if ('FORCE_COLOR' in process.env) { + return true; + } + + if (hasFlag('no-color') || + hasFlag('no-colors') || + hasFlag('color=false')) { + return false; + } + + if (hasFlag('color') || + hasFlag('colors') || + hasFlag('color=true') || + hasFlag('color=always')) { + return true; + } + + if (process.stdout && !process.stdout.isTTY) { + return false; + } + + if (process.platform === 'win32') { + return true; + } + + if ('COLORTERM' in process.env) { + return true; + } + + if (process.env.TERM === 'dumb') { + return false; + } + + if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { + return true; + } + + return false; +})(); diff --git a/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/license b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/license new file mode 100644 index 00000000..654d0bfe --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/package.json b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/package.json new file mode 100644 index 00000000..3bb77ac1 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/package.json @@ -0,0 +1,49 @@ +{ + "name": "supports-color", + "version": "2.0.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Appelman (jbnicolai.com)" + ], + "engines": { + "node": ">=0.8.0" + }, + "scripts": { + "test": "mocha" + }, + "files": [ + "index.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect" + ], + "devDependencies": { + "mocha": "*", + "require-uncached": "^1.0.2" + } +} diff --git a/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/readme.md b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/readme.md new file mode 100644 index 00000000..b4761f1e --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/node_modules/supports-color/readme.md @@ -0,0 +1,36 @@ +# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) + +> Detect whether a terminal supports color + + +## Install + +``` +$ npm install --save supports-color +``` + + +## Usage + +```js +var supportsColor = require('supports-color'); + +if (supportsColor) { + console.log('Terminal supports color'); +} +``` + +It obeys the `--color` and `--no-color` CLI flags. + +For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`. + + +## Related + +- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module +- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/postcss-unopacity/node_modules/chalk/package.json b/node_modules/postcss-unopacity/node_modules/chalk/package.json new file mode 100644 index 00000000..2b5881e9 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/package.json @@ -0,0 +1,70 @@ +{ + "name": "chalk", + "version": "1.1.3", + "description": "Terminal string styling done right. Much color.", + "license": "MIT", + "repository": "chalk/chalk", + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Appelman (jbnicolai.com)", + "JD Ballard (github.com/qix-)" + ], + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "xo && mocha", + "bench": "matcha benchmark.js", + "coverage": "nyc npm test && nyc report", + "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "index.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "devDependencies": { + "coveralls": "^2.11.2", + "matcha": "^0.6.0", + "mocha": "*", + "nyc": "^3.0.0", + "require-uncached": "^1.0.2", + "resolve-from": "^1.0.0", + "semver": "^4.3.3", + "xo": "*" + }, + "xo": { + "envs": [ + "node", + "mocha" + ] + } +} diff --git a/node_modules/postcss-unopacity/node_modules/chalk/readme.md b/node_modules/postcss-unopacity/node_modules/chalk/readme.md new file mode 100644 index 00000000..5cf111e3 --- /dev/null +++ b/node_modules/postcss-unopacity/node_modules/chalk/readme.md @@ -0,0 +1,213 @@ +

+
+
+ chalk +
+
+
+

+ +> Terminal string styling done right + +[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) +[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master) +[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) + + +[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough. + +**Chalk is a clean and focused alternative.** + +![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png) + + +## Why + +- Highly performant +- Doesn't extend `String.prototype` +- Expressive API +- Ability to nest styles +- Clean and focused +- Auto-detects color support +- Actively maintained +- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015 + + +## Install + +``` +$ npm install --save chalk +``` + + +## Usage + +Chalk comes with an easy to use composable API where you just chain and nest the styles you want. + +```js +var chalk = require('chalk'); + +// style a string +chalk.blue('Hello world!'); + +// combine styled and normal strings +chalk.blue('Hello') + 'World' + chalk.red('!'); + +// compose multiple styles using the chainable API +chalk.blue.bgRed.bold('Hello world!'); + +// pass in multiple arguments +chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'); + +// nest styles +chalk.red('Hello', chalk.underline.bgBlue('world') + '!'); + +// nest styles of the same type even (color, underline, background) +chalk.green( + 'I am a green line ' + + chalk.blue.underline.bold('with a blue substring') + + ' that becomes green again!' +); +``` + +Easily define your own themes. + +```js +var chalk = require('chalk'); +var error = chalk.bold.red; +console.log(error('Error!')); +``` + +Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data). + +```js +var name = 'Sindre'; +console.log(chalk.green('Hello %s'), name); +//=> Hello Sindre +``` + + +## API + +### chalk.`