Patchwork [3,of,3,V6] hgweb: color line which is linked to in file source view

login
register
mail settings
Submitter Alexander Plavin
Date July 5, 2013, 6:20 p.m.
Message ID <4a38d70d86dabc7b7976.1373048421@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1798/
State Superseded, archived
Headers show

Comments

Alexander Plavin - July 5, 2013, 6:20 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1372933183 -14400
#      Thu Jul 04 14:19:43 2013 +0400
# Node ID 4a38d70d86dabc7b7976a0e599471ffadb4299ed
# Parent  210168487f7a5bcd6952a3647232ec607f5f671a
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.

Patch

diff -r 210168487f7a -r 4a38d70d86da 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;