2021-04-27 16:57:54 +00:00
|
|
|
@import '../variables.less';
|
|
|
|
@import '../mixins.less';
|
|
|
|
|
2022-05-10 17:39:58 +00:00
|
|
|
.citizen-pref {
|
|
|
|
&__button {
|
|
|
|
padding: 0;
|
2021-04-27 16:57:54 +00:00
|
|
|
border: 0;
|
|
|
|
appearance: none;
|
2022-05-10 17:39:58 +00:00
|
|
|
background: transparent;
|
|
|
|
cursor: pointer;
|
2021-04-27 16:57:54 +00:00
|
|
|
|
2022-05-10 17:39:58 +00:00
|
|
|
&[ 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;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__value {
|
|
|
|
color: var( --color-base--emphasized );
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2022-05-11 01:45:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-theme {
|
|
|
|
&-option {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
border: 2px solid var( --border-color-base );
|
|
|
|
border-radius: var( --border-radius--medium );
|
|
|
|
cursor: pointer;
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2022-05-11 01:45:30 +00:00
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: var( --color-primary--hover );
|
|
|
|
box-shadow: var( --box-shadow-card );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
border-color: var( --color-primary--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// We only show min and max value
|
|
|
|
&__tickmarks {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
color: var( --color-base--subtle );
|
2022-05-11 02:22:31 +00:00
|
|
|
font-size: 0.8125rem;
|
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 {
|
2022-05-11 01:45:30 +00:00
|
|
|
padding: 1.25rem 1.25rem 0;
|
2022-05-19 01:37:27 +00:00
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
font-size: 1rem;
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-semibold );
|
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-card-transition();
|
|
|
|
|
|
|
|
&.citizen-pref-panel--active {
|
|
|
|
.citizen-card-show;
|
|
|
|
}
|
2021-04-27 16:57:54 +00:00
|
|
|
|
|
|
|
fieldset {
|
2022-05-11 01:45:30 +00:00
|
|
|
padding: 0 1.25rem;
|
2021-04-27 16:57:54 +00:00
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
appearance: none;
|
2022-05-11 01:45:30 +00:00
|
|
|
font-size: 0.875rem;
|
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;
|
|
|
|
margin: 1rem 0;
|
|
|
|
gap: 1.25rem;
|
|
|
|
}
|
|
|
|
|
2021-04-27 16:57:54 +00:00
|
|
|
&-theme {
|
|
|
|
&-option {
|
|
|
|
&-light {
|
2022-04-26 02:27:52 +00:00
|
|
|
background: @color-surface-0;
|
2021-04-27 16:57:54 +00:00
|
|
|
color: @color-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-dark {
|
2022-12-14 19:06:06 +00:00
|
|
|
background: ~'hsl( var( --color-primary__h ) 20% 10% )';
|
|
|
|
color: ~'hsl( var( --color-primary__h ) 10% 75% )';
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fieldset {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
2022-05-11 01:45:30 +00:00
|
|
|
margin-top: 0.25rem;
|
|
|
|
gap: 0.5rem;
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Let label be the radio button
|
|
|
|
input {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
+ label {
|
|
|
|
border-color: var( --color-primary );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-resetbutton {
|
|
|
|
width: 100%;
|
2022-05-11 01:45:30 +00:00
|
|
|
padding: 0.625rem 1.25rem;
|
2021-04-27 16:57:54 +00:00
|
|
|
border: 0;
|
2022-09-28 21:02:56 +00:00
|
|
|
border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
|
2021-04-27 16:57:54 +00:00
|
|
|
appearance: none;
|
|
|
|
background: var( --color-destructive );
|
|
|
|
color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
font-family: inherit;
|
2022-05-11 01:45:30 +00:00
|
|
|
font-size: 0.875rem;
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2021-04-27 16:57:54 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var( --color-destructive--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var( --color-destructive--active );
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 16:26:20 +00:00
|
|
|
|
2023-05-23 16:25:14 +00:00
|
|
|
&-toggle {
|
|
|
|
> span {
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
}
|
2021-04-27 16:57:54 +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 );
|
|
|
|
}
|
|
|
|
}
|