Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
882 bytes
|
Line | |
---|
1 | # [postcss][postcss]-merge-longhand
|
---|
2 |
|
---|
3 | > Merge longhand properties into shorthand with PostCSS.
|
---|
4 |
|
---|
5 | ## Install
|
---|
6 |
|
---|
7 | With [npm](https://npmjs.org/package/postcss-merge-longhand) do:
|
---|
8 |
|
---|
9 | ```
|
---|
10 | npm install postcss-merge-longhand --save
|
---|
11 | ```
|
---|
12 |
|
---|
13 | ## Example
|
---|
14 |
|
---|
15 | Merge longhand properties into shorthand; works with `margin`, `padding` &
|
---|
16 | `border`. For more examples see the [tests](src/__tests__/index.js).
|
---|
17 |
|
---|
18 | ### Input
|
---|
19 |
|
---|
20 | ```css
|
---|
21 | h1 {
|
---|
22 | margin-top: 10px;
|
---|
23 | margin-right: 20px;
|
---|
24 | margin-bottom: 10px;
|
---|
25 | margin-left: 20px;
|
---|
26 | }
|
---|
27 | ```
|
---|
28 |
|
---|
29 | ### Output
|
---|
30 |
|
---|
31 | ```css
|
---|
32 | h1 {
|
---|
33 | margin: 10px 20px;
|
---|
34 | }
|
---|
35 | ```
|
---|
36 |
|
---|
37 | ## Usage
|
---|
38 |
|
---|
39 | See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
|
---|
40 | examples for your environment.
|
---|
41 |
|
---|
42 | ## Contributors
|
---|
43 |
|
---|
44 | See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
|
---|
45 |
|
---|
46 | ## License
|
---|
47 |
|
---|
48 | MIT © [Ben Briggs](http://beneb.info)
|
---|
49 |
|
---|
50 | [postcss]: https://github.com/postcss/postcss
|
---|
Note:
See
TracBrowser
for help on using the repository browser.