postcss-mo-emify
v0.0.7
Published
translate px based value to em based value depending on base or context font-size
Downloads
4
Maintainers
Readme
Translate PX's to EM's
Postcss plugin that translates px based values to em.
/* input */
.selector {
font-size: em(14);
height: em(13);
width: em(14, 16);
}
/* input */
/* output */
.selector {
font-size: 1em;
height: 0.92857142857em;
width: 0.875em;
}
Options
base
EM values are calculated relative to this font-size
- default: 14
- type: Number