From: Happy-melon Date: Thu, 29 Oct 2009 14:15:20 +0000 (+0000) Subject: Use CSS rather than hardcoded nbsps to add space before the sorting arrows in Sortabl... X-Git-Tag: 1.31.0-rc.0~39041 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=8272d56034b1d85a19e81eb621dcc50b8c78ed00;p=lhc%2Fweb%2Fwiklou.git Use CSS rather than hardcoded nbsps to add space before the sorting arrows in SortableTables. The nbsps cause headers to be pushed off-centre when the arrow wraps to the next line; the symmetrical margin ensures that the arrows are themselves centred when that happens. --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 99c0d887d3..439a08f805 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1605,7 +1605,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches do not keep obsolete copies of global * styles. */ -$wgStyleVersion = '249'; +$wgStyleVersion = '250'; # Server-side caching: diff --git a/skins/common/shared.css b/skins/common/shared.css index c4fcb42eca..9409ee40c7 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -815,3 +815,8 @@ td.mw-enhanced-rc { background-position: middle middle; background-repeat: no-repeat; } + +/* Sort arrows added by SortableTables */ +a.sortheader { + margin: 0 0.3em; +} diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 188a438e3c..0485cdff98 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -534,8 +534,7 @@ function ts_makeSortable(table) { for (var i = 0; i < firstRow.cells.length; i++) { var cell = firstRow.cells[i]; if ((" "+cell.className+" ").indexOf(" unsortable ") == -1) { - cell.innerHTML += '  ' - + '' + '' + '