mirror of
https://github.com/samsonjs/grid.git
synced 2026-03-25 09:05:51 +00:00
Work around a font size flicker bug Safari
When the font-size is defined on html instead of body, Safari flickers the font size back and forth when resizing around each font-size change. Easy workaround is to change the font-size on body instead.
This commit is contained in:
parent
ae728a9636
commit
db54f0da4d
1 changed files with 2 additions and 2 deletions
4
grid.css
4
grid.css
|
|
@ -15,11 +15,11 @@ html {
|
|||
}
|
||||
|
||||
@media (min-width: 40rem) {
|
||||
html { font-size: 112%; }
|
||||
body { font-size: 112%; }
|
||||
}
|
||||
|
||||
@media (min-width: 64rem) {
|
||||
html { font-size: 120%; }
|
||||
body { font-size: 120%; }
|
||||
}
|
||||
|
||||
body {
|
||||
|
|
|
|||
Loading…
Reference in a new issue