Spaces:
3SCError404
/
Paused

nexus / frontend /apps /internal /src /components /Dropdown.module.css
dushyantsingh0
Beta 1.0: Pure Backend Release (Excluding Frontend)
5eb4857
Raw History Blame Contribute Delete
2.12 kB
.container {
display: flex;
flex-direction: column;
gap: 8px;
position: relative;
z-index: 50;
}
.label {
font-size: 10px;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.15em;
padding-left: 2px;
}
.trigger {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 10px;
padding: 10px 16px;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 40px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.triggerActive {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.trigger:hover {
border-color: var(--primary-light);
background: var(--bg-card);
}
.currentValue {
font-size: 12px;
font-weight: 700;
color: var(--text-main);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.arrow {
font-size: 10px;
color: var(--text-muted);
transition: transform 0.2s;
}
.arrowOpen {
transform: rotate(180deg);
color: var(--primary);
}
.menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 100;
}
.menuInner {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 8px;
margin-top: 4px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
gap: 4px;
max-height: 250px;
overflow-y: auto;
}
.option {
padding: 10px 12px;
font-size: 12px;
font-weight: 600;
color: var(--text-main);
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
transition: all 0.1s;
}
.option:hover {
background: var(--bg-hover);
color: var(--primary);
}
.optionSelected {
background: rgba(30, 64, 175, 0.05);
color: var(--primary);
}
.check {
font-size: 10px;
color: var(--primary);
}
/* Custom scrollbar for menu */
.menuInner::-webkit-scrollbar {
width: 4px;
}
.menuInner::-webkit-scrollbar-thumb {
background: var(--border-subtle);
border-radius: 10px;
}