Mercurial > hg > mercurial-source
changeset 35984:ec71518acd4a
hgweb: remove negative top from .info line in graph
"top: -Xpx" shifts a block up by X pixels, which can be used to visually
compress two lines of text to have less space between them, in this case it's
used for the changesets on /graph page. But not only it's not needed there
(both lines fit fine into their allowed vertical space), but it would also look
better (not as crammed, more vertically centered) without these negative
values.
"position: relative" is needed solely for the "top" property to have effect on
the element, no children of the .info element rely on it, so let's remove it as
well.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 01 Dec 2017 20:33:02 +0800 |
parents | 9e339c97fabb |
children | 760fef6aca74 |
files | mercurial/templates/static/style-gitweb.css mercurial/templates/static/style-monoblue.css mercurial/templates/static/style-paper.css mercurial/templates/static/style.css tests/test-hgweb-commands.t tests/test-hgweb.t |
diffstat | 6 files changed, 1 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/static/style-gitweb.css +++ b/mercurial/templates/static/style-gitweb.css @@ -324,8 +324,6 @@ ul#graphnodes li .info { display: block; font-size: 100%; - position: relative; - top: -3px; font-style: italic; }
--- a/mercurial/templates/static/style-monoblue.css +++ b/mercurial/templates/static/style-monoblue.css @@ -503,7 +503,6 @@ ul#graphnodes li .info { display: block; - position: relative; } /** end of canvas **/
--- a/mercurial/templates/static/style-paper.css +++ b/mercurial/templates/static/style-paper.css @@ -481,8 +481,6 @@ ul#graphnodes li .info { display: block; font-size: 70%; - position: relative; - top: -3px; } /* Comparison */
--- a/mercurial/templates/static/style.css +++ b/mercurial/templates/static/style.css @@ -117,6 +117,4 @@ ul#graphnodes li .info { display: block; font-size: 70%; - position: relative; - top: -1px; }
--- a/tests/test-hgweb-commands.t +++ b/tests/test-hgweb-commands.t @@ -2093,8 +2093,6 @@ ul#graphnodes li .info { display: block; font-size: 70%; - position: relative; - top: -1px; } Stop and restart the server at the directory different from the repository
--- a/tests/test-hgweb.t +++ b/tests/test-hgweb.t @@ -340,7 +340,7 @@ $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server 200 Script output follows - content-length: 9185 + content-length: 9152 content-type: text/css body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; } @@ -669,8 +669,6 @@ ul#graphnodes li .info { display: block; font-size: 100%; - position: relative; - top: -3px; font-style: italic; }