From ca983313ea54f1983e1b6ca85d208a34412381bc Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 5 Jan 2026 11:56:57 +0100 Subject: Add favicon, and improve font handling --- static/css/style.css | 21 +++++++++++++++++++-- static/img/favicon.png | Bin 0 -> 129 bytes 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 static/img/favicon.png (limited to 'static') diff --git a/static/css/style.css b/static/css/style.css index 6b95e9c..7bbb584 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -34,6 +34,23 @@ font-display: swap; } +/* Fallback Fonts */ +@font-face { + font-family: 'Fallback Display'; + src: local('Times New Roman'); + font-weight: 400 700; + size-adjust: 95%; +} + +@font-face { + font-family: 'Fallback Body'; + src: local('Times New Roman'); + font-weight: 300; + size-adjust: 119.2%; + ascent-override: 80%; +} + + /* Theme */ :root { --primary-color: #0000f5; @@ -41,8 +58,8 @@ --foreground: #000019; --foreground-emphasis: #191919; --selection-color: #ccc; - --font-display: 'Libre Caslon Condensed', 'Times New Roman', Georgia, serif; - --font-body: 'Libre Caslon', 'Times New Roman', Georgia, serif; + --font-display: 'Libre Caslon Condensed', 'Fallback Display', serif; + --font-body: 'Libre Caslon', 'Fallback Body', serif; --font-windows: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* There's an issue with Helvetica Neue Bold's glyph sizing that wrecks the grid. */ --font-windows-bold: Helvetica, Arial, sans-serif; diff --git a/static/img/favicon.png b/static/img/favicon.png new file mode 100644 index 0000000..c60ff5d Binary files /dev/null and b/static/img/favicon.png differ -- cgit