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' ] {
|
2023-02-28 21:59:36 +00:00
|
|
|
& + label::before {
|
2022-11-30 20:38:59 +00:00
|
|
|
// Show background when hovered
|
|
|
|
background-color: transparent;
|
2024-04-19 19:14:18 +00:00
|
|
|
border-color: var( --border-color-interactive );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-base );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:enabled {
|
2023-02-28 21:59:36 +00:00
|
|
|
&:focus + label::before {
|
2022-12-01 02:42:28 +00:00
|
|
|
background-color: var( --color-surface-0 );
|
2024-06-30 05:04:30 +00:00
|
|
|
border-color: var( --color-progressive );
|
|
|
|
box-shadow: inset 0 0 0 1px var( --color-progressive );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&:hover + label::before {
|
2022-11-30 20:38:59 +00:00
|
|
|
background-color: var( --color-surface-0 );
|
2024-06-30 05:04:30 +00:00
|
|
|
border-color: var( --color-progressive--hover );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
2019-12-27 13:54:40 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&:active + label::before {
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive--active );
|
|
|
|
border-color: var( --color-progressive--active );
|
|
|
|
box-shadow: inset 0 0 0 1px var( --color-progressive--active );
|
2019-12-27 13:54:40 +00:00
|
|
|
}
|
|
|
|
|
2021-07-27 20:24:26 +00:00
|
|
|
&:checked {
|
2023-02-28 21:59:36 +00:00
|
|
|
& + label::before {
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive );
|
|
|
|
border-color: var( --color-progressive );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&:focus + label::before {
|
2024-06-30 05:04:30 +00:00
|
|
|
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 );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&:hover + label::before {
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive--hover );
|
|
|
|
border-color: var( --color-progressive--hover );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&:active + label::before {
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive--active );
|
|
|
|
border-color: var( --color-progressive--active );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
2019-12-27 13:54:40 +00:00
|
|
|
}
|
|
|
|
}
|
2021-07-27 20:24:26 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&:disabled + label::before {
|
2021-07-27 20:24:26 +00:00
|
|
|
background-color: var( --color-surface-4 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --color-surface-4 );
|
2021-07-27 20:24:26 +00:00
|
|
|
}
|
2019-12-27 13:54:40 +00:00
|
|
|
}
|
|
|
|
}
|