diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:05:55 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:05:55 +0800 |
| commit | c06f7ee0a40255214c477e13d9b956a7e07c2900 (patch) | |
| tree | f5982a568ef8fab865d0142e71c7494fea3e4c1b /node_modules/postcss-replace-overflow-wrap | |
| parent | 3fd9400d4dccc25aa29b5702216732e0b7542073 (diff) | |
postcss,(plugins): nanocss, postcss-preset-env
Diffstat (limited to 'node_modules/postcss-replace-overflow-wrap')
5 files changed, 161 insertions, 0 deletions
diff --git a/node_modules/postcss-replace-overflow-wrap/CHANGELOG.md b/node_modules/postcss-replace-overflow-wrap/CHANGELOG.md new file mode 100644 index 00000000..e8bd1baf --- /dev/null +++ b/node_modules/postcss-replace-overflow-wrap/CHANGELOG.md @@ -0,0 +1,10 @@ +## 3.0 +* Use PostCSS 7.x +* Bump various dependencies + +## 2.0 +* Use PostCSS 6.x +* Use Node 4.x syntax + +## 1.0 +* Initial release diff --git a/node_modules/postcss-replace-overflow-wrap/LICENSE b/node_modules/postcss-replace-overflow-wrap/LICENSE new file mode 100644 index 00000000..6680d145 --- /dev/null +++ b/node_modules/postcss-replace-overflow-wrap/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT)
+
+Copyright 2016 Matthias Müller <MattDiMu@users.noreply.github.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-replace-overflow-wrap/README.md b/node_modules/postcss-replace-overflow-wrap/README.md new file mode 100644 index 00000000..9c8f5f3d --- /dev/null +++ b/node_modules/postcss-replace-overflow-wrap/README.md @@ -0,0 +1,56 @@ +# PostCSS Replace Overflow Wrap [![CSS Standard Status][css-img]][css] [![Build Status][ci-img]][ci] + +[PostCSS] plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations. + +[PostCSS]: https://github.com/postcss/postcss +[css-img]: https://jonathantneal.github.io/css-db/badge/css-text-overflow-wrap-property.svg +[css]: https://jonathantneal.github.io/css-db/#css-text-overflow-wrap-property +[ci-img]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap.svg +[ci]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap + + +```css +/* before */ +.foo { + overflow-wrap: break-word; +} + +/* after */ +.foo { + word-wrap: break-word; +} +``` + +```css +/* before, when the option { method: 'copy' } is passed */ +.foo { + overflow-wrap: break-word; +} + +/* after */ +.foo { + word-wrap: break-word; + overflow-wrap: break-word; +} +``` + +### Installation +`npm install --save-dev postcss postcss-replace-overflow-wrap` + +For Postcss 7 or earlier use Version 3 or earlier: + +`npm install --save-dev postcss-replace-overflow-wrap@3` + + +## Usage + +```js +/* default usage, with no options (method = replace) */ +postcss([ require('postcss-replace-overflow-wrap') ]) +``` + +```js +/* add word-wrap, but keep overflow-wrap */ +postcss([ require('postcss-replace-overflow-wrap') ])({ method: 'copy' }) +``` +See [PostCSS] docs for examples for your environment. diff --git a/node_modules/postcss-replace-overflow-wrap/index.js b/node_modules/postcss-replace-overflow-wrap/index.js new file mode 100644 index 00000000..a6610482 --- /dev/null +++ b/node_modules/postcss-replace-overflow-wrap/index.js @@ -0,0 +1,19 @@ +// @ts-check + +module.exports = function (opts) { + opts = opts || {} + var method = opts.method || 'replace' + return { + postcssPlugin: 'postcss-replace-overflow-wrap', + Declaration: { + 'overflow-wrap': decl => { + decl.cloneBefore({ prop: 'word-wrap' }) + if (method === 'replace') { + decl.remove() + } + } + } + } +} + +module.exports.postcss = true diff --git a/node_modules/postcss-replace-overflow-wrap/package.json b/node_modules/postcss-replace-overflow-wrap/package.json new file mode 100644 index 00000000..edeb5950 --- /dev/null +++ b/node_modules/postcss-replace-overflow-wrap/package.json @@ -0,0 +1,56 @@ +{ + "name": "postcss-replace-overflow-wrap", + "version": "4.0.0", + "description": "PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.", + "keywords": [ + "postcss", + "css", + "postcss-plugin", + "overflow-wrap", + "word-wrap" + ], + "author": "Matthias Müller <MattDiMu@users.noreply.github.com>", + "license": "MIT", + "repository": "MattDiMu/postcss-replace-overflow-wrap", + "bugs": { + "url": "https://github.com/MattDiMu/postcss-replace-overflow-wrap/issues" + }, + "homepage": "https://github.com/MattDiMu/postcss-replace-overflow-wrap", + "files": [ + "index.js" + ], + "dependencies": {}, + "devDependencies": { + "ava": "^0.25.0", + "eslint": "^5.3.0", + "eslint-config-logux": "^24.0.0", + "eslint-config-postcss": "^3.0.3", + "eslint-config-standard": "^11.0.0", + "eslint-plugin-es5": "^1.3.1", + "eslint-plugin-import": "^2.13.0", + "eslint-plugin-jest": "^21.20.1", + "eslint-plugin-node": "^7.0.1", + "eslint-plugin-promise": "^3.8.0", + "eslint-plugin-security": "^1.4.0", + "eslint-plugin-standard": "^3.1.0", + "postcss": "^8.0.3" + }, + "peerDependencies": { + "postcss": "^8.0.3" + }, + "scripts": { + "test": "ava && eslint *.js" + }, + "eslintConfig": { + "extends": "eslint-config-postcss/es5", + "rules": { + "max-len": 0, + "es5/no-modules": false, + "indent": [ + "warn", + 4 + ], + "es5/no-arrow-functions": 0 + } + } +} |
