summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-12-09 16:30:15 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-12-09 16:30:15 +0100
commit951e6f3ae0757241caf58ec51e6c64114d12554b (patch)
tree8ac8297a8aebad926727ef99b794852176d52812 /assets/css
parentd4a348441a24a3b2e0996d4d3264ce5eac61dbb3 (diff)
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.
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/screen.css14
1 files changed, 7 insertions, 7 deletions
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;
}