mediawiki-skins-Citizen/skinStyles/extensions/Wikibase/wikibase.client.init.less
alistair3149 2bf20397e1
feat(core): use filter-invert CSS variable to flip color
This decouple the filter style from the  class.
Instead, filter-invert can be redefined if needed (e.g. :root.skin-citizen-dark)
2023-07-10 16:56:56 -04:00

35 lines
633 B
Plaintext

/*
* Citizen
*
* SkinStyles for Extension:Wikibase
* Module: wikibase.client.init
* Version: REL1_35 7bb503b
*
* Date: 2022-05-11
*/
// Needed for more specificity
// The original styles have a lot of important overrides in it
// Better safe than sorry
.skin-citizen {
.wb-langlinks-link > a {
&::before {
filter: var( --filter-invert );
}
&:link,
&:visited {
color: var( --color-base--subtle ) !important;
&::before {
// Re-apply greyscale value since we use filter to override the color
filter: var( --filter-invert );
}
}
&:hover {
color: var( --color-primary ) !important;
}
}
}