hgweb: color line which is linked to in file source view
authorAlexander Plavin <me@aplavin.ru>
Thu, 04 Jul 2013 14:19:43 +0400
changeset 19389 41c4bdd1d585
parent 19388 7f0a30744366
child 19390 3af3a165db18
hgweb: color line which is linked to in file source view Browser compatibility (':target' selector used): IE 8+, FF 3.5+, Safari 3.1+, Opera 9.5+, Chromium 4+, all popular mobile browsers.
mercurial/templates/static/style-paper.css
--- a/mercurial/templates/static/style-paper.css	Thu Jul 04 14:19:13 2013 +0400
+++ b/mercurial/templates/static/style-paper.css	Thu Jul 04 14:19:43 2013 +0400
@@ -240,6 +240,10 @@
 .sourcelines > span:nth-child(4n+1) { background-color: #f0f0f0; }
 .sourcelines > span:nth-child(4n+3) { background-color: white; }
 
+.sourcelines > span:target {
+  background-color: #ffff99;
+}
+
 .sourcelines > a {
     display: inline-block;
     position: absolute;