1.1 --- a/ImprovedTableParser.py Mon Feb 20 21:38:00 2012 +0100
1.2 +++ b/ImprovedTableParser.py Mon Feb 20 21:59:32 2012 +0100
1.3 @@ -529,21 +529,15 @@
1.4 arrow = columnascending and down_arrow or up_arrow
1.5 arrow_reverse = not columnascending and down_arrow or up_arrow
1.6
1.7 - write(fmt.listitem(1, css_class="sortcolumn", style="list-style-type: none"))
1.8 + write(fmt.listitem(1, css_class="appendcolumn"))
1.9
1.10 # Pop-up element showing the column inserted before the sort column.
1.11
1.12 - write(fmt.span(1, css_class="sortcolumn-container"))
1.13 write(fmt.span(1, css_class="newsortcolumn"))
1.14 - write(formatText(newlabel, request, fmt))
1.15 -
1.16 + write_sort_link(write, request, fmt, table_name, sortcolumns, newlabel, "")
1.17 write_sort_link(write, request, fmt, table_name, sortcolumns, arrow, "sortdirection")
1.18 write_sort_link(write, request, fmt, table_name, sortcolumns_reverse, arrow_reverse, "sortdirection")
1.19 -
1.20 write(fmt.span(0))
1.21 - write(fmt.span(0))
1.22 -
1.23 - write_sort_link(write, request, fmt, table_name, sortcolumns, _("..."), "")
1.24
1.25 write(fmt.listitem(0))
1.26
2.1 --- a/css/improvedtableparser.css Mon Feb 20 21:38:00 2012 +0100
2.2 +++ b/css/improvedtableparser.css Mon Feb 20 21:59:32 2012 +0100
2.3 @@ -40,7 +40,7 @@
2.4
2.5 .sortcolumns li {
2.6 white-space: nowrap;
2.7 - border-top: 2px solid #fff;
2.8 + padding-top: 4px;
2.9 }
2.10
2.11 .sortcolumns a {
2.12 @@ -50,6 +50,7 @@
2.13
2.14 .sortcolumn:hover {
2.15 border-top: 2px solid #f66;
2.16 + padding-top: 2px;
2.17 }
2.18
2.19 /* Column removal and inactive columns. */
2.20 @@ -94,3 +95,16 @@
2.21 color: #000;
2.22 padding: 0.5em;
2.23 }
2.24 +
2.25 +.appendcolumn {
2.26 + list-style-type: none;
2.27 +}
2.28 +
2.29 +.appendcolumn .newsortcolumn {
2.30 + visibility: hidden;
2.31 + display: inline-block;
2.32 +}
2.33 +
2.34 +.appendcolumn:hover .newsortcolumn {
2.35 + visibility: visible;
2.36 +}