Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 21124:a65714215377
hgweb: align entries in "changelog" and "revisions" pages of "spartan" style
Before this patch, each log entries in "changelog" and "revisions"
pages of "spartan" style are not aligned by column, because:
- each log entries are separated "<table>" entries, and
- there are no fixed "width" information for each "<th>"/"<td>" entries
This patch aligns entries in "changelog" and "revisions" pages of
"spartan" style by:
- adding 'label' class to '<th>' for 'age' information, and
- setting 'width' of '<th class="label">' with fixed size
'class="age"' is not used for this purpose, because it is also used to
set "bold" font-weight
"16em" seems to be wide enough to show date information fully, when
web browser disables (or doesn't support) javascript.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Thu, 17 Apr 2014 09:36:09 +0900 |
parents | 50981ce36236 |
children | 96cdf2e3dbef 829f2dd99f5c |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Thu Apr 17 09:36:09 2014 +0900 +++ b/tests/test-hgweb-commands.t Thu Apr 17 09:36:09 2014 +0900 @@ -1666,6 +1666,7 @@ /* Changelog/Filelog entries */ .logEntry { width: 100%; } .logEntry .age { width: 15%; } + .logEntry th.label { width: 16em; } .logEntry th { font-weight: normal; text-align: right; vertical-align: top; } .logEntry th.age, .logEntry th.firstline { font-weight: bold; } .logEntry th.firstline { text-align: left; width: inherit; }