commit 5207e98c16c5ba44be1586a000dbb36eb990f5b8
parent 747589f8bbdaa079a72db5611af69f2c59eb2fb8
Author: gracefu <81774659+gracefuu@users.noreply.github.com>
Date: Sat, 12 Apr 2025 17:03:09 +0800
Make front page not re-wrap on font load
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/templates/base.shtml b/layouts/templates/base.shtml
@@ -57,8 +57,8 @@ h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
<style>
/* Font loading magic to avoid Flash of Invisible Text */
-html { font-size: var(--rem); font-family: Arial, Helvetica, sans-serif; }
-html.font-loaded { font-family: 'Atkinson Hyperlegible Next', Arial, Helvetica, sans-serif; }
+html { font-size: var(--rem); font-family: Arial, Helvetica, sans-serif; font-size-adjust: 0.52; }
+html.font-loaded { font-family: 'Atkinson Hyperlegible Next', Arial, Helvetica, sans-serif; font-size-adjust: none; }
</style>
<style>