From e670985f6d50132531ad3025ada39a1c2c9520dc Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 17 Jan 2021 19:27:59 +0000 Subject: Use
 and  to print diffs

This correctly preserves whitespace in browsers without CSS, as an
alternative to [1].

[1]: https://80x24.org/cgit.git/commit/?id=7c692e6137697de8a8473c4de5c3de4fb03a2989
---
 www/git.causal.agency/cgit/cgit.css | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

(limited to 'www/git.causal.agency/cgit/cgit.css')

diff --git a/www/git.causal.agency/cgit/cgit.css b/www/git.causal.agency/cgit/cgit.css
index dac791b6..36826b07 100644
--- a/www/git.causal.agency/cgit/cgit.css
+++ b/www/git.causal.agency/cgit/cgit.css
@@ -533,26 +533,20 @@ div#cgit table.diff {
 	width: 100%;
 }
 
-div#cgit table.diff td {
-	font-family: monospace;
-	white-space: pre;
-}
-
-div#cgit table.diff td div.head {
+div#cgit table.diff td span.head {
 	font-weight: bold;
-	margin-top: 1em;
 	color: black;
 }
 
-div#cgit table.diff td div.hunk {
+div#cgit table.diff td span.hunk {
 	color: #009;
 }
 
-div#cgit table.diff td div.add {
+div#cgit table.diff td span.add {
 	color: green;
 }
 
-div#cgit table.diff td div.del {
+div#cgit table.diff td span.del {
 	color: red;
 }
 
-- 
cgit 1.4.1

ff/.XCompose?id=b6ee12f2041f84a5f233378c0756ca9c9385a780&follow=1'>diff
Commit message (Expand)Author
2014-06-29Add nrformats settingJune McEnroe
2014-06-28Add multiple cursorsJune McEnroe
2014-06-28Add indent guidesJune McEnroe
2014-06-10Add delimitMateJune McEnroe
2014-05-28Use ~ for home directory in gitconfigJune McEnroe
2014-05-28Add .DS_store to global gitignoreJune McEnroe
2014-05-15Add OS X specific shell configurationsJune McEnroe
2014-04-19Heavily comment .vimrcJune McEnroe
2014-04-19Autocorrect git commandsJune McEnroe
2014-04-19Fix gitprompt for git 1.9.1June McEnroe