2023-07-27 21:35:56 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
|
2023-07-19 11:00:13 +00:00
|
|
|
// NOTE: @param-is-button-icon lets us change the icon color
|
|
|
|
// with background-color by using mask-image.
|
2024-09-25 00:23:04 +00:00
|
|
|
// over specified so that it overrides the minerva-icon default.
|
|
|
|
.minerva-icon.minerva-icon--modified-history {
|
2023-07-19 11:00:13 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-history, @param-is-button-icon: true );
|
|
|
|
}
|
|
|
|
|
2024-09-25 00:23:04 +00:00
|
|
|
.minerva-icon.minerva-icon--expand {
|
2023-08-09 19:13:50 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-next, @param-is-button-icon: true );
|
|
|
|
}
|
|
|
|
|
2024-09-25 00:23:04 +00:00
|
|
|
.minerva-icon.minerva-icon--newspaper {
|
|
|
|
.cdx-mixin-css-icon(@cdx-icon-newspaper, @param-is-button-icon: true);
|
2023-08-09 19:13:50 +00:00
|
|
|
}
|
|
|
|
|
2024-09-25 00:23:04 +00:00
|
|
|
.minerva-icon.minerva-icon-size-small {
|
2023-08-09 19:13:50 +00:00
|
|
|
.cdx-mixin-css-icon-background( @size-icon-small );
|
|
|
|
.cdx-mixin-css-icon-size( @size-icon-small );
|
2024-09-25 00:23:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Start T374145
|
|
|
|
.minerva-icon {
|
|
|
|
.cdx-mixin-css-icon('none');
|
|
|
|
background-color: @color-subtle;
|
|
|
|
}
|
2024-02-22 20:01:18 +00:00
|
|
|
|
2024-09-25 00:23:04 +00:00
|
|
|
.minerva-icon--language-disabled {
|
|
|
|
background-color: @color-disabled;
|
2023-07-19 11:00:13 +00:00
|
|
|
}
|
2024-09-25 00:23:04 +00:00
|
|
|
|
|
|
|
// Dark mode adjustments
|
|
|
|
@media screen {
|
|
|
|
html.skin-theme-clientpref-night {
|
|
|
|
// Disable inversion for icons in dark mode, except where explicitly defined
|
|
|
|
.toggle-list .minerva-icon {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Invert only branding images (e.g., logo) inside the branding-box in dark mode
|
|
|
|
.branding-box img {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and ( prefers-color-scheme: dark ) {
|
|
|
|
html.skin-theme-clientpref-os {
|
|
|
|
// Disable inversion for OS-level dark mode as well
|
|
|
|
.toggle-list .minerva-icon {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Branding image inversion for OS-level dark mode
|
|
|
|
.branding-box img {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// End T374145
|