mediawiki-skins-Citizen/skinStyles/mediawiki/ui/mediawiki.ui.icon.less
alistair3149 0fdc7c4ad7
feat(core): convert some CSS variables into Codex equivalent part 2
Also fix various inconsistencies with quiet buttons
2024-06-30 20:41:31 -04:00

43 lines
753 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-button-quiet--active );
}
}
@media ( hover: hover ) {
.mw-ui-icon-element:not( .disabled ):hover {
background-color: var( --background-color-button-quiet--hover );
}
}
@media all and ( min-width: @min-width-breakpoint-desktop ) {
.mw-ui-icon-with-label-desktop {
color: var( --color-subtle ) !important;
&:hover,
&:focus,
&:active,
&:visited {
color: var( --color-subtle );
}
}
}
.mw-ui-icon::before {
filter: var( --filter-invert );
}