name | first param * | second param | description |
---|---|---|---|
toEm | number params | the default font-size of this block | convert pixel to em (If the font-size is already set for the block. The second parameter is optional. Not applicable if the font-size in the block is set in ЕМ) (If you did not specify the parameter and the parameter was not found. The font value for root will be taken) |
toRem | number params | default :root or html font-size | convert pixel to rem (unless you specify 2 parameter. The function will try to find it automatically. if the value cannot be found, the default value is 16px) |
toP | px unit | default width layout | convert pixel to % |
toW | px unit | default width layout | convert pixel to vw |
toH | px unit | default width layout | convert pixel to vh |
toM | px unit | default width layout | convert pixel to vmax |
toMi | px unit | default width layout | convert pixel to vmin |
toPx | any number unit | default width layout | convert unit to px |