changeset 35133:cb31d1567394

monoblue: also highlight target line on annotate and comparison pages Clicking on a line link on pages that show any kind of file contents (including diffs) should highlight that line, and in monoblue it works when there's a <pre> element (e.g. diff), but pages that use <table> element (annotate and compare) need this css class. It matches and highlights linked (":target") table rows. This line is pretty much copied from gitweb theme.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 25 Nov 2017 15:23:07 +0800
parents 34de38f996b9
children bd957ee85a6b
files mercurial/templates/static/style-monoblue.css
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/static/style-monoblue.css	Sat Nov 25 15:01:47 2017 +0800
+++ b/mercurial/templates/static/style-monoblue.css	Sat Nov 25 15:23:07 2017 +0800
@@ -321,6 +321,7 @@
 pre.sourcelines.stripes > :nth-child(4n+1):hover + :nth-child(4n+2),
 pre.sourcelines.stripes > :nth-child(4n+3):hover + :nth-child(4n+4) { background-color: #D5E1E6; }
 
+tr:target td,
 pre.sourcelines > span:target,
 pre.sourcelines.stripes > span:target {
     background-color: #bfdfff;