source: trip-planner-front/node_modules/postcss-reduce-initial/README.md@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[6a3a178]1# [postcss][postcss]-reduce-initial
2
3> Reduce `initial` definitions to the _actual_ initial value, where possible.
4
5## Install
6
7With [npm](https://npmjs.org/package/postcss-reduce-initial) do:
8
9```
10npm install postcss-reduce-initial --save
11```
12
13## Examples
14
15See the [data](data) for more conversions. This data is courtesy
16of Mozilla.
17
18### Convert `initial` values
19
20When the `initial` keyword is longer than the property value, it will
21be converted:
22
23#### Input
24
25```css
26h1 {
27 min-width: initial;
28}
29```
30
31#### Output
32
33```css
34h1 {
35 min-width: 0;
36}
37```
38
39### Convert values back to `initial`
40
41When the `initial` value is smaller than the property value, it will
42be converted:
43
44#### Input
45
46```css
47h1 {
48 transform-box: border-box;
49}
50```
51
52#### Output
53
54```css
55h1 {
56 transform-box: initial;
57}
58```
59
60This conversion is only applied when you supply a browsers list that all support
61the `initial` keyword; it's worth noting that Internet Explorer has no support.
62
63## API
64
65### reduceInitial([options])
66
67#### options
68
69##### ignore
70
71Type: `Array<String>`
72Default: `undefined`
73
74It contains the Array of properties that will be ignored while reducing its value to initial.
75Example : `{ ignore : ["min-height"] }`
76
77## Usage
78
79See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
80examples for your environment.
81
82## Contributors
83
84See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
85
86## License
87
88[Template:CSSData] by Mozilla Contributors is licensed under [CC-BY-SA 2.5].
89
90[template:cssdata]: https://developer.mozilla.org/en-US/docs/Template:CSSData
91[cc-by-sa 2.5]: http://creativecommons.org/licenses/by-sa/2.5/
92
93MIT © [Ben Briggs](http://beneb.info)
94
95[postcss]: https://github.com/postcss/postcss
Note: See TracBrowser for help on using the repository browser.