From 951e6f3ae0757241caf58ec51e6c64114d12554b Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 9 Dec 2021 16:30:15 +0100 Subject: Use div instead of span for lines. It's not perfect, but using a block element causes things to be rendered much more nicely in a text-only browser. --- assets/css/screen.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'assets') diff --git a/assets/css/screen.css b/assets/css/screen.css index 684bc01..5d8513d 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -353,28 +353,28 @@ details { display: none; } -.message span.line { +.message div.line { white-space: pre-wrap; font-family: monospace; display: block; } /* diff styles */ -.message .diff span.line.diff.file { +.message .diff div.line.diff.file { color: #005cc5; } -.message .diff span.line.diff.separator { +.message .diff div.line.diff.separator { color: #005cc5; } -.message .diff span.line.diff.addition { +.message .diff div.line.diff.addition { color: #22863a; background-color: #f0fff4; } -.message .diff span.line.diff.deletion { +.message .diff div.line.diff.deletion { color: #b31d28; background-color: #ffeef0; } -.message .diff span.line.diff.range { +.message .diff div.line.diff.range { color: #6f42c1; font-weight: bold; } @@ -394,7 +394,7 @@ details { } /* quote styles */ -.message .quote span.line { +.message .quote div.line { color: #3868cc; } -- cgit v1.2.3