postcss-rem-to-rem-multiplier
Version:
multiply the rem (root em) units with a multiplier using PostCSS. Based on postcss-rem-to-pixel.
28 lines (26 loc) • 399 B
CSS
:root {
--r2r-multi: calc(10/12)
}
.class {
margin: -10px .5em;
padding: 5rem .5px;
border: 3px solid black;
font-size: 0.875rem;
line-height: 1.25rem;
}
.class2 {
font-size: 32px;
font-size: 2rem;
line-height: 1em;
}
@media (min-width: 750px) {
.class3 {
font-size: 1rem;
line-height: 1.375rem;
}
}
/*
.class {
font-size: 16px;
}
*/