npm.io
0.4.0 • Published 11 years ago

postcss-dpr-px

Licence
MIT
Version
0.4.0
Deps
1
Vulns
6
Weekly
0

postcss-dpr-px Build Status

PostCSS plugin to replace value in px with new value for device pixel ratio.

.foo {
  width: 24px;
}

For device pixel ratio 1.5:

.foo {
  width: 16px;
}

Usage

postcss([ require( "postcss-dpr-px" ) ])

Options

dpr (default: 1)
rounding (default: "round")
permitZero (default: true)

See PostCSS docs for examples for your environment.

Changelog

License

Keywords