aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorJeff Smith <whydoubt@gmail.com>2017-10-28 21:43:26 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-01-19 11:40:58 +0100
commitdbaee2672be14374acb17266477c19294c6155f3 (patch)
treeb9824a153190bab7f0b6e48b922b1b3934666d96 /cgit.css
parentui-blame: Make each column into a single table cell (diff)
downloadcgit-dbaee2672be14374acb17266477c19294c6155f3.tar.xz
cgit-dbaee2672be14374acb17266477c19294c6155f3.zip
ui-blame: Allow syntax highlighting
Place file contents into a single block so that syntax highlighting can be applied in the usual fashion. Place the alternating color bars behind the file contents. Force the default syntax highlighting background to transparent. Signed-off-by: Jeff Smith <whydoubt@gmail.com> Reviewed-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 20b7e86..217a05a 100644
--- a/cgit.css
+++ b/cgit.css
@@ -353,6 +353,16 @@ div#cgit table.blame div.alt:nth-child(odd) {
background: white;
}
+div#cgit table.blame td.lines > div {
+ position: relative;
+}
+
+div#cgit table.blame td.lines > div > pre {
+ padding: 0 0 0 0.5em;
+ position: absolute;
+ top: 0;
+}
+
div#cgit table.bin-blob {
margin-top: 0.5em;
border: solid 1px black;