0.0.8 • Published 6 years ago

postcss-value-spread v0.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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.