1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

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.
This commit is contained in:
Rohan Kumar 2022-07-12 23:24:38 -07:00
parent 1a7cc7156c
commit 5b4832df15
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -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. */