mediawiki-skins-Citizen/skinStyles/extensions/Wikibase/wikibase.client.init.less
alistair3149 3867f1588a
feat(skinStyles): add grade B support Wikibase (#439)
Add grade B support for Wikibase.

Wikibase is a massive extension with a lot of legacy styles and jquery dependencies.
There might be missing styles here and there for the initial implementation,
but it should work for now.
2022-05-11 18:01:43 -04:00

43 lines
762 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 {
&:link,
&:visited {
color: var( --color-base--subtle ) !important;
}
&:hover {
color: var( --color-primary ) !important;
}
}
}
.skin-citizen-dark {
// Edit button
.wb-langlinks-link > a {
&:before {
filter: invert( 1 ) hue-rotate( 180deg );
}
&:link,
&:visited {
// Re-apply greyscale value since we use filter to override the color
&:before {
filter: invert( 1 ) hue-rotate( 180deg ) grayscale( 1 );
}
}
}
}