X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery.tablesorter.styles%2Fjquery.tablesorter.styles.less;h=b926454a61393ab1b3fa66310788df70f2b6c851;hb=447574ceb746c2f4026a8bf77632bdc4604314bb;hp=c941da0557d3371f8c7b0ad297b8bd49396f0f49;hpb=d98de9926d033b9eaa30306379dc1815ee27b42f;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery.tablesorter.styles/jquery.tablesorter.styles.less b/resources/src/jquery.tablesorter.styles/jquery.tablesorter.styles.less index c941da0557..b926454a61 100644 --- a/resources/src/jquery.tablesorter.styles/jquery.tablesorter.styles.less +++ b/resources/src/jquery.tablesorter.styles/jquery.tablesorter.styles.less @@ -1,8 +1,16 @@ @import 'mediawiki.mixins'; +/* stylelint-disable selector-class-pattern */ + /* Table Sorting */ -.client-js .sortable:not( .jquery-tablesorter ) > thead > :last-of-type > th:not( .unsortable ), +// Reserve space for table sortable controls +// This selector is not perfect as it will not correctly handle cases with +// merged header cells, so ensure it is removed after the JS has run by using +// the :not( .jquery-tablesorter ) selector. +// It will still prevent a visible jump in the majority of simpler cases. +// The second selector in this rule is for after the JS has run. +.client-js .sortable:not( .jquery-tablesorter ) > * > tr:first-child > th:not( .unsortable ), .jquery-tablesorter th.headerSort { .background-image-svg( 'images/sort_both.svg', 'images/sort_both.png' ); cursor: pointer;