diff --git a/mercurial/templates/gitweb/map b/mercurial/templates/gitweb/map
--- a/mercurial/templates/gitweb/map
+++ b/mercurial/templates/gitweb/map
@@ -95,12 +95,12 @@ filelog = filelog.tmpl
fileline = '
{strip(line|escape, '\r\n')}'
annotateline = '
-
+
{author|user}@{rev}
|
- {linenumber} |
+ {linenumber} |
{line|escape} |
'
difflineplus = '
@@ -117,9 +117,9 @@ comparisonblock ='
{lines}
'
comparisonline = '
-
- {leftlinenumber} {leftline|escape} |
- {rightlinenumber} {rightline|escape} |
+
+ {leftlinenumber} {leftline|escape} |
+ {rightlinenumber} {rightline|escape} |
'
changelogparent = '
diff --git a/mercurial/templates/monoblue/map b/mercurial/templates/monoblue/map
--- a/mercurial/templates/monoblue/map
+++ b/mercurial/templates/monoblue/map
@@ -91,13 +91,13 @@ filelog = filelog.tmpl
fileline = '
{strip(line|escape, '\r\n')}'
annotateline = '
-
+
{author|user}@{rev}
|
- {linenumber}
+ {linenumber}
|
{line|escape} |
'
@@ -115,9 +115,9 @@ comparisonblock ='
{lines}
'
comparisonline = '
-
- {leftlinenumber} {leftline|escape} |
- {rightlinenumber} {rightline|escape} |
+
+ {leftlinenumber} {leftline|escape} |
+ {rightlinenumber} {rightline|escape} |
'
changesetlink = '{node|short}'
diff --git a/mercurial/templates/static/style-gitweb.css b/mercurial/templates/static/style-gitweb.css
--- a/mercurial/templates/static/style-gitweb.css
+++ b/mercurial/templates/static/style-gitweb.css
@@ -119,6 +119,11 @@ pre.sourcelines > a {
width: 4em;
height: 1em;
}
+tr:target td,
+pre.sourcelines > span:target,
+pre.sourcelines.stripes > span:target {
+ background-color: #bfdfff;
+}
/* Graph */
div#wrapper {
diff --git a/mercurial/templates/static/style-monoblue.css b/mercurial/templates/static/style-monoblue.css
--- a/mercurial/templates/static/style-monoblue.css
+++ b/mercurial/templates/static/style-monoblue.css
@@ -300,6 +300,11 @@ pre.sourcelines.stripes > :nth-child(4n+
pre.sourcelines.stripes > :nth-child(4n+3) { background-color: #FFFFFF; }
pre.sourcelines.stripes > :nth-child(4n+1):hover,
pre.sourcelines.stripes > :nth-child(4n+3):hover { background-color: #D5E1E6; }
+tr:target td,
+pre.sourcelines > span:target,
+pre.sourcelines.stripes > span:target {
+ background-color: #bfdfff;
+}
td.source {
white-space: pre;
diff --git a/tests/test-hgweb.t b/tests/test-hgweb.t
--- a/tests/test-hgweb.t
+++ b/tests/test-hgweb.t
@@ -340,7 +340,7 @@ static file
$ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
200 Script output follows
- content-length: 6264
+ content-length: 6379
content-type: text/css
body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; }
@@ -464,6 +464,11 @@ static file
width: 4em;
height: 1em;
}
+ tr:target td,
+ pre.sourcelines > span:target,
+ pre.sourcelines.stripes > span:target {
+ background-color: #bfdfff;
+ }
/* Graph */
div#wrapper {