changeset 29574:0484dfa1e972

monoblue: make different blocks of annotated lines have different colors
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 16 Jul 2016 15:06:04 +0800
parents 2b42fa1810c4
children 1cc5a918b7d8
files mercurial/templates/monoblue/map mercurial/templates/static/style-monoblue.css
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/monoblue/map	Sat Jul 16 15:00:36 2016 +0800
+++ b/mercurial/templates/monoblue/map	Sat Jul 16 15:06:04 2016 +0800
@@ -92,7 +92,7 @@
   <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
 annotateline = '
   <tr id="{lineid}" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
-    <td class="annotate linenr">
+    <td class="annotate linenr parity{blockparity}">
       {if(blockhead,
           '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
              {rev}
--- a/mercurial/templates/static/style-monoblue.css	Sat Jul 16 15:00:36 2016 +0800
+++ b/mercurial/templates/static/style-monoblue.css	Sat Jul 16 15:06:04 2016 +0800
@@ -210,10 +210,12 @@
   background: #D5E1E6;
 }
 */
-table tr.parity0 {
+table tr.parity0,
+table td.annotate.parity0 {
   background: #F1F6F7;
 }
-table tr.parity1 {
+table tr.parity1,
+table td.annotate.parity1 {
   background: #FFFFFF;
 }
 table tr td {