* in MediaWiki (used e.g. on Special:ListFiles).
*/
+/* stylelint-disable selector-class-pattern */
+
@import 'mediawiki.mixins';
-.TablePager {
+// TablePager uses `.mw-datatable` and is loaded in the right order by RL
+.mw-datatable {
min-width: 80%;
- // Remove as soon as `.mw-datatable` receives this `padding`, see T214208
- td,
- th {
- padding: 0.2em 0.4em;
+ &-is-sorted a {
+ background-position: left center;
+ background-repeat: no-repeat;
+ padding-left: 15px;
}
-}
-.TablePager .TablePager_sort-ascending a {
- padding-left: 15px;
- background: none left center no-repeat;
- .background-image-svg('images/arrow-sort-ascending.svg', 'images/arrow-sort-ascending.png');
-}
+ &-is-ascending a {
+ .background-image-svg( 'images/arrow-sort-ascending.svg', 'images/arrow-sort-ascending.png' );
+ }
-.TablePager .TablePager_sort-descending a {
- padding-left: 15px;
- background: none left center no-repeat;
- .background-image-svg('images/arrow-sort-descending.svg', 'images/arrow-sort-descending.png');
+ &-is-descending a {
+ .background-image-svg( 'images/arrow-sort-descending.svg', 'images/arrow-sort-descending.png' );
+ }
}
.TablePager_nav {