diff mercurial/templates/static/style-paper.css @ 24042:bf661a03fddc

hgweb: use css margin instead of empty <p> before diffstat table The <p> elements were used to create an empty space between the diffstat link and the diffstat table, but they don't have any semantic meaning, so it is better to use css instead. Default margins for <p> elements can differ depending on the browser, but usually the margin is 1em (exceptions are IE 6 and 7 with 14pt, which is comparable). The css rule sets top margin to 1em. This change is a "better version" of 70cfa7e1611b, where <p> elements were simply properly closed.
author Anton Shestakov <engored@ya.ru>
date Thu, 05 Feb 2015 20:34:30 +0800
parents 9756f943634f
children 811a1842cfe5
line wrap: on
line diff
--- a/mercurial/templates/static/style-paper.css	Thu Feb 05 19:24:35 2015 +0800
+++ b/mercurial/templates/static/style-paper.css	Thu Feb 05 20:34:30 2015 +0800
@@ -108,6 +108,9 @@
 .minusline { color: #dc143c; } /* crimson */
 .atline { color: purple; }
 
+.diffstat-table {
+  margin-top: 1em;
+}
 .diffstat-file {
   white-space: nowrap;
   font-size: 90%;