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.
Showing the changes to cgit.css (1 of 3 files). Show all
Unified · Split
| @@ -353,6 +353,16 @@ div#cgit table.blame div.alt:nth-child(odd) { · 352 unmodified lines | ||
| 353 | 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 | 366 | div#cgit table.bin-blob { |
| 357 | 367 | margin-top: 0.5em; |
| 358 | 368 | border: solid 1px black; |