[PATCH 4 of 6] hgweb: CSS change to allow correct numbering for multiple code blocks
Alexander Plavin
me at aplavin.ru
Fri Jul 12 16:07:41 CDT 2013
# HG changeset patch
# User Alexander Plavin <me at aplavin.ru>
# Date 1373658651 -14400
# Fri Jul 12 23:50:51 2013 +0400
# Node ID 5f28ecff8fd41834918308628462e0b1a97772b2
# Parent 8458ee0b0df78ae9ff3fbd809e49e290959fcbc7
hgweb: CSS change to allow correct numbering for multiple code blocks
diff -r 8458ee0b0df7 -r 5f28ecff8fd4 mercurial/templates/static/style-paper.css
--- a/mercurial/templates/static/style-paper.css Fri Jul 12 23:47:56 2013 +0400
+++ b/mercurial/templates/static/style-paper.css Fri Jul 12 23:50:51 2013 +0400
@@ -216,6 +216,7 @@
.sourcelines {
font-size: 90%;
position: relative;
+ counter-reset: lineno;
}
.wrap > span {
@@ -226,6 +227,9 @@
float: right;
}
+.reset-lineno { counter-reset: lineno; }
+.inc-lineno { counter-increment: lineno; }
+
.sourcelines > span {
display: inline-block;
width: 100%;
@@ -245,7 +249,7 @@
font-size: smaller;
color: #999;
text-align: right;
- content: counter(lineno);
+ content: counters(lineno, ".");
}
.sourcelines > span:target {
More information about the Mercurial-devel
mailing list