3 ms·
1. Modify the base font-size to 62.5% so that 1.6rem = 16px. That is not a given as it depends on browser settings and it generally doesn't mix well with other
by Tade0 3y ago
1. Modify the base font-size to 62.5% so that 1.6rem = 16px.
That is not a given as it depends on browser settings and it generally doesn't mix well with other CSS that might not make the same assumption.
- louismerlin 3y agoI borrowed this from Milligram[0] because it seemed like a sane thing to do at the time. Would your recommendation be to not anything to the base font-size and adjust the REM sizes accordingly? [0] https://github.com/milligram/milligram/blob/d895f179623b56f3a741854998649c6d0c354533/src/_Base.sass#L11-L15 https://github.com/milligram/milligram/blob/d895f179623b56f3...
- Tade0 3y agoYes. In relation to this since you're using rem for borders and progress bar height, it's all going to scale along with browser-defined font size. You might not want that, as people typically increase this setting to have just the text larger.