2022-11-30 20:38:59 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for MediaWiki
|
|
|
|
* Module: mediawiki.ui.input
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
|
|
|
* Date: 2022-11-30
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mw-ui-input {
|
|
|
|
padding: 6px 8px;
|
2023-07-28 01:19:27 +00:00
|
|
|
line-height: var( --line-height-xs );
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
background-color: transparent;
|
2024-04-19 19:14:18 +00:00
|
|
|
border-color: var( --border-color-interactive );
|
2022-11-30 20:38:59 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
|
|
|
|
|
|
|
&:hover {
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-surface-0 );
|
2022-11-30 20:38:59 +00:00
|
|
|
// Sync with checkbox and radio
|
|
|
|
border-color: var( --color-primary--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2022-11-30 21:10:48 +00:00
|
|
|
background-color: var( --color-surface-0 );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --color-primary );
|
2022-11-30 20:38:59 +00:00
|
|
|
box-shadow: inset 0 0 0 1px var( --color-primary );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
color: var( --color-base--subtle );
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-surface-4 );
|
|
|
|
border-color: var( --color-surface-4 );
|
2022-11-30 20:38:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input.mw-ui-input-large {
|
|
|
|
// Smaller font size since MW UI assume a 14px base font size
|
|
|
|
font-size: 1.5em;
|
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
line-height: var( --line-height-xs );
|
|
|
|
}
|