mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 05:23:39 +08:00
132 lines
2.4 KiB
SCSS
132 lines
2.4 KiB
SCSS
|
.multi-combobox {
|
||
|
width: 300px;
|
||
|
background: $secondary;
|
||
|
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
||
|
|
||
|
.select-box-kit-body {
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
.select-box-kit-row {
|
||
|
margin: 5px;
|
||
|
min-height: 1px;
|
||
|
padding: 5px;
|
||
|
}
|
||
|
|
||
|
.select-box-kit-filter {
|
||
|
border-top: 1px solid $primary-low;
|
||
|
}
|
||
|
|
||
|
.select-box-kit-header {
|
||
|
background: $secondary;
|
||
|
border-bottom: 1px solid transparent;
|
||
|
|
||
|
&.is-focused {
|
||
|
border-bottom: 1px solid $primary-low;
|
||
|
box-shadow: $tertiary 0px 0px 6px 0px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.is-disabled {
|
||
|
.select-box-kit-header {
|
||
|
background: #e9e9e9;
|
||
|
border-color: #ddd;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.is-highlighted {
|
||
|
.select-box-kit-header {
|
||
|
border: 1px solid $tertiary;
|
||
|
box-shadow: $tertiary 0px 0px 6px 0px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.is-expanded {
|
||
|
.select-box-kit-wrapper {
|
||
|
display: block;
|
||
|
border: 1px solid $tertiary;
|
||
|
box-shadow: $tertiary 0px 0px 6px 0px;
|
||
|
}
|
||
|
|
||
|
.select-box-kit-header {
|
||
|
border-radius: 3px 3px 0 0;
|
||
|
}
|
||
|
|
||
|
.select-box-kit-body {
|
||
|
border-radius: 3px 3px 0 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.choices {
|
||
|
list-style: none;
|
||
|
margin: 0;
|
||
|
padding: 5px;
|
||
|
}
|
||
|
|
||
|
.choice-placeholder {
|
||
|
padding: 0 5px;
|
||
|
margin: 2px 0;
|
||
|
border: 1px solid transparent;
|
||
|
display: inline-flex;
|
||
|
flex: 1;
|
||
|
}
|
||
|
|
||
|
.filter {
|
||
|
display: inline-flex;
|
||
|
align-items: center;
|
||
|
justify-content: flex-start;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
|
||
|
.select-box-kit-filter-input, .select-box-kit-filter-input:focus {
|
||
|
border: none;
|
||
|
background: none;
|
||
|
display: inline-block;
|
||
|
width: 100%;
|
||
|
outline: none;
|
||
|
min-width: auto;
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
outline: 0;
|
||
|
border: 0;
|
||
|
-webkit-box-shadow: none;
|
||
|
box-shadow: none;
|
||
|
border-radius: 0;
|
||
|
}
|
||
|
|
||
|
.selected-name {
|
||
|
display: inline-flex;
|
||
|
align-items: center;
|
||
|
justify-content: flex-start;
|
||
|
padding: 0 5px;
|
||
|
margin: 2px 0;
|
||
|
color: $primary;
|
||
|
cursor: default;
|
||
|
border: 1px solid $primary-medium;
|
||
|
border-radius: 3px;
|
||
|
box-shadow: 0 0 2px $secondary inset, 0 1px 0 rgba(0,0,0,0.05);
|
||
|
background-clip: padding-box;
|
||
|
-webkit-touch-callout: none;
|
||
|
user-select: none;
|
||
|
background-color: $primary-low;
|
||
|
|
||
|
&:focus {
|
||
|
border-color: $primary;
|
||
|
outline: none;
|
||
|
}
|
||
|
|
||
|
.d-icon {
|
||
|
margin-right: 5px;
|
||
|
color: $primary-medium;
|
||
|
cursor: pointer;
|
||
|
font-size: 12px;
|
||
|
|
||
|
&:hover {
|
||
|
color: $primary;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|