Mercurial > hg
comparison tests/test-hgweb-diffs.t @ 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 | 0ab23a48b9a7 |
children | 03f692eee31d |
comparison
equal
deleted
inserted
replaced
24041:9756f943634f | 24042:bf661a03fddc |
---|---|
116 2 files changed, 2 insertions(+), 0 deletions(-) | 116 2 files changed, 2 insertions(+), 0 deletions(-) |
117 | 117 |
118 <a id="diffstatexpand" href="javascript:toggleDiffstat()">[<tt>+</tt>]</a> | 118 <a id="diffstatexpand" href="javascript:toggleDiffstat()">[<tt>+</tt>]</a> |
119 <div id="diffstatdetails" style="display:none;"> | 119 <div id="diffstatdetails" style="display:none;"> |
120 <a href="javascript:toggleDiffstat()">[<tt>-</tt>]</a> | 120 <a href="javascript:toggleDiffstat()">[<tt>-</tt>]</a> |
121 <p></p> | 121 <table class="diffstat-table stripes2"> <tr> |
122 <table class="stripes2"> <tr> | |
123 <td class="diffstat-file"><a href="#l1.1">a</a></td> | 122 <td class="diffstat-file"><a href="#l1.1">a</a></td> |
124 <td class="diffstat-total" align="right">1</td> | 123 <td class="diffstat-total" align="right">1</td> |
125 <td class="diffstat-graph"> | 124 <td class="diffstat-graph"> |
126 <span class="diffstat-add" style="width:100.0%;"> </span> | 125 <span class="diffstat-add" style="width:100.0%;"> </span> |
127 <span class="diffstat-remove" style="width:0.0%;"> </span> | 126 <span class="diffstat-remove" style="width:0.0%;"> </span> |
388 2 files changed, 2 insertions(+), 0 deletions(-) | 387 2 files changed, 2 insertions(+), 0 deletions(-) |
389 | 388 |
390 <a id="diffstatexpand" href="javascript:toggleDiffstat()">[<tt>+</tt>]</a> | 389 <a id="diffstatexpand" href="javascript:toggleDiffstat()">[<tt>+</tt>]</a> |
391 <div id="diffstatdetails" style="display:none;"> | 390 <div id="diffstatdetails" style="display:none;"> |
392 <a href="javascript:toggleDiffstat()">[<tt>-</tt>]</a> | 391 <a href="javascript:toggleDiffstat()">[<tt>-</tt>]</a> |
393 <p></p> | 392 <table class="diffstat-table stripes2"> <tr> |
394 <table class="stripes2"> <tr> | |
395 <td class="diffstat-file"><a href="#l1.1">a</a></td> | 393 <td class="diffstat-file"><a href="#l1.1">a</a></td> |
396 <td class="diffstat-total" align="right">1</td> | 394 <td class="diffstat-total" align="right">1</td> |
397 <td class="diffstat-graph"> | 395 <td class="diffstat-graph"> |
398 <span class="diffstat-add" style="width:100.0%;"> </span> | 396 <span class="diffstat-add" style="width:100.0%;"> </span> |
399 <span class="diffstat-remove" style="width:0.0%;"> </span> | 397 <span class="diffstat-remove" style="width:0.0%;"> </span> |