discourse/app/assets/stylesheets/common/select-kit/multi-select.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
2.1 KiB
SCSS
Raw Normal View History

.select-kit {
&.multi-select {
2017-11-10 02:57:53 +08:00
width: 300px;
background: var(--secondary);
2017-11-10 02:57:53 +08:00
.select-kit-filter {
& + .selected-content,
& + .select-kit-collection {
border-top: 1px solid var(--primary-low);
}
2017-11-10 02:57:53 +08:00
}
.select-kit-row {
min-height: 1px;
2017-11-10 02:57:53 +08:00
}
&.is-disabled {
.multi-select-header {
background: var(--primary-low);
border-color: var(--primary-low-mid);
color: var(--primary-medium);
.d-icon {
color: var(--primary-medium);
}
2017-11-10 02:57:53 +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
.selected-choice {
margin: 0 0.25em 0.25em 0;
font-size: var(--font-down-1);
2017-11-10 02:57:53 +08:00
&.selected-choice-color {
border-bottom: 2px solid transparent;
}
2017-11-10 02:57:53 +08:00
}
}
.multi-select-header {
background: var(--secondary);
border-color: var(--primary-400);
2017-11-10 02:57:53 +08:00
.formatted-selection {
margin: 0;
cursor: pointer;
@include ellipsis;
display: inline-block;
}
.select-kit-header--filter {
display: flex;
flex-wrap: wrap;
margin: -0.35em;
margin-left: -0.25em;
position: relative;
.selected-choice {
margin: 0.125em 0.25em 0.125em 0;
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;
min-height: 28px;
&.is-expanded {
padding: 0;
}
.filter-input {
min-height: auto;
}
}
}
}
&.is-expanded .multi-select-header,
.multi-select-header:focus {
@include default-focus;
}
2017-11-10 02:57:53 +08:00
}
}