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

148 lines
3.1 KiB
SCSS

.select-box-kit {
&.multi-combo-box {
width: 300px;
background: $secondary;
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
border-radius: 0;
.select-box-kit-body {
width: 100%;
}
.select-box-kit-row {
margin: 5px;
min-height: 1px;
padding: 5px;
border-radius: 0;
}
.select-box-kit-filter {
border: 0;
}
.multi-combo-box-header {
background: $secondary;
border: 0;
border-bottom: 1px solid transparent;
&.is-focused {
box-shadow: $tertiary 0px 0px 6px 0px;
border-radius: 0;
}
}
&.is-disabled {
.multi-combo-box-header {
background: #e9e9e9;
border-color: #ddd;
}
}
&.is-highlighted {
.multi-combo-box-header {
border-radius: 0;
border-bottom: 1px solid transparent;
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;
border-radius: 0;
}
.multi-combo-box-header {
border-bottom: 1px solid $primary-low;
border-radius: 0;
box-shadow: none;
}
.select-box-kit-body {
border-radius: 0;
}
}
.choices {
list-style: none;
margin: 0;
padding: 5px;
flex: 1;
min-height: 36px;
box-sizing: border-box;
li {
display: inline-flex;
box-sizing: border-box;
padding: 0 5px;
margin-bottom: 4px;
border: 1px solid transparent;
}
.filter {
align-items: center;
justify-content: flex-start;
white-space: nowrap;
min-width: 50px;
padding: 0;
.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 {
align-items: center;
justify-content: flex-start;
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;
cursor: pointer;
outline: none;
padding: 0;
line-height: normal;
.name {
padding: 0 5px;
line-height: 22px
}
&.is-highlighted {
border-color: $danger;
}
.d-icon {
margin-right: 5px;
color: $primary-medium;
cursor: pointer;
font-size: 12px;
&:hover {
color: $primary;
}
}
}
}
}
}