diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:58:02 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:58:02 +0800 |
| commit | fee47f6414cc3ae9a88f3ee0ed20f1d6f2d9f556 (patch) | |
| tree | 2b99dd57fc676a3819ef3cc46ac43df0043c2bb3 /node_modules/postcss-alias/README.md | |
| parent | 0379526e20e1ff212df23e6326741aa9c06df204 (diff) | |
added plugin from postcss: postcss-fixes rucksack-css
Diffstat (limited to 'node_modules/postcss-alias/README.md')
| -rw-r--r-- | node_modules/postcss-alias/README.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/node_modules/postcss-alias/README.md b/node_modules/postcss-alias/README.md new file mode 100644 index 00000000..0436953b --- /dev/null +++ b/node_modules/postcss-alias/README.md @@ -0,0 +1,49 @@ +# PostCSS Alias +[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] + +[PostCSS][PostCSS] plugin that lets you create custom aliases for CSS properties with an `@alias` rule. + +Part of [Rucksack - CSS Superpowers](http://simplaio.github.io/rucksack). + +_Input_ +```css +@alias { + fs: font-size; + bg: background; +} + +.aliased { + fs: 16px; + bg: white; +} +``` + +_Output_ +```css +.aliased { + font-size: 16px; + background: white; +} +``` + +> **Note:** Aliases in property values (eg: `transition: bg 200ms`) are not supported + +### Usage + +```js +postcss([ require('postcss-alias') ]) +``` + +See [PostCSS][PostCSS] docs for examples for your environment. + +*** + +MIT © [Sean King](https://twitter.com/seaneking) + +[npm-image]: https://badge.fury.io/js/postcss-alias.svg +[npm-url]: https://npmjs.org/package/postcss-alias +[travis-image]: https://travis-ci.org/seaneking/postcss-alias.svg?branch=master +[travis-url]: https://travis-ci.org/seaneking/postcss-alias +[daviddm-image]: https://david-dm.org/seaneking/postcss-alias.svg?theme=shields.io +[daviddm-url]: https://david-dm.org/seaneking/postcss-alias +[PostCSS]: https://github.com/postcss/postcss |
