Spaces:
Runtime error
Runtime error
File size: 2,501 Bytes
20256e7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | .custom-select {
position: relative;
width: 100%;
}
.custom-select-trigger {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 0.75rem 1rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-color);
border-radius: var(--radius-md, 10px);
font-size: 0.9rem;
color: var(--text-primary);
font-family: inherit;
cursor: pointer;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
text-align: left;
}
.custom-select-trigger:focus-visible,
.custom-select-trigger.open {
border-color: var(--accent-1, #6366f1);
background: rgba(99, 102, 241, 0.05);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.custom-select-placeholder {
color: var(--text-muted);
}
.custom-select-chevron {
color: var(--text-muted);
flex-shrink: 0;
transition: transform 0.2s;
}
.custom-select-chevron.rotated {
transform: rotate(180deg);
}
.custom-select-menu {
position: absolute;
top: calc(100% + 4px);
left: 0;
right: 0;
max-height: 260px;
overflow-y: auto;
background: var(--surface-2-color, #181818);
border: 1px solid var(--border-color);
border-radius: var(--radius-md, 10px);
padding: 0.35rem 0;
margin: 0;
list-style: none;
z-index: 50;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.custom-select-menu::-webkit-scrollbar {
width: 6px;
}
.custom-select-menu::-webkit-scrollbar-track {
background: transparent;
}
.custom-select-menu::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
.custom-select-group {
padding: 0.5rem 1rem 0.3rem;
font-size: 0.72rem;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: default;
}
.custom-select-option {
padding: 0.55rem 1rem;
font-size: 0.88rem;
color: var(--text-secondary);
cursor: pointer;
transition: background 0.1s, color 0.1s;
}
.custom-select-option.focused {
background: rgba(99, 102, 241, 0.12);
color: var(--text-primary);
}
.custom-select-option.selected {
color: var(--accent-1, #6366f1);
font-weight: 600;
}
.custom-select-option.selected.focused {
background: rgba(99, 102, 241, 0.15);
}
@media (max-width: 480px) {
.custom-select-trigger {
min-height: 44px;
padding-top: 0.85rem;
padding-bottom: 0.85rem;
}
}
|