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

168 lines
2.8 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-26 12:30:20 +02:00
color: #1b1d27;
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 {
2025-09-24 11:06:25 +02:00
color: #8d91a4;
fill: #8d91a4;
2025-09-15 13:03:21 +02:00
}
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-26 12:30:20 +02:00
top: -52px;
2025-09-15 16:09:20 +02:00
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;
2025-09-26 12:30:20 +02:00
2025-09-15 13:03:21 +02:00
display: inline-block;
line-height: 10px;
position: relative;
2025-09-15 16:09:20 +02:00
z-index: 11;
2025-09-26 12:30:20 +02:00
top: -32px;
right: -163px;
font-size: 14px;
padding: 5px 7px;
min-width: 2.5ch;
2025-09-15 16:09:20 +02:00
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 & {
2025-09-25 16:22:43 +02:00
border-color: #8D91A4;
background: #fff;
color: #8D91A4;
2025-09-26 12:30:20 +02:00
i {
2025-09-25 16:22:43 +02:00
color: #525668;
}
2025-09-15 13:03:21 +02:00
}
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-25 16:22:43 +02:00
width: 218px;
2025-10-06 18:08:14 +02:00
top: -24px;
2025-09-23 18:54:13 +02:00
left: 0;
2025-10-06 18:08:14 +02:00
border: 1px solid #8D91A4;
box-shadow: 0 0 13px 0 rgba(37, 91, 142, 0.10);
color: var(--color-text-base, #1B1D27);
text-overflow: ellipsis;
/* Text/text-base */
font-family: var(--Fonts-Font-text, Barlow);
font-size: var(--Font-Base, 14px);
font-style: normal;
font-weight: 400;
line-height: 100%; /* 14px */
2025-09-15 13:03:21 +02:00
2025-10-06 18:08:14 +02:00
2025-09-15 13:03:21 +02:00
.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-10-06 18:08:14 +02:00
.separator{
display: flex;
width: 186px;
height: 34px;
min-height: 34px;
max-height: 34px;
padding: var(--Spacing-Spacing-20, 8px) var(--Spacing-Spacing-30, 12px);
align-items: center;
gap: var(--Spacing-Spacing-10, 4px);
border-radius: var(--Radius-list, 0);
background: #F5F5F5;
.label{
overflow: hidden;
color: var(--color-text-secondary, #525668);
leading-trim: both;
text-edge: cap;
text-overflow: ellipsis;
font-family: var(--Fonts-Font-text, Barlow);
font-size: var(--Font-Base, 14px);
font-style: italic;
font-weight: 400;
line-height: 100%; /* 14px */
}
}
2025-08-22 11:57:56 +02:00
}