2021-04-27 16:57:54 +00:00
|
|
|
@import '../mixins.less';
|
|
|
|
|
2024-11-13 01:13:47 +00:00
|
|
|
#citizen-preferences__card {
|
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 21:41:22 +00:00
|
|
|
grid-template-columns: repeat( 3, 1fr );
|
2024-04-25 19:45:24 +00:00
|
|
|
gap: var( --space-xxs );
|
2024-11-13 01:13:47 +00:00
|
|
|
padding-inline: var( --space-md );
|
2024-04-25 19:45:24 +00:00
|
|
|
}
|
2024-11-13 01:13:47 +00:00
|
|
|
}
|
2024-04-25 19:45:24 +00:00
|
|
|
|
2024-11-13 01:13:47 +00:00
|
|
|
.citizen-preferences-content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: var( --space-xs );
|
2024-11-13 01:16:33 +00:00
|
|
|
padding-block: var( --space-xs );
|
2024-11-13 01:13:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// New clientPrefs styles
|
|
|
|
.citizen-client-prefs {
|
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 {
|
2024-06-30 05:04:30 +00:00
|
|
|
border-color: var( --color-progressive );
|
2024-04-25 00:23:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__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-07-15 06:07:25 +00:00
|
|
|
border: var( --border-width-thick ) solid var( --border-color-base );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium );
|
2024-04-25 00:31:16 +00:00
|
|
|
|
|
|
|
&:hover {
|
2024-06-30 05:04:30 +00:00
|
|
|
border-color: var( --color-progressive--hover );
|
2024-04-25 00:31:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2024-06-30 05:04:30 +00:00
|
|
|
border-color: var( --color-progressive--active );
|
2024-04-25 00:31:16 +00:00
|
|
|
}
|
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 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-07-10 17:59:03 +00:00
|
|
|
#skin-client-prefs-citizen-feature-custom-font-size {
|
|
|
|
.citizen-client-prefs-radio__label {
|
|
|
|
font-size: var( --font-size-medium );
|
|
|
|
|
|
|
|
&[ for='skin-client-pref-citizen-feature-custom-font-size-value-small' ] {
|
|
|
|
font-size: var( --font-size-small );
|
|
|
|
}
|
|
|
|
|
|
|
|
&[ for='skin-client-pref-citizen-feature-custom-font-size-value-large' ] {
|
|
|
|
font-size: var( --font-size-large );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 19:45:24 +00:00
|
|
|
#skin-client-prefs-citizen-feature-pure-black {
|
|
|
|
display: none;
|
|
|
|
|
2024-04-25 21:41:22 +00:00
|
|
|
form {
|
|
|
|
grid-template-columns: repeat( 2, 1fr );
|
|
|
|
}
|
|
|
|
|
2024-04-25 19:45:24 +00:00
|
|
|
// 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-07-10 17:59:03 +00:00
|
|
|
#skin-client-prefs-citizen-feature-autohide-navigation {
|
|
|
|
display: none;
|
2024-04-25 21:03:23 +00:00
|
|
|
|
2024-07-10 17:59:03 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-04-25 21:03:23 +00:00
|
|
|
|
2024-07-10 17:59:03 +00:00
|
|
|
form {
|
|
|
|
grid-template-columns: repeat( 2, 1fr );
|
2024-04-25 21:03:23 +00:00
|
|
|
}
|
|
|
|
}
|