mediawiki-skins-Citizen/skinStyles/mediawiki/ui/mediawiki.ui.icon.less
alistair3149 60999eb1d9
feat(core): replace breakpoint LESS variables with Codex tokens
Codex tokens are a better implementation and this should ensure consistency across the MW ecosystem.
We have to keep a copy for now as they are introduced in 1.41.

Related: #735
2023-11-16 17:55:59 -05:00

43 lines
751 B
Plaintext

/*
* Citizen
*
* SkinStyles for MediaWiki
* Module: mediawiki.ui.icon
* Version: REL1_39
*
* Date: 2022-11-30
*/
@import '../../resources/variables.less';
.mw-ui-icon-element {
border-radius: var( --border-radius--small );
&:active {
background-color: var( --background-color-quiet--active );
}
}
@media ( hover: hover ) {
.mw-ui-icon-element:not( .disabled ):hover {
background-color: var( --background-color-quiet--hover );
}
}
@media all and ( min-width: @min-width-breakpoint-desktop ) {
.mw-ui-icon-with-label-desktop {
color: var( --color-base--subtle ) !important;
&:hover,
&:focus,
&:active,
&:visited {
color: var( --color-base--subtle );
}
}
}
.mw-ui-icon::before {
filter: var( --filter-invert );
}