| 1 |
@import 'mediawiki.skin.variables.less'; |
| 2 |
|
| 3 |
// NOTE: @param-is-button-icon lets us change the icon color |
| 4 |
// with background-color by using mask-image. |
| 5 |
// over specified so that it overrides the minerva-icon default. |
| 6 |
.minerva-icon.minerva-icon--modified-history { |
| 7 |
.cdx-mixin-css-icon( @cdx-icon-history, @param-is-button-icon: true ); |
| 8 |
} |
| 9 |
|
| 10 |
.minerva-icon.minerva-icon--expand { |
| 11 |
.cdx-mixin-css-icon( @cdx-icon-next, @param-is-button-icon: true ); |
| 12 |
} |
| 13 |
|
| 14 |
.minerva-icon.minerva-icon--newspaper { |
| 15 |
.cdx-mixin-css-icon(@cdx-icon-newspaper, @param-is-button-icon: true); |
| 16 |
} |
| 17 |
|
| 18 |
.minerva-icon.minerva-icon-size-small { |
| 19 |
.cdx-mixin-css-icon-background( @size-icon-small ); |
| 20 |
.cdx-mixin-css-icon-size( @size-icon-small ); |
| 21 |
} |
| 22 |
|
| 23 |
// Start T374145 |
| 24 |
@transparentPNG: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=); |
| 25 |
|
| 26 |
.minerva-icon { |
| 27 |
// By default use a transparent PNG. This is important for icons loaded via JavaScript, as without this |
| 28 |
// the icon will appear as a black square until loaded. |
| 29 |
-webkit-mask-image: @transparentPNG; |
| 30 |
mask-image: @transparentPNG; |
| 31 |
.cdx-mixin-css-icon('none'); |
| 32 |
background-color: @color-subtle; |
| 33 |
} |
| 34 |
|
| 35 |
.minerva-icon--language-disabled { |
| 36 |
background-color: @color-disabled; |
| 37 |
} |
| 38 |
|
| 39 |
// Dark mode adjustments |
| 40 |
@media screen { |
| 41 |
html.skin-theme-clientpref-night { |
| 42 |
// Disable inversion for icons in dark mode, except where explicitly defined |
| 43 |
.toggle-list .minerva-icon { |
| 44 |
filter: none; |
| 45 |
} |
| 46 |
|
| 47 |
// Invert only branding images (e.g., logo) inside the branding-box in dark mode |
| 48 |
.branding-box img { |
| 49 |
filter: invert( 1 ); |
| 50 |
} |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
@media screen and ( prefers-color-scheme: dark ) { |
| 55 |
html.skin-theme-clientpref-os { |
| 56 |
// Disable inversion for OS-level dark mode as well |
| 57 |
.toggle-list .minerva-icon { |
| 58 |
filter: none; |
| 59 |
} |
| 60 |
|
| 61 |
// Branding image inversion for OS-level dark mode |
| 62 |
.branding-box img { |
| 63 |
filter: invert( 1 ); |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
// End T374145 |