List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH] css: make highlight div absolute and top left
@ 2018-06-18  5:26 andy
  2018-06-18  6:02 ` [PATCH v2] blame: css: make blame " andy
  0 siblings, 1 reply; 6+ messages in thread
From: andy @ 2018-06-18  5:26 UTC (permalink / raw)


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;



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-20  0:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-18  5:26 [PATCH] css: make highlight div absolute and top left andy
2018-06-18  6:02 ` [PATCH v2] blame: css: make blame " andy
2018-06-18 18:57   ` john
2018-06-18 19:11     ` andy
2018-06-19 19:59       ` john
2018-06-20  0:50         ` andy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).