ads-marketing/frontend/src/styles/MultiSelect.module.css

70 lines
1.2 KiB
CSS

.wrapper {
position: relative;
min-width: 180px;
}
.control {
display: flex;
align-items: center;
justify-content: space-between;
background: #f8fafc;
border: 1.5px solid #c7d2fe;
border-radius: 8px;
padding: 10px 12px;
font-size: 16px;
cursor: pointer;
transition: border 0.2s;
min-height: 40px;
}
.control:focus, .control:active {
border-color: #6366f1;
}
.disabled {
background: #f3f4f6;
color: #b3b3b3;
cursor: not-allowed;
}
.value {
flex: 1;
white-space: pre-wrap;
overflow: hidden;
text-overflow: ellipsis;
}
.placeholder {
color: #9ca3af;
}
.arrow {
margin-left: 8px;
font-size: 14px;
color: #6366f1;
}
.dropdown {
position: absolute;
left: 0;
right: 0;
top: calc(100% + 4px);
background: #fff;
border: 1.5px solid #c7d2fe;
border-radius: 8px;
box-shadow: 0 4px 24px 0 rgba(99,102,241,0.10);
z-index: 10;
max-height: 220px;
overflow-y: auto;
padding: 6px 0;
}
.option {
padding: 8px 16px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
color: #374151;
transition: background 0.15s;
}
.option:hover {
background: #f3f4f6;
}
.selected {
background: #e0e7ff;
color: #3730a3;
}