From ba8691e8fb17690bc9ebc7700ad356e41f0f7878 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:19:00 -0700 Subject: Let the blame table take the blob table's rules Blame is drawn as a table of both classes, so its own rule and its halves of the line anchor lists only repeated the blob rules. --- assets/cgit.css | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/assets/cgit.css b/assets/cgit.css index 7018ea3..25c906c 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -857,13 +857,11 @@ div#cgit table.ssdiff td.lineno a:hover { color: var(--fg); } -div#cgit table.blob td.linenumbers a, -div#cgit table.blame td.linenumbers a { +div#cgit table.blob td.linenumbers a { scroll-margin-top: calc(50vh - 1em); } -div#cgit table.blob td.linenumbers a:target, -div#cgit table.blame td.linenumbers a:target { +div#cgit table.blob td.linenumbers a:target { background: var(--line-hl); color: var(--fg); } @@ -900,14 +898,6 @@ div#cgit .hl-func { color: var(--hl-func); } -div#cgit table.blame { - position: relative; - display: block; - min-width: 100%; - max-width: 100%; - overflow-x: auto; -} - div#cgit table.blame td.hashes, div#cgit table.blame td.lines, div#cgit table.blame td.linenumbers { -- cgit