infima icon indicating copy to clipboard operation
infima copied to clipboard

Variables with zero-value should include unit

Open fflaten opened this issue 2 years ago • 1 comments

Zero-valued variables should always include a unit to be compatible with min/max/calc functions. Ex. --ifm-footer-padding-horizontal: 0 set in a default media-query will not work atm. Overriding to 0px fixes it.

fflaten avatar Sep 03 '22 17:09 fflaten

seems correct: no unit seems to make it hard to use in CSS functions.

We could always include a unit for consistency.

Also worth taking a look at the direction of CSS, maybe this will be easier in the future?

For example https://www.bram.us/2022/07/08/the-future-of-css-variable-units-powered-by-custom-properties/

slorber avatar Sep 07 '22 11:09 slorber