2021-05-06 09:06:17 +00:00
|
|
|
@import "~theme/globals";
|
|
|
|
|
|
|
|
:host {
|
2021-06-15 15:12:16 +00:00
|
|
|
max-width: 100%;
|
|
|
|
|
2021-05-06 09:06:17 +00:00
|
|
|
ion-select,
|
|
|
|
ion-button {
|
|
|
|
--icon-margin: 0 8px;
|
|
|
|
--background: var(--core-combobox-background);
|
|
|
|
--background-hover: #000000;
|
|
|
|
--background-activated: #000000;
|
|
|
|
--background-focused: #000000;
|
|
|
|
--background-hover-opacity: .04;
|
|
|
|
|
|
|
|
--color: var(--core-combobox-color);
|
|
|
|
--color-activated: var(--core-combobox-color);
|
|
|
|
--color-focused: currentcolor;
|
|
|
|
--color-hover: currentcolor;
|
|
|
|
|
2021-07-07 13:24:16 +00:00
|
|
|
--border-color: var(--core-combobox-border-color);
|
|
|
|
--border-style: solid;
|
|
|
|
--border-width: var(--core-combobox-border-all-width);
|
|
|
|
|
|
|
|
--box-shadow: var(--core-combobox-box-shadow);
|
|
|
|
|
2021-05-06 09:06:17 +00:00
|
|
|
--padding-top: 10px;
|
|
|
|
--padding-end: 10px;
|
|
|
|
--padding-bottom: 10px;
|
|
|
|
--padding-start: 16px;
|
|
|
|
|
2021-05-11 08:04:32 +00:00
|
|
|
&.md {
|
|
|
|
--background-activated-opacity: 0;
|
|
|
|
--background-focused-opacity: .12;
|
|
|
|
}
|
2021-05-06 09:06:17 +00:00
|
|
|
|
2021-05-11 08:04:32 +00:00
|
|
|
&.ios {
|
|
|
|
--background-activated-opacity: .12;
|
|
|
|
--background-focused-opacity: .15;
|
|
|
|
}
|
|
|
|
}
|
2021-05-06 09:06:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-select,
|
|
|
|
ion-button {
|
|
|
|
background: var(--background);
|
|
|
|
color: var(--color);
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
min-height: 25px;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 8px;
|
2021-07-07 13:24:16 +00:00
|
|
|
box-shadow: var(--box-shadow);
|
2021-05-11 08:04:32 +00:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:focus-within {
|
2021-05-13 14:39:16 +00:00
|
|
|
@include core-focus-style();
|
2021-05-11 08:04:32 +00:00
|
|
|
}
|
2021-05-06 09:06:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-select {
|
2021-07-07 13:24:16 +00:00
|
|
|
border-color: var(--border-color);
|
|
|
|
border-style: var(--border-style);
|
|
|
|
border-width: var(--border-width);
|
|
|
|
border-radius: var(--core-combobox-radius);
|
2021-06-02 10:44:34 +00:00
|
|
|
|
2021-05-06 09:06:17 +00:00
|
|
|
&::part(icon) {
|
|
|
|
margin: var(--icon-margin);
|
2021-05-28 14:37:33 +00:00
|
|
|
opacity: 1;
|
2021-05-06 09:06:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
@include button-state();
|
|
|
|
transition: var(--transition);
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover::after {
|
|
|
|
color: var(--color-hover);
|
|
|
|
background: var(--background-hover);
|
|
|
|
opacity: var(--background-hover-opacity);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus::after,
|
|
|
|
&:focus-within::after {
|
|
|
|
color: var(--color-focused);
|
|
|
|
background: var(--background-focused);
|
|
|
|
opacity: var(--background-focused-opacity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-button {
|
2021-07-07 13:24:16 +00:00
|
|
|
border-radius: var(--core-combobox-radius);
|
2021-06-04 13:56:57 +00:00
|
|
|
|
2021-05-06 09:06:17 +00:00
|
|
|
flex: 1;
|
|
|
|
min-height: 45px;
|
|
|
|
|
|
|
|
&::part(native) {
|
|
|
|
text-transform: none;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 16px;
|
2021-05-31 10:28:58 +00:00
|
|
|
line-height: 20px;
|
2021-08-03 07:43:25 +00:00
|
|
|
border-radius: 0;
|
2021-05-06 09:06:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.select-text {
|
|
|
|
margin-inline-end: auto;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
.sr-only {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
padding: 0;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
white-space: nowrap;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.ion-activated {
|
|
|
|
--color: var(--color-activated);
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-icon {
|
|
|
|
margin: var(--icon-margin);
|
|
|
|
}
|
|
|
|
|
|
|
|
.select-icon {
|
|
|
|
margin: var(--icon-margin);
|
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.select-icon-inner {
|
|
|
|
left: 5px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -2px;
|
|
|
|
position: absolute;
|
|
|
|
width: 0px;
|
|
|
|
height: 0px;
|
|
|
|
color: currentcolor;
|
|
|
|
pointer-events: none;
|
|
|
|
border-top: 5px solid;
|
|
|
|
border-right: 5px solid transparent;
|
|
|
|
border-left: 5px solid transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|