From 9e0ac2d2933beed15b2dc6a62ba08d06b610d905 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 1 Nov 2026 21:30:10 -1000 Subject: Mark changed lines in forced colours Forced colours drop the side-by-side diff's backgrounds, so an added, deleted or changed line looked like context. A thicker left border on each side that holds the line marks it, and its column still tells old from new. --- assets/cgit.css | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'assets') diff --git a/assets/cgit.css b/assets/cgit.css index 57658c8..fed60f5 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -1432,6 +1432,12 @@ div#cgit form.login input[type="password"] { outline: solid 2px Highlight; outline-offset: -2px; } + + div#cgit table.ssdiff td.add, + div#cgit table.ssdiff td.del, + div#cgit table.ssdiff td.changed { + border-left-width: 4px; + } } @media (prefers-color-scheme: dark) { -- cgit 2.12.1