I want my grid to have 24 columns in a row of 1320px. I also want the default font size (body) to be set to 22px. Let me show you how I can do this easily with SASS / SCSS and the Zurb Foundation ... Wait, what?
Not easy. It’s basically not possible to set the “default font size” to a value other than rem-basewithout breaking the grid. If $rem-base: 16pxand $base-font-size: 100%everything works fine - I just want large fonts. If $rem-base: 16pxand $base-font-size: 22pxcalculated grid, it must be set to 1815px instead of 1320px. Of course, since setting the html font size installs the rem module, all other font values are related to rem.
Changing lines 345, 346 to _global.scss (V 5.2.1) and setting them to different vars like this
html { font-size: $rem-base; }
body { font-size: $base-font-size; }
does not affect font size for p, ul, etc.
So the question remains: how do I get a 1320/24 grid with 22x the base size using Foundation5 SCSS?
Greetings
source
share