From 6b505a48a23f77867dd9dc75a542ede6ce4ae955 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 4 Jul 2026 10:53:44 +0530 Subject: Fix html transformation for about + syntax hl changes --- cgit/static/cgit.css | 54 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 15 deletions(-) (limited to 'cgit/static') diff --git a/cgit/static/cgit.css b/cgit/static/cgit.css index a57fa9a..8da6a9e 100644 --- a/cgit/static/cgit.css +++ b/cgit/static/cgit.css @@ -9,9 +9,12 @@ html, body { input[type=search], input[type=text], select { background-color: #111; - color: var(--color-accent); + color: #eee; border: 1px solid #333; } +select { + color: var(--color-accent); +} div#cgit button, div#cgit input[type=submit] { background-color: #111; @@ -978,6 +981,15 @@ div#cgit table.ssdiff td.space div { #cgit a.toclink { color: white !important; } +#cgit .markdown-body h1, +#cgit .markdown-body h2, +#cgit .markdown-body h3, +#cgit .markdown-body h4, +#cgit .markdown-body h5, +#cgit .markdown-body h6 { + /*border-bottom: 1px solid #222;*/ + border: none; +} #cgit .markdown-body pre { background: #111; border: 1px solid #222; @@ -989,20 +1001,40 @@ div#cgit table.ssdiff td.space div { background: #222; border: none; } +#cgit .markdown-body table tr, +#cgit .markdown-body table th, +#cgit .markdown-body table td { + background: transparent; + border: 1px solid #333; +} +#cgit .markdown-body table img { + display: block; + margin: 0 auto; +} -#cgit .markdown-body pre code > span { +#cgit .highlight pre span { background: transparent !important; } +#cgit .markdown-body hr { + background: none; + border-top: 1px solid #222; + height: 1rem; + margin: 1rem 1rem 0; +} /* BuiltIn */ -#cgit .highlight span.cp { +#cgit .highlight span[class^=c] { color: #006060; font-weight: bold; } -#cgit .highlight span.k, #cgit .highlight span.kr { +#cgit .highlight span[class^=k] { color: #006060; font-weight: bold; } +#cgit .highlight span[class^=b] { + color: #bbeeee; + font-weight: bold; +} /* Err */ #cgit .highlight span.err { @@ -1010,23 +1042,15 @@ div#cgit table.ssdiff td.space div { } /* Variables */ -#cgit .highlight span.n { - color: #eee; -} - -/* Func */ -#cgit .highlight span.nb { - color: #eee; -} -#cgit .highlight span.nf { +#cgit .highlight span[class^=n] { color: #eee; } /* Literal */ -#cgit .highlight span.mi, #cgit .highlight span.mf { /* Num */ +#cgit .highlight span[class^=m] { /* Num */ color: #607020; } -#cgit .highlight span.s { /* Str */ +#cgit .highlight span[class^=s] { /* Str */ color: #71d2ae; background-color: transparent; } -- cgit v1.3.1