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 {
|
2021-05-10 16:00:04 +00:00
|
|
|
box-sizing: content-box;
|
2022-05-10 17:39:58 +00:00
|
|
|
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-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 {
|
|
|
|
padding: 20px var( --padding-page ) 0;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
margin: 0;
|
|
|
|
font-size: @ui-menu-header;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: unify the dropdown menu style somewhere
|
|
|
|
&-panel {
|
|
|
|
position: absolute;
|
|
|
|
top: var( --height-header );
|
|
|
|
right: var( --padding-page );
|
|
|
|
left: var( --padding-page );
|
2021-07-25 23:16:05 +00:00
|
|
|
.citizen-card;
|
2022-05-02 02:36:14 +00:00
|
|
|
.citizen-card-hide( 100% 0 );
|
|
|
|
.citizen-card-transition();
|
|
|
|
|
|
|
|
&.citizen-pref-panel--active {
|
|
|
|
.citizen-card-show;
|
|
|
|
}
|
2021-04-27 16:57:54 +00:00
|
|
|
|
|
|
|
fieldset {
|
|
|
|
padding: 10px var( --padding-page );
|
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
appearance: none;
|
|
|
|
font-size: @ui-menu-text;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2022-05-02 02:36:14 +00:00
|
|
|
|
|
|
|
> * {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
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-04-26 02:27:52 +00:00
|
|
|
background: @color-surface-0-dark;
|
2021-04-27 16:57:54 +00:00
|
|
|
color: @dark-color-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fieldset {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Let label be the radio button
|
|
|
|
input {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
+ label {
|
|
|
|
border-color: var( --color-primary );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-resetbutton {
|
|
|
|
width: 100%;
|
|
|
|
padding: 10px 20px;
|
|
|
|
border: 0;
|
|
|
|
margin-top: 10px;
|
|
|
|
appearance: none;
|
|
|
|
background: var( --color-destructive );
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
|
2021-04-27 16:57:54 +00:00
|
|
|
color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: @ui-menu-text;
|
|
|
|
font-weight: 450;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var( --color-destructive--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var( --color-destructive--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-pref {
|
|
|
|
&-item {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 4px 0;
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
letter-spacing: 0.75px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-theme {
|
|
|
|
&-option {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 10px 20px;
|
|
|
|
border: 2px solid var( --border-color-base );
|
|
|
|
margin: 4px;
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--medium );
|
2021-04-27 16:57:54 +00:00
|
|
|
cursor: pointer;
|
|
|
|
font-weight: 500;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: var( --color-primary--hover );
|
2022-04-24 19:24:09 +00:00
|
|
|
box-shadow: var( --box-shadow-card );
|
2021-04-27 16:57:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
border-color: var( --color-primary--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
#citizen-pref {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&-panel {
|
|
|
|
right: 0;
|
|
|
|
left: unset;
|
|
|
|
min-width: 250px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-04 17:27:47 +00:00
|
|
|
|
|
|
|
@media ( hover: hover ) {
|
2022-05-10 17:39:58 +00:00
|
|
|
.citizen-pref:hover .citizen-pref__button:after {
|
2021-05-04 17:27:47 +00:00
|
|
|
transform: rotate3d( 0, 0, 1, 90deg );
|
|
|
|
}
|
|
|
|
}
|