History

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.

Jeff Smith committed 9 years ago

Commit dbaee261 parent aafc42d3 files · +62 −13Browse files

Showing the changes to cgit.css (1 of 3 files). Show all

Unified · Split

cgit.css+10−0
@@ -353,6 +353,16 @@ div#cgit table.blame div.alt:nth-child(odd) { · 352 unmodified lines
353353 background: white;
354354 }
355355
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+
356366 div#cgit table.bin-blob {
357367 margin-top: 0.5em;
358368 border: solid 1px black;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t