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' ] {
|
2024-07-01 00:49:15 +00:00
|
|
|
background-color: var( --background-color-button-quiet--active );
|
2021-04-27 16:57:54 +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 );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: unify the dropdown menu style somewhere
|
|
|
|
&-panel {
|
2024-05-28 02:47:46 +00:00
|
|
|
.citizen-header-card( end );
|
2024-10-19 05:00:21 +00:00
|
|
|
transition-property: transform;
|
2024-10-19 05:01:18 +00:00
|
|
|
transform-origin: var( --transform-origin-offset-end ) var( --transform-origin-offset-end );
|
2022-05-02 02:36:14 +00:00
|
|
|
|
2024-05-28 02:47:46 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
|
|
|
transform-origin: var( --transform-origin-offset-start ) var( --transform-origin-offset-end );
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Somehow refactor this module to use citizen-menu__Card
|
2022-05-02 02:36:14 +00:00
|
|
|
&.citizen-pref-panel--active {
|
2024-07-09 20:44:15 +00:00
|
|
|
z-index: @z-index-dropdown;
|
2024-10-19 04:48:20 +00:00
|
|
|
transition-timing-function: var( --transition-timing-function-ease-out );
|
|
|
|
transition-duration: var( --transition-duration-medium );
|
2024-05-28 02:47:46 +00:00
|
|
|
transform: none;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2022-05-02 02:36:14 +00:00
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 21:41:22 +00:00
|
|
|
padding-bottom: var( --space-lg );
|
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-10-03 22:56:48 +00:00
|
|
|
margin: 0;
|
2024-04-25 19:45:24 +00:00
|
|
|
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 {
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 );
|
|
|
|
}
|
|
|
|
}
|