postcss-value-spread

0.0.8 • Public • Published

PostCSS Value Spread Build Status

PostCSS plugin that spread style values.

/* Input example */
.foo {
  border: solid 1px #ccc;
}
.boo {
  border-top: solid 1px #ccc;
}
.poo {
  padding: 2px 3px 4px;
}
.moo {
  margin: 2px 3px;
}
/* Output example */
.foo {
  border-width: 1px;
  border-style: solid;
  border-color: #ccc;
}
.boo {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: #ccc;
}
.poo {
  padding-top: 2px;
  padding-right: 3px;
  padding-bottom: 4px;
  padding-left: 3px;
}
.moo {
  margin-top: 2px;
  margin-right: 3px;
  margin-bottom: 2px;
  margin-left: 3px;
}

Usage

postcss([ require('postcss-value-spread') ])

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i postcss-value-spread

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

5.88 kB

Total Files

5

Last publish

Collaborators

  • jiubao