postcss-size

5.0.0 • Public • Published

PostCSS Size

PostCSS plugin for size shortcut to set width and height properties.

It also handles min-size to set min-width and min-height, and max-size to set max-width and max-height.

.two {
  size: 20px 10px;
}
.one {
  size: 10px;
}
.minmax {
  min-size: 10px;
  max-size: 200px auto;
}
.two {
  width: 20px;
  height: 10px;
}
.one {
  width: 10px;
  height: 10px;
}
.minmax {
  min-width: 10px;
  min-height: 10px;
  max-width: 200px;
  max-height: auto;
}
Sponsored by Evil Martians

Docs

Read full docs here.

Package Sidebar

Install

npm i postcss-size

Weekly Downloads

944

Version

5.0.0

License

MIT

Unpacked Size

3.44 kB

Total Files

4

Last publish

Collaborators

  • ai