[PATCH] css: make highlight div absolute and top left
Andy Green
andy at warmcat.com
Mon Jun 18 07:26:36 CEST 2018
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 <andy at warmcat.com>
---
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;
More information about the CGit
mailing list