2019-12-27 13:54:40 +00:00
|
|
|
/*
|
2021-07-27 20:24:26 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
2022-11-30 20:38:59 +00:00
|
|
|
* SkinStyles for MediaWiki
|
2021-07-27 20:24:26 +00:00
|
|
|
* Module: mediawiki.ui.checkbox
|
2022-11-30 20:38:59 +00:00
|
|
|
* Version: REL1_39
|
2021-07-27 20:24:26 +00:00
|
|
|
*
|
2022-11-30 20:38:59 +00:00
|
|
|
* Date: 2022-11-30
|
2019-12-27 13:54:40 +00:00
|
|
|
*/
|
|
|
|
|
2022-11-30 20:38:59 +00:00
|
|
|
.mw-ui-checkbox {
|
2021-07-27 20:24:26 +00:00
|
|
|
[ type='checkbox' ] {
|
|
|
|
& + label:before {
|
2022-12-01 02:42:28 +00:00
|
|
|
border-color: var( --border-color-base--darker );
|
2022-11-30 20:38:59 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
|
|
|
// Show background when hovered
|
|
|
|
background-color: transparent;
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:enabled {
|
|
|
|
&:focus + label:before {
|
|
|
|
border-color: var( --color-primary );
|
2022-12-01 02:42:28 +00:00
|
|
|
background-color: var( --color-surface-0 );
|
2022-11-30 20:38:59 +00:00
|
|
|
box-shadow: inset 0 0 0 1px var( --color-primary );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover + label:before {
|
|
|
|
border-color: var( --color-primary--hover );
|
2022-11-30 20:38:59 +00:00
|
|
|
background-color: var( --color-surface-0 );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
2019-12-27 13:54:40 +00:00
|
|
|
|
2021-07-27 20:24:26 +00:00
|
|
|
&:active + label:before {
|
|
|
|
border-color: var( --color-primary--active );
|
|
|
|
background-color: var( --color-primary--active );
|
|
|
|
box-shadow: inset 0 0 0 1px var( --color-primary--active );
|
2019-12-27 13:54:40 +00:00
|
|
|
}
|
|
|
|
|
2021-07-27 20:24:26 +00:00
|
|
|
&:checked {
|
|
|
|
& + label:before {
|
|
|
|
border-color: var( --color-primary );
|
|
|
|
background-color: var( --color-primary );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus + label:before {
|
|
|
|
border-color: var( --color-primary );
|
|
|
|
background-color: var( --color-primary );
|
|
|
|
box-shadow: inset 0 0 0 1px var( --color-primary ), inset 0 0 0 2px #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover + label:before {
|
|
|
|
border-color: var( --color-primary--hover );
|
|
|
|
background-color: var( --color-primary--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active + label:before {
|
|
|
|
border-color: var( --color-primary--active );
|
|
|
|
background-color: var( --color-primary--active );
|
|
|
|
}
|
2019-12-27 13:54:40 +00:00
|
|
|
}
|
|
|
|
}
|
2021-07-27 20:24:26 +00:00
|
|
|
|
|
|
|
&:disabled + label:before {
|
|
|
|
border-color: var( --color-surface-4 );
|
|
|
|
background-color: var( --color-surface-4 );
|
|
|
|
}
|
2019-12-27 13:54:40 +00:00
|
|
|
}
|
|
|
|
}
|