diff tests/test-hgweb.t @ 35211: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 bd957ee85a6b
children ab9d8d298510
line wrap: on
line diff
--- 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;
   }