hgweb: remove negative top from .info line in graph
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 01 Dec 2017 20:33:02 +0800
changeset 35201 ec71518acd4a
parent 35200 9e339c97fabb
child 35202 760fef6aca74
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.
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
--- a/mercurial/templates/static/style-gitweb.css	Sun Dec 03 00:29:51 2017 +0530
+++ b/mercurial/templates/static/style-gitweb.css	Fri Dec 01 20:33:02 2017 +0800
@@ -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	Sun Dec 03 00:29:51 2017 +0530
+++ b/mercurial/templates/static/style-monoblue.css	Fri Dec 01 20:33:02 2017 +0800
@@ -503,7 +503,6 @@
 
 ul#graphnodes li .info {
 	display: block;
-	position: relative;
 }
 /** end of canvas **/
 
--- a/mercurial/templates/static/style-paper.css	Sun Dec 03 00:29:51 2017 +0530
+++ b/mercurial/templates/static/style-paper.css	Fri Dec 01 20:33:02 2017 +0800
@@ -481,8 +481,6 @@
 ul#graphnodes li .info {
 	display: block;
 	font-size: 70%;
-	position: relative;
-	top: -3px;
 }
 
 /* Comparison */
--- a/mercurial/templates/static/style.css	Sun Dec 03 00:29:51 2017 +0530
+++ b/mercurial/templates/static/style.css	Fri Dec 01 20:33:02 2017 +0800
@@ -117,6 +117,4 @@
 ul#graphnodes li .info {
 	display: block;
 	font-size: 70%;
-	position: relative;
-	top: -1px;
 }
--- a/tests/test-hgweb-commands.t	Sun Dec 03 00:29:51 2017 +0530
+++ b/tests/test-hgweb-commands.t	Fri Dec 01 20:33:02 2017 +0800
@@ -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	Sun Dec 03 00:29:51 2017 +0530
+++ b/tests/test-hgweb.t	Fri Dec 01 20:33:02 2017 +0800
@@ -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;
   }