255 lines
4.2 KiB
CSS
255 lines
4.2 KiB
CSS
.wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.inputWrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: var(--field-height);
|
|
padding: 0 var(--field-padding-x);
|
|
background: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.inputWrapOpen,
|
|
.inputWrap:focus-within {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
|
|
}
|
|
|
|
.searchIcon {
|
|
flex-shrink: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.input {
|
|
flex: 1;
|
|
padding: var(--field-padding-y) 0;
|
|
font-size: var(--field-font-size);
|
|
line-height: 1.4;
|
|
color: var(--text-primary);
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
min-width: 0;
|
|
font-family: var(--font-ui);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: var(--text-muted);
|
|
font-family: var(--font-ui);
|
|
}
|
|
|
|
.clearBtn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
color: var(--text-muted);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.clearBtn:hover {
|
|
background: rgba(148, 163, 184, 0.2);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.chevron {
|
|
flex-shrink: 0;
|
|
color: var(--text-muted);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.chevronOpen {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.dropdown {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 6px;
|
|
background: var(--elevated-surface);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: 0 10px 28px rgba(31, 38, 135, 0.14);
|
|
animation: dropdownIn 0.15s ease;
|
|
}
|
|
|
|
.dropdownOverlay {
|
|
position: absolute;
|
|
top: calc(100% + 6px);
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 120;
|
|
max-height: min(320px, 50vh);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.dropdownInFlow {
|
|
position: static;
|
|
margin-top: 6px;
|
|
max-height: min(280px, 40vh);
|
|
overflow-y: auto;
|
|
z-index: auto;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.spin {
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes dropdownIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-4px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.optionItem {
|
|
min-width: 0;
|
|
}
|
|
|
|
.optionItemGroupEnd {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.treeGutters {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.treeGutter {
|
|
position: relative;
|
|
width: 28px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.treeGutterContinue::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
inset-inline-start: 0;
|
|
border-inline-start: 1px solid rgba(148, 163, 184, 0.55);
|
|
}
|
|
|
|
.treeGutterBranch::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
inset-inline-start: 0;
|
|
border-inline-start: 1px solid rgba(148, 163, 184, 0.55);
|
|
}
|
|
|
|
.treeGutterBranch::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
inset-inline-start: 0;
|
|
width: 22px;
|
|
height: 1px;
|
|
background: rgba(148, 163, 184, 0.55);
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.treeGutterBranchLast::before {
|
|
bottom: 50%;
|
|
}
|
|
|
|
.option {
|
|
width: 100%;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
gap: 0;
|
|
padding: 8px 10px;
|
|
font-size: var(--field-font-size);
|
|
font-family: var(--font-ui);
|
|
text-align: start;
|
|
color: var(--text-primary);
|
|
border-radius: 8px;
|
|
transition: background 0.15s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.optionChild {
|
|
padding-inline-end: 4px;
|
|
}
|
|
|
|
.optionBody {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.optionParent {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.option:hover {
|
|
background: rgba(var(--primary-rgb) / 0.08);
|
|
}
|
|
|
|
.optionSelected {
|
|
background: rgba(var(--primary-rgb) / 0.12);
|
|
color: var(--primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.optionParent.optionSelected {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.optionEn {
|
|
font-weight: 500;
|
|
text-align: start;
|
|
direction: ltr;
|
|
unicode-bidi: isolate;
|
|
}
|
|
|
|
.optionEn[dir='rtl'] {
|
|
text-align: right;
|
|
}
|
|
|
|
.optionSep {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.optionFa {
|
|
font-family: var(--font-ui);
|
|
font-weight: 500;
|
|
direction: rtl;
|
|
text-align: right;
|
|
}
|
|
|
|
.noResults {
|
|
padding: 12px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|