From 967c6d1e1aeb89cca1ee623790e4dd35d8e51ed8 Mon Sep 17 00:00:00 2001 From: Screwtapello Date: Sat, 25 Jan 2025 13:55:47 +1100 Subject: Add fallbacks if the custom font doesn't load. If the custom font doesn't load for some reason, the browser will fall back to some random font, possibly a serif font that looks Very Wrong. "system-ui" should choose the system font for the current platform, whatever it is, which is at least *a* system font even if it's not the right one for CS 1.6. For older browsers that don't support "system-ui", fall back to "sans-serif", which should look at least vaguely right. --- css/cs16.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'css/cs16.css') diff --git a/css/cs16.css b/css/cs16.css index c04ea50..bc40c60 100644 --- a/css/cs16.css +++ b/css/cs16.css @@ -64,7 +64,7 @@ body { line-height: 1.5; background-color: var(--bg); color: var(--text); - font-family: ArialPixel; + font-family: ArialPixel, system-ui, sans-serif; } /* Scrollbars */ -- cgit v1.2.3