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/README.md | |
| parent | 3fd9400d4dccc25aa29b5702216732e0b7542073 (diff) | |
postcss,(plugins): nanocss, postcss-preset-env
Diffstat (limited to 'node_modules/postcss-replace-overflow-wrap/README.md')
| -rw-r--r-- | node_modules/postcss-replace-overflow-wrap/README.md | 56 |
1 files changed, 56 insertions, 0 deletions
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. |
