Localisation updates from https://translatewiki.net.
[mediawiki.git] / resources / src / mediawiki.pager.styles / TablePager.less
blob5f7dfc9ba75d8194c3a1848290c2d9bbd98b2b3e
1 /*!
2  * Structures generated by the TablePager PHP class
3  * in MediaWiki (used e.g. on Special:ListFiles).
4  */
6 /* stylelint-disable selector-class-pattern */
8 // TablePager uses `.mw-datatable` and is loaded in the right order by RL
9 .mw-datatable {
10         min-width: 80%;
12         &-is-sorted a {
13                 background-position: left center;
14                 background-repeat: no-repeat;
15                 padding-left: 15px;
16         }
18         &-is-ascending a {
19                 background-image: url( images/arrow-sort-ascending.svg );
20         }
22         &-is-descending a {
23                 background-image: url( images/arrow-sort-descending.svg );
24         }
27 .TablePager_nav {
28         &.oo-ui-buttonGroupWidget {
29                 display: block;
30                 margin: 1em;
31                 text-align: center;
32         }
34         // Overrule default OOUI frameless special treatment for left-aligned widgets
35         & .oo-ui-buttonElement-frameless {
36                 &.oo-ui-labelElement > .oo-ui-buttonElement-button {
37                         padding-right: 0.5em;
38                 }
40                 &.oo-ui-labelElement.oo-ui-iconElement:first-child {
41                         margin-left: 0;
42                 }
43         }
45         .TablePager-button-next,
46         .TablePager-button-last {
47                 &.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button {
48                         padding-left: 0.5em;
49                         padding-right: 2.14285714em;
51                         > .oo-ui-iconElement-icon {
52                                 left: auto;
53                                 right: 0.35714286em;
54                         }
55                 }
56         }