PrestaShop/hummingbird

Switch to relative unit

Opened this issue · 0 comments

Hello there !
Is it possible to add a stylelinter rule for privilieging relative units in scss ?

Moreover is it possible to switch existing pixel presence in code to rem, vw, etc?

For stylelinter rule, you can use this one

"unit-allowed-list": [["em", "rem", "%", "s", "ms", "deg", "vh", "vw", "fr", "ch", "cm", "mm", "in", "pt", "pc", "ex", "vmin", "vmax", "grad", "rad", "turn", "dpi", "dpcm", "dppx"], { "severity": "warning" }]

Thanks !