2018-02-06 01:25:39 +08:00
|
|
|
.select-kit {
|
2017-11-21 18:53:09 +08:00
|
|
|
&.multi-select {
|
2017-11-10 02:57:53 +08:00
|
|
|
width: 300px;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--secondary);
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-filter {
|
2021-08-23 16:44:19 +08:00
|
|
|
& + .selected-content,
|
|
|
|
& + .select-kit-collection {
|
|
|
|
border-top: 1px solid var(--primary-low);
|
|
|
|
}
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
|
2021-08-23 16:44:19 +08:00
|
|
|
.select-kit-row {
|
|
|
|
min-height: 1px;
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
2017-11-21 18:53:09 +08:00
|
|
|
.multi-select-header {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
|
|
|
border-color: var(--primary-low-mid);
|
|
|
|
color: var(--primary-medium);
|
2019-10-23 04:32:24 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2019-10-23 04:32:24 +08:00
|
|
|
}
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-23 16:44:19 +08:00
|
|
|
.selected-content {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
padding: 0;
|
|
|
|
justify-content: flex-start;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
padding: 0.25em 0.25em 0 0.25em;
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2021-08-23 16:44:19 +08:00
|
|
|
.selected-choice {
|
|
|
|
margin: 0 0.25em 0.25em 0;
|
|
|
|
font-size: var(--font-down-1);
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2021-08-23 16:44:19 +08:00
|
|
|
&.selected-choice-color {
|
|
|
|
border-bottom: 2px solid transparent;
|
2021-02-04 00:45:54 +08:00
|
|
|
}
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-23 16:44:19 +08:00
|
|
|
.multi-select-header {
|
|
|
|
background: var(--secondary);
|
2023-10-23 23:36:36 +08:00
|
|
|
border-color: var(--primary-400);
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2022-06-21 02:02:05 +08:00
|
|
|
.formatted-selection {
|
2021-08-23 16:44:19 +08:00
|
|
|
margin: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
@include ellipsis;
|
2021-09-10 21:00:41 +08:00
|
|
|
display: inline-block;
|
2018-02-26 18:42:57 +08:00
|
|
|
}
|
2023-07-25 23:00:02 +08:00
|
|
|
|
|
|
|
.select-kit-header--filter {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2023-07-29 00:11:24 +08:00
|
|
|
margin: -0.35em;
|
|
|
|
margin-left: -0.25em;
|
2023-07-25 23:00:02 +08:00
|
|
|
position: relative;
|
|
|
|
.selected-choice {
|
2023-07-29 00:11:24 +08:00
|
|
|
margin: 0.125em 0.25em 0.125em 0;
|
2023-07-25 23:00:02 +08:00
|
|
|
padding: 0.2em 0.3em;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
|
|
|
|
&.selected-choice-color {
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select-kit-filter {
|
|
|
|
display: inline-flex;
|
|
|
|
flex: 1 1 30px;
|
|
|
|
width: auto;
|
|
|
|
margin-left: 0.25em;
|
|
|
|
position: static;
|
2023-07-27 02:13:39 +08:00
|
|
|
min-height: 28px;
|
2023-07-25 23:00:02 +08:00
|
|
|
&.is-expanded {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.filter-input {
|
2023-07-27 02:13:39 +08:00
|
|
|
min-height: auto;
|
2023-07-25 23:00:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-23 16:44:19 +08:00
|
|
|
}
|
2018-02-26 18:42:57 +08:00
|
|
|
|
2021-09-10 21:00:41 +08:00
|
|
|
&.is-expanded .multi-select-header,
|
2021-08-23 16:44:19 +08:00
|
|
|
.multi-select-header:focus {
|
|
|
|
@include default-focus;
|
|
|
|
}
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
}
|