##// END OF EJS Templates
gitweb: make different blocks of annotated lines have different colors
av6 -
r29573:2b42fa18 default
parent child Browse files
Show More
@@ -96,7 +96,7 b" fileline = '"
96 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
96 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
97 annotateline = '
97 annotateline = '
98 <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
98 <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
99 <td class="annotate linenr" style="text-align: right;">
99 <td class="annotate linenr parity{blockparity}" style="text-align: right;">
100 {if(blockhead,
100 {if(blockhead,
101 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
101 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
102 {rev}
102 {rev}
@@ -29,6 +29,7 b' a.list { text-decoration:none; color:#00'
29 a.list:hover { text-decoration:underline; color:#880000; }
29 a.list:hover { text-decoration:underline; color:#880000; }
30 table { padding:8px 4px; }
30 table { padding:8px 4px; }
31 th { padding:2px 5px; font-size:12px; text-align:left; }
31 th { padding:2px 5px; font-size:12px; text-align:left; }
32 .parity0 { background-color:#ffffff; }
32 tr.dark, .parity1, pre.sourcelines.stripes > :nth-child(4n+4) { background-color:#f6f6f0; }
33 tr.dark, .parity1, pre.sourcelines.stripes > :nth-child(4n+4) { background-color:#f6f6f0; }
33 tr.light:hover, .parity0:hover, tr.dark:hover, .parity1:hover,
34 tr.light:hover, .parity0:hover, tr.dark:hover, .parity1:hover,
34 pre.sourcelines.stripes > :nth-child(4n+2):hover,
35 pre.sourcelines.stripes > :nth-child(4n+2):hover,
@@ -340,7 +340,7 b' static file'
340
340
341 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
341 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
342 200 Script output follows
342 200 Script output follows
343 content-length: 6908
343 content-length: 6947
344 content-type: text/css
344 content-type: text/css
345
345
346 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; }
346 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; }
@@ -374,6 +374,7 b' static file'
374 a.list:hover { text-decoration:underline; color:#880000; }
374 a.list:hover { text-decoration:underline; color:#880000; }
375 table { padding:8px 4px; }
375 table { padding:8px 4px; }
376 th { padding:2px 5px; font-size:12px; text-align:left; }
376 th { padding:2px 5px; font-size:12px; text-align:left; }
377 .parity0 { background-color:#ffffff; }
377 tr.dark, .parity1, pre.sourcelines.stripes > :nth-child(4n+4) { background-color:#f6f6f0; }
378 tr.dark, .parity1, pre.sourcelines.stripes > :nth-child(4n+4) { background-color:#f6f6f0; }
378 tr.light:hover, .parity0:hover, tr.dark:hover, .parity1:hover,
379 tr.light:hover, .parity0:hover, tr.dark:hover, .parity1:hover,
379 pre.sourcelines.stripes > :nth-child(4n+2):hover,
380 pre.sourcelines.stripes > :nth-child(4n+2):hover,
General Comments 0
You need to be logged in to leave comments. Login now