ng-implementation/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.scss

123 lines
2 KiB
SCSS
Raw Normal View History

2025-08-22 11:57:56 +02:00
@use '../../src/styles/variables';
2025-09-15 13:03:21 +02:00
:host {
2025-08-22 11:57:56 +02:00
2025-09-15 13:03:21 +02:00
.input-box {
2025-09-23 18:54:13 +02:00
width: 218px;
2025-09-02 13:58:35 +02:00
2025-09-15 13:03:21 +02:00
.d-none {
display: none;
}
2025-09-02 13:58:35 +02:00
2025-09-15 13:03:21 +02:00
i {
2025-09-02 13:58:35 +02:00
top: 10px;
2025-09-15 13:03:21 +02:00
left: 1rem;
2025-09-02 13:58:35 +02:00
2025-09-15 13:03:21 +02:00
&::before {
left: 10px;
top: 10px;
}
&.is-disabled {
color: #525668;
fill: #525668;
}
2025-09-02 13:58:35 +02:00
}
2025-09-15 13:03:21 +02:00
.search-placeholder,
.selector-button {
position: relative;
}
2025-09-02 13:58:35 +02:00
2025-09-15 13:03:21 +02:00
.search-placeholder {
top: 30px;
left: 16px;
}
2025-08-22 11:57:56 +02:00
2025-09-15 13:03:21 +02:00
.selector-button {
2025-09-15 16:09:20 +02:00
top: -60px;
left: 188px;
width: 20px;
2025-09-15 13:03:21 +02:00
}
2025-09-10 16:02:31 +02:00
2025-09-15 13:03:21 +02:00
.selected-items-counter {
2025-09-15 16:09:20 +02:00
visibility: hidden;
2025-09-15 13:03:21 +02:00
background: variables.$csc-chips-bg-color;
color: white;
border-radius: 200px;
padding: 10px;
display: inline-block;
line-height: 10px;
position: relative;
2025-09-15 16:09:20 +02:00
z-index: 11;
height: 30px;
top: -36px;
right: 65px;
2025-09-15 13:03:21 +02:00
&.is-visible {
visibility: visible;
}
}
2025-08-22 11:57:56 +02:00
2025-09-02 13:58:35 +02:00
2025-09-15 13:03:21 +02:00
input {
2025-08-22 11:57:56 +02:00
2025-09-15 13:03:21 +02:00
border-radius: 8px;
border: 1px solid #8D91A4;
background: var(--color-background-card-on-base, #FFF);
2025-08-22 11:57:56 +02:00
2025-09-15 13:03:21 +02:00
padding: 10px 40px;
2025-09-02 13:58:35 +02:00
2025-09-23 17:25:52 +02:00
width: 100%;
2025-09-15 13:03:21 +02:00
height: 42px;
2025-08-22 11:57:56 +02:00
2025-09-15 13:03:21 +02:00
overflow: hidden;
color: var(--color-text-secondary, #525668);
text-overflow: ellipsis;
font-size: var(--Font-Base, 14px);
2025-08-22 11:57:56 +02:00
2025-09-02 13:58:35 +02:00
2025-09-15 13:03:21 +02:00
.is-disabled & {
border-color: #525668;
}
2025-09-02 13:58:35 +02:00
}
2025-09-02 14:40:47 +02:00
2025-09-15 13:03:21 +02:00
.dropdown {
background: white;
padding: 1rem;
border-radius: 8px;
position: relative;
display: block;
2025-09-23 18:54:13 +02:00
z-index: 100;
2025-09-15 13:03:21 +02:00
border-top-left-radius: 0;
border-top-right-radius: 0;
2025-09-15 16:09:20 +02:00
width: 210px;
2025-09-15 13:03:21 +02:00
2025-09-23 18:54:13 +02:00
top: 42px;
left: 0;
2025-09-15 13:03:21 +02:00
border-left: 1px solid #8D91A4;
border-bottom: 1px solid #8D91A4;
border-right: 1px solid #8D91A4;
.dropdown-list {
max-height: 200px;
overflow-y: auto;
}
2025-09-02 14:40:47 +02:00
2025-09-15 13:03:21 +02:00
.dropdown-item {
padding: 4px;
cursor: pointer;
2025-09-02 14:40:47 +02:00
2025-09-15 13:03:21 +02:00
&:hover {
background: #525668;
color: white;
}
2025-09-02 14:40:47 +02:00
}
}
}
2025-09-15 13:03:21 +02:00
2025-08-22 11:57:56 +02:00
}