diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/stylehacks/README.md | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/stylehacks/README.md')
| -rw-r--r-- | node_modules/stylehacks/README.md | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/node_modules/stylehacks/README.md b/node_modules/stylehacks/README.md deleted file mode 100644 index a4eed7d5..00000000 --- a/node_modules/stylehacks/README.md +++ /dev/null @@ -1,91 +0,0 @@ -# stylehacks - -> Detect/remove browser hacks from CSS files. - - -## Install - -With [npm](https://npmjs.org/package/stylehacks) do: - -``` -npm install stylehacks --save -``` - - -## Example - -In its default mode, stylehacks will remove hacks from your CSS file, based on -the browsers that you wish to support. - -### Input - -```css -h1 { - _color: white; - color: rgba(255, 255, 255, 0.5); -} -``` - -### Output - -```css -h1 { - color: rgba(255, 255, 255, 0.5); -} -``` - - -## API - -### `stylehacks.detect(node)` - -Type: `function` -Returns: `boolean` - -This method will take any PostCSS *node*, run applicable plugins depending on -its type, then will return a boolean depending on whether it found any of -the supported hacks. For example, if the `decl` node found below is passed to -the `detect` function, it will return `true`. But if the `rule` node is passed, -it will return `false` instead. - -```css -h1 { _color: red } -``` - -### `postcss([ stylehacks(opts) ])` - -stylehacks can also be consumed as a PostCSS plugin. See the -[documentation](https://github.com/postcss/postcss#usage) for examples for -your environment. - -#### options - -##### lint - -Type: `boolean` -Default: `false` - -If lint mode is enabled, stylehacks will not remove hacks from the CSS; instead, -it will add warnings to `Result#messages`. - - -## Related - -stylehacks works well with your existing PostCSS setup: - -* [stylelint] - Comprehensive & modern CSS linter, to ensure that your code - style rules are respected. - - -## Contributing - -Pull requests are welcome. If you add functionality, then please add unit tests -to cover it. - - -## License - -MIT © [Ben Briggs](http://beneb.info) - - -[stylelint]: https://github.com/stylelint/stylelint |
