From patchwork Thu Jan 4 06:49:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1,of,2] hgweb: make .info a block element by default From: Anton Shestakov X-Patchwork-Id: 26528 Message-Id: <3ecf6cb83ef66db56948.1515048594@neuro> To: mercurial-devel@mercurial-scm.org Date: Thu, 04 Jan 2018 14:49:54 +0800 # HG changeset patch # User Anton Shestakov # Date 1514943661 -28800 # Wed Jan 03 09:41:01 2018 +0800 # Node ID 3ecf6cb83ef66db56948d3b47142f06c941281e6 # Parent e01549a7bf0a6a7adbbb317a5d4bfde36c205b4d hgweb: make .info a block element by default Using a
instead of a with "display: block" makes more sense. While at it, let's adjust top margin in monoblue so that text in .info doesn't overlap changeset "tags" elements (they are quite large in monoblue). diff --git a/mercurial/templates/gitweb/graphentry.tmpl b/mercurial/templates/gitweb/graphentry.tmpl --- a/mercurial/templates/gitweb/graphentry.tmpl +++ b/mercurial/templates/gitweb/graphentry.tmpl @@ -3,5 +3,5 @@ {desc|strip|firstline|escape|nonempty} {alltags} - {date|age}, by {author|person} +
{date|age}, by {author|person}
diff --git a/mercurial/templates/monoblue/graphentry.tmpl b/mercurial/templates/monoblue/graphentry.tmpl --- a/mercurial/templates/monoblue/graphentry.tmpl +++ b/mercurial/templates/monoblue/graphentry.tmpl @@ -3,5 +3,5 @@ {desc|strip|firstline|escape|nonempty} {alltags} - {date|rfc822date}, by {author|person} +
{date|rfc822date}, by {author|person}
diff --git a/mercurial/templates/paper/graphentry.tmpl b/mercurial/templates/paper/graphentry.tmpl --- a/mercurial/templates/paper/graphentry.tmpl +++ b/mercurial/templates/paper/graphentry.tmpl @@ -3,5 +3,5 @@ {desc|strip|firstline|escape|nonempty} {alltags} - {date|rfc822date}, by {author|person} +
{date|rfc822date}, by {author|person}
diff --git a/mercurial/templates/spartan/graphentry.tmpl b/mercurial/templates/spartan/graphentry.tmpl --- a/mercurial/templates/spartan/graphentry.tmpl +++ b/mercurial/templates/spartan/graphentry.tmpl @@ -2,5 +2,5 @@ {desc|strip|firstline|escape|nonempty} - {date|rfc822date}, by {author|person} +
{date|rfc822date}, by {author|person}
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 @@ -322,7 +322,6 @@ ul#graphnodes { } ul#graphnodes li .info { - display: block; font-size: 100%; font-style: italic; } 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 @@ -502,7 +502,7 @@ ul#graphnodes li, ul#nodebgs li { } ul#graphnodes li .info { - display: block; + margin-top: 2px; } /** end of canvas **/ diff --git a/mercurial/templates/static/style-paper.css b/mercurial/templates/static/style-paper.css --- a/mercurial/templates/static/style-paper.css +++ b/mercurial/templates/static/style-paper.css @@ -479,7 +479,6 @@ ul#graphnodes li, ul#nodebgs li { } ul#graphnodes li .info { - display: block; font-size: 70%; } diff --git a/mercurial/templates/static/style.css b/mercurial/templates/static/style.css --- a/mercurial/templates/static/style.css +++ b/mercurial/templates/static/style.css @@ -115,6 +115,5 @@ ul#graphnodes { } ul#graphnodes li .info { - display: block; font-size: 70%; } diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t +++ b/tests/test-hgweb-commands.t @@ -1788,28 +1788,28 @@ Overviews branch commit with null character: draft unstable tip something - 1970-01-01, by test +
1970-01-01, by test
  • branch draft stable - 1970-01-01, by test +
    1970-01-01, by test
  • Added tag 1.0 for changeset 2ef0ac749a14 draft default - 1970-01-01, by test +
    1970-01-01, by test
  • base draft 1.0 anotherthing - 1970-01-01, by test +
    1970-01-01, by test
  • @@ -2079,7 +2079,6 @@ Static files } ul#graphnodes li .info { - display: block; font-size: 70%; } 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: 9152 + content-length: 9135 content-type: text/css body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; } @@ -667,7 +667,6 @@ static file } ul#graphnodes li .info { - display: block; font-size: 100%; font-style: italic; }