shizuko-akamoto / Trecipe

CPSC 436I Project (2020S)
1 stars 3 forks source link

Scale the fontsize at root html element #45

Closed knox153 closed 4 years ago

knox153 commented 4 years ago

The font size css property at the root element will be scaled using a percentage (1rem = 10px). The advantage of this approach is that it will still respect the user's browser default font setting and we no longer need to use a calculator to convert px into rem.

knox153 commented 4 years ago

After doing a bit more research, it seems like this practice is less useful now with the existence of css pre-processor. This would also make design pattern like 8pt grid more difficult to use.

:x: Closing this issue as the downside seems to outweigh the benefits.