Sha256: 9dbcbe4accc113750f28be0a830c6ec34180dfcc1b5062dcef43102372069a8a

Contents?: true

Size: 1.04 KB

Versions: 26

Compression:

Stored size: 1.04 KB

Contents

# [postcss][postcss]-minify-gradients

> Minify gradient parameters with PostCSS.

## Install

With [npm](https://npmjs.org/package/postcss-minify-gradients) do:

```
npm install postcss-minify-gradients
```


## Example

Where possible, this module will minify gradient parameters. It can convert
linear gradient directional syntax to angles, remove the unnecessary `0%` and
`100%` start and end values, and minimise color stops that use the same length
values (the browser will adjust the value automatically).

### Input

```css
h1 {
    background: linear-gradient(to bottom, #ffe500 0%, #ffe500 50%, #121 50%, #121 100%)
}
```

### Output

```css
h1 {
    background: linear-gradient(180deg, #ffe500, #ffe500 50%, #121 0, #121)
}
```


## Usage

See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
examples for your environment.


## Contributors

See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).


## License

MIT © [Ben Briggs](http://beneb.info)

[postcss]: https://github.com/postcss/postcss

Version data entries

26 entries across 25 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.18.0 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.18.2 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.16.1 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.15.2 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.18.4 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.18.1 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.14.0 test/dummy/node_modules/postcss-minify-gradients/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/postcss-minify-gradients/README.md
tang-0.2.1 spec/tang_app/node_modules/postcss-minify-gradients/README.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/postcss-minify-gradients/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/postcss-minify-gradients/README.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/postcss-minify-gradients/README.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/postcss-minify-gradients/README.md
tang-0.2.0 spec/tang_app/node_modules/postcss-minify-gradients/README.md
tang-0.1.0 spec/tang_app/node_modules/postcss-minify-gradients/README.md
tang-0.0.9 spec/tang_app/node_modules/postcss-minify-gradients/README.md
enju_library-0.3.8 spec/dummy/node_modules/postcss-minify-gradients/README.md
jester-data-8.0.0 node_modules/postcss-minify-gradients/README.md