From patchwork Fri Jul 5 08:44:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3, of, 3, RFC, V5] hgweb: color line which is linked to in file source view From: Alexander Plavin X-Patchwork-Id: 1796 Message-Id: <042a315ab3f6c173446f.1373013851@debian-alexander.dolgopa> To: mercurial-devel@selenic.com Date: Fri, 05 Jul 2013 12:44:11 +0400 # HG changeset patch # User Alexander Plavin # Date 1372933183 -14400 # Thu Jul 04 14:19:43 2013 +0400 # Node ID 042a315ab3f6c173446f0e36a1176d7f8ae4db9a # Parent 90a7c8def286e7d8c19c0f8e09b439af591a40fa 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. diff -r 90a7c8def286 -r 042a315ab3f6 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;