Files
dashboards/apps/business/src/components/MultiSelectDropdown.module.css
T
Alireza HassaniandCursor c4e846564e Add roll-call Start/Stop UX to business and customer dashboards.
Owners/admins can run timed work days, manage tasks in a modal, and stop from the FAB or row control.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 13:21:07 +03:30

194 lines
3.4 KiB
CSS

.wrapper {
position: relative;
}
.trigger {
width: 100%;
min-height: var(--field-height);
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: var(--field-padding-y) var(--field-padding-x);
font-size: var(--field-font-size);
font-family: inherit;
color: var(--text-primary);
text-align: start;
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;
}
.trigger:hover:not(:disabled) {
border-color: rgba(var(--primary-dark-rgb) / 0.35);
}
.triggerOpen,
.trigger:focus-visible {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(var(--primary-dark-rgb) / 0.12);
outline: none;
}
.trigger:disabled {
opacity: 0.65;
cursor: not-allowed;
}
.triggerPlaceholder .triggerText {
color: var(--text-muted);
}
.triggerText {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.chevron {
flex-shrink: 0;
color: var(--text-muted);
transition: transform 0.2s ease;
}
.chevronOpen {
transform: rotate(180deg);
}
.triggerSearchIcon {
flex-shrink: 0;
color: var(--text-muted);
}
.dropdown {
position: fixed;
z-index: 1200;
display: flex;
flex-direction: column;
overflow: hidden;
isolation: isolate;
background: var(--toast-bg, rgba(255, 255, 255, 0.94));
border: 1px solid var(--glass-border);
border-radius: var(--radius-sm);
box-shadow: var(--glass-shadow);
animation: menuIn 0.16s ease;
}
.dropdown::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
border-radius: inherit;
pointer-events: none;
backdrop-filter: blur(var(--blur-glass, 16px)) saturate(1.8);
-webkit-backdrop-filter: blur(var(--blur-glass, 16px)) saturate(1.8);
}
@keyframes menuIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.searchWrap {
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
flex-shrink: 0;
}
.searchIcon {
flex-shrink: 0;
color: var(--text-muted);
}
.searchInput {
width: 100%;
min-width: 0;
padding: 0;
font-size: 13px;
font-family: inherit;
color: var(--text-primary);
background: transparent;
border: none;
outline: none;
}
.searchInput::placeholder {
color: var(--text-muted);
}
.optionsList {
flex: 1;
min-height: 0;
overflow-y: auto;
margin: 0;
padding: 6px;
list-style: none;
}
.option {
width: 100%;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
font-size: 13px;
color: var(--text-primary);
text-align: left;
border-radius: 8px;
transition: background 0.15s;
}
.option:hover {
background: rgba(var(--primary-dark-rgb) / 0.08);
}
.optionSelected {
color: var(--primary);
font-weight: 500;
}
.check {
width: 16px;
height: 16px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border: 1.5px solid rgba(148, 163, 184, 0.55);
border-radius: 4px;
color: white;
background: var(--card-media-bg);
}
.checkSelected {
border-color: var(--primary);
background: var(--primary);
}
.empty {
padding: 10px 12px;
font-size: 13px;
color: var(--text-muted);
text-align: center;
}
.measureText {
position: absolute;
visibility: hidden;
height: 0;
overflow: hidden;
white-space: nowrap;
pointer-events: none;
}