Hi @des2019
All your issues are related to your theme setting the font-size
on the html
element to 62.5%
. I’ve seen this pattern before – it’s so that you can declare font sizes in rems that match a pixel size (E.g. 1.6rem == 16px
).
Unfortunately, the Material Design library by Google uses rem
as a unit in many places. Personally I think it’s a bad decision because it requires that the html font size is either not set, or is set to 16px.
The best way to solve this is to remove the font-size: 62.5%
from the html
element. If you do that, all the custom CSS you’ve added should be able to be removed. However, doing so will also require you to change the font sizes on the rest of your theme. If you’re already using a Sass or Less mixin to generate your font sizes (it kind of looks like you might be), then you should just be able to update the calculations in that mixin. Otherwise, I guess you’d have to go through and recalculate the font size manually.
If that’s not an option for you, let me know and I can spend some time helping you fix the issues with custom CSS.
Thanks,
Angus