From 465f429f7f1e12601084f8446fadebc55ab9de6f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 24 Oct 2026 09:17:42 -1000 Subject: Set every monospace element in the theme font Only some pre elements named --font-mono, so code in a readme took the browser's own font, Courier in Chrome and Safari, rather than a theme's. --- assets/cgit.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'assets/cgit.css') diff --git a/assets/cgit.css b/assets/cgit.css index 0149519..540480c 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -127,6 +127,13 @@ div#cgit table { border-collapse: collapse; } +div#cgit code, +div#cgit kbd, +div#cgit pre, +div#cgit samp { + font-family: var(--font-mono); +} + div#cgit select, div#cgit input { font-family: inherit; @@ -448,7 +455,6 @@ div#cgit div#about pre { div#cgit pre.plaintext { white-space: pre-wrap; overflow-wrap: anywhere; - font-family: var(--font-mono); line-height: 1.5; margin: 0; } @@ -642,7 +648,6 @@ div#cgit table.blob td.linenumbers { div#cgit table.blob pre { padding: 0; margin: 0; - font-family: var(--font-mono); } /* @@ -757,7 +762,6 @@ div#cgit table.blame td.lines > div > pre { padding: 0 0 0 0.5em; position: absolute; top: 0; - font-family: var(--font-mono); } div#cgit table.blame .oid { -- cgit 2.9.1