Last updated 3 years ago
Was this helpful?
Merge longhand properties into shorthand with PostCSS.
With do:
npm install postcss-merge-longhand --save
Merge longhand properties into shorthand; works with margin, padding & border. For more examples see the .
margin
padding
border
h1 { margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; }
h1 { margin: 10px 20px; }
See the for examples for your environment.
See .
MIT ©