mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 22:35:45 +00:00
5d3ecd9edd
This is an on-going work to adapt Codex into Citizen. Some of the CSS variables are soft depreciated, see tokens.less for updated info.
67 lines
1.3 KiB
Plaintext
67 lines
1.3 KiB
Plaintext
/*
|
|
* Citizen
|
|
*
|
|
* SkinStyles for MediaWiki
|
|
* Module: mediawiki.ui.radio
|
|
* Version: REL1_39
|
|
*
|
|
* Date: 2022-11-30
|
|
*/
|
|
|
|
.client-js .mw-ui-radio {
|
|
[ type='radio' ] {
|
|
& + label {
|
|
&::before {
|
|
// Show background when hovered
|
|
background-color: transparent;
|
|
border-color: var( --border-color-interactive );
|
|
}
|
|
}
|
|
|
|
&:enabled {
|
|
&:hover + label::before {
|
|
background-color: var( --color-surface-0 );
|
|
border-color: var( --color-progressive--hover );
|
|
}
|
|
|
|
&:active + label::before {
|
|
background-color: var( --color-progressive--active );
|
|
border-color: var( --color-progressive--active );
|
|
}
|
|
|
|
&:checked {
|
|
& + label::before {
|
|
background-color: var( --color-inverted-primary );
|
|
border-color: var( --color-progressive );
|
|
}
|
|
|
|
&:hover + label::before {
|
|
border-color: var( --color-progressive--hover );
|
|
}
|
|
|
|
&:active {
|
|
& + label::before {
|
|
border-color: var( --color-progressive--active );
|
|
box-shadow: inset 0 0 0 1px var( --color-progressive--active );
|
|
}
|
|
|
|
& + label::after {
|
|
border-color: var( --color-progressive--active );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&:disabled {
|
|
& + label::before {
|
|
background-color: var( --color-surface-4 );
|
|
border-color: var( --color-surface-4 );
|
|
}
|
|
|
|
&:checked + label::before {
|
|
background-color: var( --color-surface-0 );
|
|
}
|
|
}
|
|
}
|
|
}
|