diff options
Diffstat (limited to 'node_modules/postcss-reduce-initial')
| -rw-r--r-- | node_modules/postcss-reduce-initial/CHANGELOG.md | 7 | ||||
| -rw-r--r-- | node_modules/postcss-reduce-initial/LICENSE-MIT | 22 | ||||
| -rw-r--r-- | node_modules/postcss-reduce-initial/README.md | 75 | ||||
| -rw-r--r-- | node_modules/postcss-reduce-initial/data/values.json | 252 | ||||
| -rw-r--r-- | node_modules/postcss-reduce-initial/dist/index.js | 25 | ||||
| -rw-r--r-- | node_modules/postcss-reduce-initial/package.json | 61 |
6 files changed, 442 insertions, 0 deletions
diff --git a/node_modules/postcss-reduce-initial/CHANGELOG.md b/node_modules/postcss-reduce-initial/CHANGELOG.md new file mode 100644 index 00000000..b7f2e2d3 --- /dev/null +++ b/node_modules/postcss-reduce-initial/CHANGELOG.md @@ -0,0 +1,7 @@ +# 1.0.1 + +* Update the initial value of `user-select` from `none` to `auto`. + +# 1.0.0 + +* Initial release. diff --git a/node_modules/postcss-reduce-initial/LICENSE-MIT b/node_modules/postcss-reduce-initial/LICENSE-MIT new file mode 100644 index 00000000..fd0e863a --- /dev/null +++ b/node_modules/postcss-reduce-initial/LICENSE-MIT @@ -0,0 +1,22 @@ +Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info) + +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-reduce-initial/README.md b/node_modules/postcss-reduce-initial/README.md new file mode 100644 index 00000000..8597fb9c --- /dev/null +++ b/node_modules/postcss-reduce-initial/README.md @@ -0,0 +1,75 @@ +# [postcss][postcss]-reduce-initial [][ci] [][npm] [][deps] + +> Reduce `initial` definitions to the *actual* initial value, where possible. + + +## Install + +With [npm](https://npmjs.org/package/postcss-reduce-initial) do: + +``` +npm install postcss-reduce-initial --save +``` + + +## Example + +This module will replace the `initial` CSS keyword with the *actual* value, +when this value is smaller than the `initial` definition itself. For example, +the initial value for the `min-width` property is `0`; therefore, these two +definitions are equivalent; + +### Input + +```css +h1 { + min-width: initial; +} +``` + +### Output + +```css +h1 { + min-width: 0; +} +``` + +See the [data](data/values.json) for more conversions. This data is courtesy +of Mozilla. + + +## Usage + +See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for +examples for your environment. + + +## Contributors + +Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): + +<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> +| [<img src="https://avatars.githubusercontent.com/u/1282980?v=3" width="100px;"/><br /><sub>Ben Briggs</sub>](http://beneb.info)<br />[💻](https://github.com/ben-eb/postcss-reduce-initial/commits?author=ben-eb) [📖](https://github.com/ben-eb/postcss-reduce-initial/commits?author=ben-eb) 👀 [⚠️](https://github.com/ben-eb/postcss-reduce-initial/commits?author=ben-eb) | [<img src="https://avatars.githubusercontent.com/u/551712?v=3" width="100px;"/><br /><sub>Chris Walker</sub>](http://thechriswalker.github.com/)<br />[🐛](https://github.com/ben-eb/postcss-reduce-initial/issues?q=author%3Athechriswalker) [💻](https://github.com/ben-eb/postcss-reduce-initial/commits?author=thechriswalker) | +| :---: | :---: | +<!-- ALL-CONTRIBUTORS-LIST:END --> + +This project follows the [all-contributors] specification. Contributions of +any kind welcome! + + +## License + +[Template:CSSData] by Mozilla Contributors is licensed under [CC-BY-SA 2.5]. + +[Template:CSSData]: https://developer.mozilla.org/en-US/docs/Template:CSSData +[CC-BY-SA 2.5]: http://creativecommons.org/licenses/by-sa/2.5/ + +MIT © [Ben Briggs](http://beneb.info) + + +[all-contributors]: https://github.com/kentcdodds/all-contributors +[ci]: https://travis-ci.org/ben-eb/postcss-reduce-initial +[deps]: https://gemnasium.com/ben-eb/postcss-reduce-initial +[npm]: http://badge.fury.io/js/postcss-reduce-initial +[postcss]: https://github.com/postcss/postcss diff --git a/node_modules/postcss-reduce-initial/data/values.json b/node_modules/postcss-reduce-initial/data/values.json new file mode 100644 index 00000000..4aab7752 --- /dev/null +++ b/node_modules/postcss-reduce-initial/data/values.json @@ -0,0 +1,252 @@ +{ + "-ms-overflow-style": "auto", + "-moz-binding": "none", + "-moz-border-bottom-colors": "none", + "-moz-border-left-colors": "none", + "-moz-border-right-colors": "none", + "-moz-border-top-colors": "none", + "-moz-force-broken-image-icon": "0", + "-moz-image-region": "auto", + "-moz-orient": "inline", + "-moz-outline-radius-bottomleft": "0", + "-moz-outline-radius-bottomright": "0", + "-moz-outline-radius-topleft": "0", + "-moz-outline-radius-topright": "0", + "-moz-text-blink": "none", + "-moz-user-focus": "none", + "-moz-user-input": "none", + "-webkit-border-before-style": "none", + "-webkit-border-before-width": "medium", + "-webkit-box-reflect": "none", + "-webkit-mask-attachment": "scroll", + "-webkit-mask-clip": "border", + "-webkit-mask-image": "none", + "-webkit-mask-position": "0% 0%", + "-webkit-mask-position-x": "0%", + "-webkit-mask-position-y": "0%", + "-webkit-mask-repeat": "repeat", + "-webkit-mask-repeat-x": "repeat", + "-webkit-mask-repeat-y": "repeat", + "-webkit-tap-highlight-color": "black", + "-webkit-text-stroke-width": "0", + "align-self": "auto", + "animation-delay": "0s", + "animation-direction": "normal", + "animation-duration": "0s", + "animation-fill-mode": "none", + "animation-iteration-count": "1", + "animation-name": "none", + "animation-timing-function": "ease", + "azimuth": "center", + "backdrop-filter": "none", + "background-attachment": "scroll", + "background-blend-mode": "normal", + "background-image": "none", + "background-position": "0% 0%", + "background-position-x": "left", + "background-position-y": "top", + "background-repeat": "repeat", + "block-size": "auto", + "border-block-end-style": "none", + "border-block-end-width": "medium", + "border-block-start-style": "none", + "border-block-start-width": "medium", + "border-bottom-left-radius": "0", + "border-bottom-right-radius": "0", + "border-bottom-style": "none", + "border-bottom-width": "medium", + "border-image-outset": "0s", + "border-image-slice": "100%", + "border-image-source": "none", + "border-image-width": "1", + "border-inline-end-style": "none", + "border-inline-end-width": "medium", + "border-inline-start-style": "none", + "border-inline-start-width": "medium", + "border-left-style": "none", + "border-left-width": "medium", + "border-right-style": "none", + "border-right-width": "medium", + "border-spacing": "0", + "border-top-left-radius": "0", + "border-top-right-radius": "0", + "border-top-style": "none", + "border-top-width": "medium", + "bottom": "auto", + "box-decoration-break": "slice", + "box-direction": "normal", + "box-flex": "0", + "box-flex-group": "1", + "box-lines": "single", + "box-ordinal-group": "1", + "box-pack": "start", + "box-shadow": "none", + "box-suppress": "show", + "break-after": "auto", + "break-before": "auto", + "break-inside": "auto", + "caption-side": "top", + "clear": "none", + "clip": "auto", + "clip-path": "none", + "column-count": "auto", + "column-gap": "normal", + "column-rule-style": "none", + "column-rule-width": "medium", + "column-span": "none", + "column-width": "auto", + "content": "normal", + "counter-increment": "none", + "counter-reset": "none", + "cursor": "auto", + "direction": "ltr", + "display-inside": "auto", + "display-list": "none", + "empty-cells": "show", + "filter": "none", + "flex-basis": "auto", + "flex-direction": "row", + "flex-grow": "0", + "flex-shrink": "1", + "flex-wrap": "nowrap", + "float": "none", + "font-feature-settings": "normal", + "font-kerning": "auto", + "font-language-override": "normal", + "font-size": "medium", + "font-size-adjust": "none", + "font-stretch": "normal", + "font-style": "normal", + "font-variant": "normal", + "font-variant-alternates": "normal", + "font-variant-caps": "normal", + "font-variant-east-asian": "normal", + "font-variant-ligatures": "normal", + "font-variant-numeric": "normal", + "font-variant-position": "normal", + "font-weight": "normal", + "grid-auto-columns": "auto", + "grid-auto-flow": "row", + "grid-auto-rows": "auto", + "grid-column-end": "auto", + "grid-column-gap": "0", + "grid-column-start": "auto", + "grid-row-end": "auto", + "grid-row-gap": "0", + "grid-row-start": "auto", + "grid-template-areas": "none", + "grid-template-columns": "none", + "grid-template-rows": "none", + "height": "auto", + "hyphens": "manual", + "image-orientation": "0deg", + "image-rendering": "auto", + "image-resolution": "1dppx", + "ime-mode": "auto", + "initial-letter": "normal", + "initial-letter-align": "auto", + "inline-size": "auto", + "isolation": "auto", + "left": "auto", + "letter-spacing": "normal", + "line-break": "auto", + "line-height": "normal", + "list-style-image": "none", + "list-style-type": "disc", + "margin-block-end": "0", + "margin-block-start": "0", + "margin-bottom": "0", + "margin-inline-end": "0", + "margin-inline-start": "0", + "margin-left": "0", + "margin-right": "0", + "margin-top": "0", + "marker-offset": "auto", + "mask-composite": "add", + "mask-image": "none", + "mask-position": "center", + "mask-size": "auto", + "max-block-size": "0", + "max-height": "none", + "max-inline-size": "0", + "max-width": "none", + "min-block-size": "0", + "min-height": "0", + "min-inline-size": "0", + "min-width": "0", + "mix-blend-mode": "normal", + "motion-offset": "0", + "motion-path": "none", + "motion-rotation": "auto", + "object-fit": "fill", + "offset-block-end": "auto", + "offset-block-start": "auto", + "offset-inline-end": "auto", + "offset-inline-start": "auto", + "opacity": "1.0", + "order": "0", + "orphans": "2", + "outline-offset": "0", + "outline-style": "none", + "outline-width": "medium", + "overflow-wrap": "normal", + "padding-block-end": "0", + "padding-block-start": "0", + "padding-bottom": "0", + "padding-inline-end": "0", + "padding-inline-start": "0", + "padding-left": "0", + "padding-right": "0", + "padding-top": "0", + "page-break-after": "auto", + "page-break-before": "auto", + "page-break-inside": "auto", + "perspective": "none", + "pointer-events": "auto", + "position": "static", + "resize": "none", + "right": "auto", + "ruby-position": "over", + "scroll-behavior": "auto", + "scroll-snap-coordinate": "none", + "scroll-snap-points-x": "none", + "scroll-snap-points-y": "none", + "scroll-snap-type": "none", + "scroll-snap-type-x": "none", + "scroll-snap-type-y": "none", + "shape-image-threshold": "0.0", + "shape-margin": "0", + "shape-outside": "none", + "tab-size": "8", + "table-layout": "auto", + "text-align-last": "auto", + "text-combine-upright": "none", + "text-decoration-line": "none", + "text-decoration-style": "solid", + "text-emphasis-style": "none", + "text-indent": "0", + "text-orientation": "mixed", + "text-overflow": "clip", + "text-rendering": "auto", + "text-shadow": "none", + "text-transform": "none", + "text-underline-position": "auto", + "top": "auto", + "touch-action": "auto", + "transform": "none", + "transform-style": "flat", + "transition-delay": "0s", + "transition-duration": "0s", + "transition-property": "all", + "transition-timing-function": "ease", + "unicode-bidi": "normal", + "user-select": "auto", + "white-space": "normal", + "widows": "2", + "width": "auto", + "will-change": "auto", + "word-break": "normal", + "word-spacing": "normal", + "word-wrap": "normal", + "z-index": "auto" +} diff --git a/node_modules/postcss-reduce-initial/dist/index.js b/node_modules/postcss-reduce-initial/dist/index.js new file mode 100644 index 00000000..f54caeea --- /dev/null +++ b/node_modules/postcss-reduce-initial/dist/index.js @@ -0,0 +1,25 @@ +'use strict'; + +exports.__esModule = true; + +var _postcss = require('postcss'); + +var _values = require('../data/values.json'); + +var _values2 = _interopRequireDefault(_values); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = (0, _postcss.plugin)('postcss-reduce-initial', function () { + return function (css) { + css.walkDecls(function (decl) { + if (decl.value !== 'initial') { + return; + } + if (_values2.default[decl.prop]) { + decl.value = _values2.default[decl.prop]; + } + }); + }; +}); +module.exports = exports['default'];
\ No newline at end of file diff --git a/node_modules/postcss-reduce-initial/package.json b/node_modules/postcss-reduce-initial/package.json new file mode 100644 index 00000000..343ae1be --- /dev/null +++ b/node_modules/postcss-reduce-initial/package.json @@ -0,0 +1,61 @@ +{ + "name": "postcss-reduce-initial", + "version": "1.0.1", + "description": "Reduce initial definitions to the actual initial value, where possible.", + "main": "dist/index.js", + "files": [ + "data", + "dist/index.js", + "LICENSE-MIT" + ], + "scripts": { + "acquire": "node ./dist/acquire.js > ./data/values.json", + "contributorAdd": "all-contributors add", + "contributorGenerate": "all-contributors generate", + "pretest": "eslint src", + "prepublish": "del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/", + "test": "ava", + "test-012": "ava" + }, + "keywords": [ + "css", + "postcss", + "postcss-plugin" + ], + "license": "MIT", + "devDependencies": { + "all-contributors-cli": "^3.0.5", + "ava": "^0.17.0", + "babel-cli": "^6.3.17", + "babel-core": "^6.3.26", + "babel-plugin-add-module-exports": "^0.2.1", + "babel-preset-es2015": "^6.3.13", + "babel-preset-es2015-loose": "^7.0.0", + "babel-preset-stage-0": "^6.3.13", + "babel-register": "^6.9.0", + "del-cli": "^0.2.0", + "eslint": "^3.0.0", + "eslint-config-cssnano": "^3.0.0", + "eslint-plugin-babel": "^3.3.0", + "eslint-plugin-import": "^2.0.1", + "got": "^6.3.0", + "html2plaintext": "^1.0.1", + "is-html": "^1.0.0" + }, + "homepage": "https://github.com/ben-eb/postcss-reduce-initial", + "author": { + "name": "Ben Briggs", + "email": "beneb.info@gmail.com", + "url": "http://beneb.info" + }, + "repository": "ben-eb/postcss-reduce-initial", + "dependencies": { + "postcss": "^5.0.4" + }, + "ava": { + "require": "babel-register" + }, + "eslintConfig": { + "extends": "cssnano" + } +} |
