Closed Chris-May closed 8 years ago
We should be able to use em
on the body
element.
So, the $body-font-size
and $body-line-height
variables are not just used on the body element. They're used to maintain a standard size we can use directly or multiplied/divided in some way. I use $body-line-height
to set vertical margins and padding and even heights of some items as well. This is my ongoing effort to maintain some kind of vertical rhythm.
By keeping the variable in rems, we can change font sizes globally and maintain the relative sizes of everything without worrying about em cascade.
I think a REM polyfill wrapped in an IE conditional is what's called-for here.
From
starterfiles/htdocs/assets/scss/global-partials/_typography.scss:4
: Usingrem-calc()
to define defaultfont
makes this un-usable for IE9.Maybe(?) we should have a fallback commented out for when we need to support IE9?
OR
Is a
rem
needed at this point, since it's applying to<body>
... possibly since I think font is being inherited through the cascade?