2021-04-27 16:57:54 +00:00
|
|
|
@import '../mixins.less';
|
|
|
|
|
2022-05-10 17:39:58 +00:00
|
|
|
.citizen-pref {
|
|
|
|
&__button {
|
|
|
|
&[ aria-expanded='true' ] {
|
|
|
|
background-color: var( --background-color-primary--active );
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-11 01:45:30 +00:00
|
|
|
|
|
|
|
&-item {
|
|
|
|
display: grid;
|
|
|
|
gap: 0.25rem;
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2023-07-28 01:19:27 +00:00
|
|
|
width: 100%;
|
2022-05-11 01:45:30 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 00:23:45 +00:00
|
|
|
&__title {
|
|
|
|
font-size: var( --font-size-x-small );
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
letter-spacing: 0.05em;
|
2022-05-11 01:45:30 +00:00
|
|
|
}
|
|
|
|
|
2024-04-25 00:23:45 +00:00
|
|
|
&__value {
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2024-04-25 00:23:45 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2022-05-11 01:45:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// We only show min and max value
|
|
|
|
&__tickmarks {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2022-05-11 01:45:30 +00:00
|
|
|
}
|
2022-05-10 17:39:58 +00:00
|
|
|
}
|
2021-04-27 16:57:54 +00:00
|
|
|
|
2022-05-10 17:39:58 +00:00
|
|
|
#citizen-pref {
|
2021-04-27 16:57:54 +00:00
|
|
|
&-header {
|
2023-07-06 04:55:42 +00:00
|
|
|
padding: var( --space-lg ) var( --space-md ) 0;
|
2022-05-19 01:37:27 +00:00
|
|
|
font-size: 1rem;
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-semibold );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: unify the dropdown menu style somewhere
|
|
|
|
&-panel {
|
2022-09-29 23:12:56 +00:00
|
|
|
.citizen-header-card( right );
|
2022-05-02 02:36:14 +00:00
|
|
|
|
|
|
|
&.citizen-pref-panel--active {
|
|
|
|
.citizen-card-show;
|
|
|
|
}
|
2021-04-27 16:57:54 +00:00
|
|
|
|
|
|
|
fieldset {
|
2023-07-06 04:55:42 +00:00
|
|
|
padding: 0 var( --space-md );
|
2021-04-27 16:57:54 +00:00
|
|
|
margin: 0;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
appearance: none;
|
|
|
|
border: 0;
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
2022-05-02 02:36:14 +00:00
|
|
|
|
|
|
|
> * {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
|
|
|
|
2022-05-11 01:45:30 +00:00
|
|
|
&-form {
|
|
|
|
display: grid;
|
2023-07-06 04:55:42 +00:00
|
|
|
gap: var( --space-md );
|
2023-07-28 01:19:27 +00:00
|
|
|
margin: var( --space-md ) 0;
|
2022-05-11 01:45:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-27 16:57:54 +00:00
|
|
|
&-resetbutton {
|
|
|
|
width: 100%;
|
2023-07-06 04:55:42 +00:00
|
|
|
padding: var( --space-sm ) var( --space-md );
|
2021-04-27 16:57:54 +00:00
|
|
|
font-family: inherit;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: #fff;
|
|
|
|
appearance: none;
|
|
|
|
cursor: pointer;
|
|
|
|
background: var( --color-destructive );
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
|
2021-04-27 16:57:54 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var( --color-destructive--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var( --color-destructive--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 00:23:45 +00:00
|
|
|
// New clientPrefs styles
|
|
|
|
.citizen-client-prefs {
|
2024-04-25 19:45:24 +00:00
|
|
|
display: flex;
|
2024-04-25 19:50:36 +00:00
|
|
|
flex-direction: column;
|
|
|
|
gap: var( --space-xs );
|
2024-04-25 19:45:24 +00:00
|
|
|
|
|
|
|
form {
|
|
|
|
display: grid;
|
|
|
|
// This is not the best because it does not adapt to the text length but will revisit later
|
2024-04-25 20:24:09 +00:00
|
|
|
grid-template-columns: repeat( 2, 1fr );
|
2024-04-25 19:45:24 +00:00
|
|
|
gap: var( --space-xxs );
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2024-04-25 00:23:45 +00:00
|
|
|
&-radio {
|
|
|
|
&__input {
|
|
|
|
// Hide radio button because we use label as button
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
~ .citizen-client-prefs-radio__label {
|
|
|
|
border-color: var( --color-primary );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__label {
|
2024-04-25 21:03:23 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
height: 100%;
|
2024-04-25 00:23:45 +00:00
|
|
|
padding: var( --space-xs ) var( --space-md );
|
|
|
|
font-weight: var( --font-weight-medium );
|
2024-04-25 00:31:16 +00:00
|
|
|
cursor: pointer;
|
2024-04-25 00:23:45 +00:00
|
|
|
border: 2px solid var( --border-color-base );
|
|
|
|
border-radius: var( --border-radius--medium );
|
2024-04-25 00:31:16 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: var( --color-primary--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
border-color: var( --color-primary--active );
|
|
|
|
}
|
2024-04-25 00:23:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#citizen-client-prefs {
|
|
|
|
.citizen-menu {
|
|
|
|
&__content {
|
|
|
|
padding: 0 var( --space-md );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#skin-client-prefs-skin-theme {
|
2024-04-25 20:24:09 +00:00
|
|
|
form {
|
|
|
|
grid-template-columns: repeat( 3, 1fr );
|
|
|
|
}
|
|
|
|
|
2024-04-25 19:45:24 +00:00
|
|
|
.citizen-client-prefs-radio__label {
|
2024-04-25 00:23:45 +00:00
|
|
|
background: var( --color-surface-0 );
|
|
|
|
|
|
|
|
&[ for='skin-client-pref-skin-theme-value-day' ] {
|
|
|
|
// color-base of day theme
|
|
|
|
color: ~'hsl( var( --color-primary__h ), 30%, 20% )';
|
|
|
|
// color-surface-0 of day theme
|
|
|
|
background: ~'hsl( var( --color-primary__h ), 30%, 96% )';
|
|
|
|
}
|
|
|
|
|
|
|
|
&[ for='skin-client-pref-skin-theme-value-night' ] {
|
|
|
|
// color-base of night theme
|
|
|
|
color: ~'hsl( var( --color-primary__h ), 25%, 80% )';
|
|
|
|
// color-surface-0 of night theme
|
|
|
|
background: ~'hsl( var( --color-primary__h ), 20%, 10% )';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 19:45:24 +00:00
|
|
|
#skin-client-prefs-citizen-feature-pure-black {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
// Display on dark theme
|
|
|
|
.skin-theme-clientpref-night & {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
.skin-theme-clientpref-os & {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-client-prefs-radio__label[ for='skin-client-pref-citizen-feature-pure-black-value-1' ] {
|
|
|
|
background-color: #000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:03:23 +00:00
|
|
|
#skin-client-prefs-citizen-feature-custom-font-size {
|
|
|
|
form {
|
|
|
|
grid-template-columns: repeat( 3, 1fr );
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-client-prefs-radio__label {
|
|
|
|
font-size: var( --font-size-medium );
|
|
|
|
|
|
|
|
&[ for='skin-client-pref-citizen-feature-custom-font-size-value-0' ] {
|
|
|
|
font-size: var( --font-size-small );
|
|
|
|
}
|
|
|
|
|
|
|
|
&[ for='skin-client-pref-citizen-feature-custom-font-size-value-2' ] {
|
|
|
|
font-size: var( --font-size-large );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
@media ( hover: hover ) {
|
2023-02-28 21:59:36 +00:00
|
|
|
.citizen-pref:hover .citizen-pref__button .citizen-ui-icon::before {
|
2022-09-29 23:12:56 +00:00
|
|
|
transform: rotate3d( 0, 0, 1, 90deg );
|
|
|
|
}
|
|
|
|
}
|