mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-02 18:06:21 +00:00
00b2495c1a
- Move border radius calculation to CSS variable instead of LESS - Rename CSS variable according to Codex, soft-deprecating the existing border radius
68 lines
1.7 KiB
Plaintext
68 lines
1.7 KiB
Plaintext
/*
|
|
* Citizen
|
|
*
|
|
* SkinStyles for MediaWiki
|
|
* Module: mediawiki.ui.checkbox
|
|
* Version: REL1_39
|
|
*
|
|
* Date: 2022-11-30
|
|
*/
|
|
|
|
.mw-ui-checkbox {
|
|
[ type='checkbox' ] {
|
|
& + label::before {
|
|
// Show background when hovered
|
|
background-color: transparent;
|
|
border-color: var( --border-color-interactive );
|
|
border-radius: var( --border-radius-base );
|
|
}
|
|
|
|
&:enabled {
|
|
&:focus + label::before {
|
|
background-color: var( --color-surface-0 );
|
|
border-color: var( --color-progressive );
|
|
box-shadow: inset 0 0 0 1px var( --color-progressive );
|
|
}
|
|
|
|
&: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 );
|
|
box-shadow: inset 0 0 0 1px var( --color-progressive--active );
|
|
}
|
|
|
|
&:checked {
|
|
& + label::before {
|
|
background-color: var( --color-progressive );
|
|
border-color: var( --color-progressive );
|
|
}
|
|
|
|
&:focus + label::before {
|
|
background-color: var( --color-progressive );
|
|
border-color: var( --color-progressive );
|
|
box-shadow: inset 0 0 0 1px var( --color-progressive ), inset 0 0 0 2px var( --color-inverted-primary );
|
|
}
|
|
|
|
&:hover + label::before {
|
|
background-color: var( --color-progressive--hover );
|
|
border-color: var( --color-progressive--hover );
|
|
}
|
|
|
|
&:active + label::before {
|
|
background-color: var( --color-progressive--active );
|
|
border-color: var( --color-progressive--active );
|
|
}
|
|
}
|
|
}
|
|
|
|
&:disabled + label::before {
|
|
background-color: var( --color-surface-4 );
|
|
border-color: var( --color-surface-4 );
|
|
}
|
|
}
|
|
}
|