From 5b4832df1578924399c5148b12f20bb14f33968c Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 12 Jul 2022 23:24:38 -0700 Subject: [PATCH] Disable text inflation I respect whatever you're into, but that doesn't mean it belongs on my site. Disable the text inflation algorithm. Don't make landscape fonts comically large. --- assets/css/main.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/css/main.css b/assets/css/main.css index c5338e7..1e72a3e 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -33,6 +33,11 @@ html { /* Nearly every page on my site is taller than the viewport. * Paint the scrollbar ASAP to prevent layout shifts. */ overflow-y: scroll; + + /* Site is already mobile optimized. + * Don't screw up landscape mode. */ + -webkit-text-size-adjust: none; + text-size-adjust: none; } /* This should not take effect on printouts, to save paper. */