2024-08-20 15:57:58 +02:00
|
|
|
.dropdown {
|
2024-10-30 19:20:43 +01:00
|
|
|
label {
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
display: block;
|
|
|
|
|
color: var(--codex-color);
|
|
|
|
|
}
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
> div {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2024-08-28 10:03:09 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
ul {
|
|
|
|
|
position: absolute;
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
background-color: var(
|
|
|
|
|
--codex-dropdown-panel-background,
|
|
|
|
|
var(--codex-background-secondary)
|
|
|
|
|
);
|
|
|
|
|
border: var(--codex-dropdown-border, 1px solid var(--codex-border-color));
|
|
|
|
|
border-radius: var(--codex-border-radius);
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(-3rem);
|
|
|
|
|
transition:
|
|
|
|
|
transform 0.35s,
|
|
|
|
|
opacity 0.15s,
|
|
|
|
|
z-index 0.35s;
|
|
|
|
|
max-height: 20rem;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
z-index: -1;
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
&[aria-expanded] {
|
|
|
|
|
transform: translateY(0rem);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
li {
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
border-radius: var(--codex-border-radius);
|
|
|
|
|
transition: background-color 0.35s;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.75rem;
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
&:hover {
|
|
|
|
|
background-color: var(
|
|
|
|
|
--codex-dropdown-option-background-hover,
|
|
|
|
|
var(--codex-background-light)
|
|
|
|
|
);
|
|
|
|
|
}
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
span {
|
|
|
|
|
display: block;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
span + span {
|
|
|
|
|
mix-blend-mode: difference;
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
.input {
|
|
|
|
|
position: relative;
|
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.35355 4.06066C8.15829 3.8654 7.84171 3.8654 7.64645 4.06066L5.35355 6.35355C5.15829 6.54882 4.84171 6.54882 4.64645 6.35355C4.45118 6.15829 4.45118 5.84171 4.64645 5.64645L6.93934 3.35356C7.52513 2.76777 8.47487 2.76777 9.06066 3.35355L11.3536 5.64645C11.5488 5.84171 11.5488 6.15829 11.3536 6.35355C11.1583 6.54882 10.8417 6.54882 10.6464 6.35355L8.35355 4.06066Z' fill='%236b7280'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.35355 11.9393C8.15829 12.1346 7.84171 12.1346 7.64645 11.9393L5.35355 9.64645C5.15829 9.45119 4.84171 9.45119 4.64645 9.64645C4.45118 9.84171 4.45118 10.1583 4.64645 10.3536L6.93934 12.6464C7.52513 13.2322 8.47487 13.2322 9.06066 12.6464L11.3536 10.3536C11.5488 10.1583 11.5488 9.84171 11.3536 9.64645C11.1583 9.45119 10.8417 9.45119 10.6464 9.64645L8.35355 11.9393Z' fill='%236b7280'/%3E%3C/svg%3E%0A");
|
|
|
|
|
background-position: right 0.5rem center;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 1.25em 1.25em;
|
2024-08-20 15:57:58 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
&:focus {
|
|
|
|
|
z-index: 11;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-29 18:12:26 +02:00
|
|
|
|
2024-10-30 19:20:43 +01:00
|
|
|
p {
|
|
|
|
|
padding: 0.75rem 0.25rem;
|
|
|
|
|
}
|
2024-08-29 18:12:26 +02:00
|
|
|
}
|