diff options
author | Jeff Smith | 2017-10-28 21:43:26 -0500 |
---|---|---|
committer | Jason A. Donenfeld | 2018-01-19 11:40:58 +0100 |
commit | dbaee2672be14374acb17266477c19294c6155f3 (patch) | |
tree | b9824a153190bab7f0b6e48b922b1b3934666d96 /cgit.css | |
parent | aafc42d8089437db5105feb12d540c33fe9f9e16 (diff) | |
download | cgit-dbaee2672be14374acb17266477c19294c6155f3.tar.gz cgit-dbaee2672be14374acb17266477c19294c6155f3.tar.bz2 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.css | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -353,6 +353,16 @@ div#cgit table.blame div.alt:nth-child(odd) { | |||
353 | background: white; | 353 | background: white; |
354 | } | 354 | } |
355 | 355 | ||
356 | div#cgit table.blame td.lines > div { | ||
357 | position: relative; | ||
358 | } | ||
359 | |||
360 | div#cgit table.blame td.lines > div > pre { | ||
361 | padding: 0 0 0 0.5em; | ||
362 | position: absolute; | ||
363 | top: 0; | ||
364 | } | ||
365 | |||
356 | div#cgit table.bin-blob { | 366 | div#cgit table.bin-blob { |
357 | margin-top: 0.5em; | 367 | margin-top: 0.5em; |
358 | border: solid 1px black; | 368 | border: solid 1px black; |