Postcss plugin to convert a line-height value with px to a unitless value.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixture
.editorconfig
.eslintrc
.gitignore
.travis.yml
CHANGELOG.md
README.md
gulpfile.js
index.js
package.json
test.js

README.md

postcss-line-height-px-to-unitless

npm version travis dependencies devDependencies License

Postcss plugin to convert a line-height value with px to a unitless value.

// before

a {
  font-size: 16px;
  line-height: 26px;
}



// after

a {
  font-size: 16px;
  line-height: 1.63;
}

Install

$ npm i postcss-line-height-px-to-unitless

Usage

postcss([
    require('postcss-line-height-px-to-unitless')(),
    ...
])

License

MIT