| 1 |
/*! |
| 2 |
* Display neat icons on redirect pages. |
| 3 |
*/ |
| 4 |
|
| 5 |
/* stylelint-disable selector-class-pattern */ |
| 6 |
@import 'mediawiki.mixins.less'; |
| 7 |
|
| 8 |
/** |
| 9 |
* Hide, but keep accessible for screen-readers. |
| 10 |
* Prefix with .mw-body to override any skin defaults for `p` tag. |
| 11 |
*/ |
| 12 |
.mw-body .redirectMsg p { |
| 13 |
overflow: hidden; |
| 14 |
height: 0; |
| 15 |
padding: 0; |
| 16 |
} |
| 17 |
|
| 18 |
.redirectText { |
| 19 |
list-style: none; |
| 20 |
display: inline; |
| 21 |
margin: 0; |
| 22 |
padding: 0; |
| 23 |
|
| 24 |
li { |
| 25 |
display: inline; |
| 26 |
margin: 0; |
| 27 |
padding: 0; |
| 28 |
.padding-inline( 47px, 0 ); |
| 29 |
|
| 30 |
.mw-content-ltr & { |
| 31 |
/* @noflip */ |
| 32 |
background: transparent url( images/redirect-ltr.svg ) bottom left no-repeat; |
| 33 |
} |
| 34 |
|
| 35 |
.mw-content-rtl & { |
| 36 |
/* @noflip */ |
| 37 |
background: transparent url( images/redirect-rtl.svg ) bottom right no-repeat; |
| 38 |
} |
| 39 |
|
| 40 |
@media screen { |
| 41 |
html.skin-theme-clientpref-night & { |
| 42 |
filter: invert( 1 ); |
| 43 |
|
| 44 |
> a { |
| 45 |
filter: invert( 1 ); |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
/** |
| 50 |
* Auto night mode. |
| 51 |
* |
| 52 |
* Applies the night mode color palette only in response to system settings. |
| 53 |
*/ |
| 54 |
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */ |
| 55 |
@media screen and ( prefers-color-scheme: dark ) { |
| 56 |
html.skin-theme-clientpref-os & { |
| 57 |
filter: invert( 1 ); |
| 58 |
|
| 59 |
> a { |
| 60 |
filter: invert( 1 ); |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
} |