2024-02-05 14:32:50 +00:00
|
|
|
.autocomplete__wrapper {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
height: 40px;
|
|
|
|
flex-direction: row;
|
|
|
|
border-radius: 24px;
|
|
|
|
padding: 0 16px;
|
2024-02-13 10:07:29 +00:00
|
|
|
border: 1px solid var(--color-tint-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__wrapper:focus-within {
|
2024-02-05 14:32:50 +00:00
|
|
|
background-color: var(--color-tint-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__input {
|
|
|
|
position: relative;
|
|
|
|
padding-left: 20px;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
border-radius: 4px;
|
|
|
|
border: none;
|
|
|
|
background-color: var(--color-background);
|
|
|
|
font-family: var(--font-body);
|
|
|
|
font-size: 14px;
|
|
|
|
background-color: none;
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__input:disabled {
|
|
|
|
/* background-color: var(--color-tint-1); */
|
|
|
|
color: var(--color-tint-5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__input::placeholder {
|
|
|
|
color: var(--color-tint-5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__input:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
color: var(--color-tint-5);
|
|
|
|
left: 12px;
|
|
|
|
z-index: 2;
|
|
|
|
pointer-events: none;
|
|
|
|
transition: color 0.12s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__cancel {
|
2024-02-05 20:46:07 +00:00
|
|
|
display: none;
|
2024-02-05 14:32:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__wrapper:focus-within .autocomplete__cancel {
|
2024-02-05 20:46:07 +00:00
|
|
|
display: flex;
|
2024-02-05 14:32:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__cancel {
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 12px;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
z-index: 2;
|
|
|
|
border: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
height: 24px;
|
|
|
|
min-width: 24px;
|
|
|
|
line-height: 26px;
|
|
|
|
color: var(--color-tint-6);
|
|
|
|
background-color: var(--color-tint-2);
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__item__icon {
|
2024-02-05 20:46:07 +00:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2024-02-05 14:32:50 +00:00
|
|
|
flex: 0 0 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__group {
|
2024-02-05 20:46:07 +00:00
|
|
|
font-size: 12px;
|
|
|
|
padding-left: 8px;
|
|
|
|
font-weight: 500;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
position: relative;
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
height: 40px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
2024-02-05 14:32:50 +00:00
|
|
|
color: var(--color-text-secondary);
|
|
|
|
text-transform: uppercase;
|
2024-02-05 20:46:07 +00:00
|
|
|
--bg: transparent;
|
2024-02-05 14:32:50 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__wrapper:focus-within .autocomplete__icon {
|
|
|
|
color: var(--color-text);
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__item {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
height: 2.5rem;
|
|
|
|
cursor: default;
|
|
|
|
scroll-margin-top: 0.25rem;
|
|
|
|
scroll-margin-bottom: 0.25rem;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
padding-left: 1.75rem;
|
|
|
|
padding-right: 1.75rem;
|
|
|
|
color: hsl(204 10% 10%);
|
|
|
|
outline: 2px solid transparent;
|
|
|
|
outline-offset: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__item [data-user-value] {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__popover {
|
2024-02-05 20:46:07 +00:00
|
|
|
margin-top: 4px;
|
2024-02-05 14:32:50 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: 50;
|
2024-02-05 20:46:07 +00:00
|
|
|
min-width: 240px;
|
|
|
|
font-size: 14px;
|
2024-02-05 14:32:50 +00:00
|
|
|
display: flex;
|
|
|
|
max-height: min(var(--popover-available-height, 300px), 300px);
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: auto;
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: hsl(204 20% 88%);
|
|
|
|
background-color: hsl(204 20% 100%);
|
|
|
|
padding: 0.5rem;
|
|
|
|
color: hsl(204 10% 10%);
|
|
|
|
outline: 2px solid transparent;
|
|
|
|
outline-offset: 2px;
|
|
|
|
box-shadow:
|
2024-02-05 20:46:07 +00:00
|
|
|
0 10px 14px -3px rgb(0 0 0 / 0.1),
|
2024-02-05 14:32:50 +00:00
|
|
|
0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
:is([data-theme='dark'] .autocomplete__popover) {
|
2024-02-05 14:32:50 +00:00
|
|
|
border-color: hsl(204 3% 26%);
|
|
|
|
background-color: hsl(204 3% 18%);
|
|
|
|
color: hsl(204 20% 100%);
|
|
|
|
box-shadow:
|
2024-02-05 20:46:07 +00:00
|
|
|
0 10px 14px -3px rgb(0 0 0 / 0.25),
|
2024-02-05 14:32:50 +00:00
|
|
|
0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
.autocomplete__empty {
|
|
|
|
padding: 0px 8px;
|
|
|
|
}
|
|
|
|
|
2024-02-05 14:32:50 +00:00
|
|
|
.autocomplete__item {
|
2024-02-05 20:46:07 +00:00
|
|
|
position: relative;
|
|
|
|
padding: 0px 8px;
|
2024-02-05 14:32:50 +00:00
|
|
|
display: flex;
|
|
|
|
cursor: pointer;
|
|
|
|
align-items: center;
|
2024-02-05 20:46:07 +00:00
|
|
|
justify-content: flex-start;
|
|
|
|
color: var(--color-text);
|
|
|
|
--bg: transparent;
|
|
|
|
height: 32px;
|
|
|
|
flex-grow: 2;
|
|
|
|
font-size: 14px;
|
2024-02-05 14:32:50 +00:00
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
.autocomplete__item::after {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
inset: 1px 0px;
|
|
|
|
background-color: var(--bg);
|
|
|
|
border-radius: var(--border-radius-menu);
|
|
|
|
transition: background-color 0.12s ease-in-out;
|
|
|
|
transition-delay: 0s;
|
2024-02-05 14:32:50 +00:00
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
.autocomplete__item[data-active-item]::after {
|
|
|
|
background-color: var(--color-tint-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (hover: hover) {
|
|
|
|
.autocomplete__item:hover {
|
|
|
|
color: var(--color-text);
|
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__item:hover::after {
|
|
|
|
--bg: var(--color-tint-1);
|
|
|
|
}
|
2024-02-05 14:32:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete__item:active,
|
|
|
|
.autocomplete__item[data-active] {
|
|
|
|
padding-top: 9px;
|
|
|
|
padding-bottom: 7px;
|
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
:is([data-theme='dark'] .autocomplete__item) {
|
2024-02-05 14:32:50 +00:00
|
|
|
color: hsl(204 20% 100%);
|
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
:is([data-theme='dark'] .autocomplete__item__icon path) {
|
2024-02-05 14:32:50 +00:00
|
|
|
fill: hsl(204 20% 100%);
|
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
:is([data-theme='dark'] .autocomplete__item:hover) {
|
2024-02-05 14:32:50 +00:00
|
|
|
background-color: hsl(204 100% 40% / 0.25);
|
|
|
|
}
|
|
|
|
|
2024-02-05 20:46:07 +00:00
|
|
|
:is([data-theme='dark'] .autocomplete__item)[data-active-item] {
|
2024-02-05 14:32:50 +00:00
|
|
|
background-color: hsl(204 100% 40%);
|
|
|
|
}
|