From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Mon, 18 Jun 2018 13:26:36 +0800 Subject: [PATCH] css: make highlight div absolute and top left Message-ID: <152929959685.28149.11453139176219636772.stgit@mail.warmcat.com> Normal operation of blame view requires div.highlight to have absolute position and set to its parent's top left for me. Otherwise the grey background boxes indicating the extent of the patch in the lines td displace the highlit sources, they start at the bottom of the td. This patch makes the highlight div start back up the top of its parent area and render on top of the grey boxes. Checked on Linux Firefox 60 and Linux Chrome 69. Signed-off-by: Andy Green --- cgit.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgit.css b/cgit.css index da8d9b0..a186ba9 100644 --- a/cgit.css +++ b/cgit.css @@ -162,6 +162,8 @@ div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) { background: white; } +div.highlight { position: absolute; top: 0; left: 0; } + div#cgit table.list th { font-weight: bold; /* color: #888;