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

183 lines
3.6 KiB
SCSS
Raw Normal View History

.select-kit {
&.multi-select {
2017-11-09 13:57:53 -05:00
width: 300px;
background: $secondary;
border-radius: 0;
.select-kit-body {
2017-11-09 13:57:53 -05:00
width: 100%;
}
.select-kit-row {
2017-11-09 13:57:53 -05:00
margin: 5px;
min-height: 1px;
padding: 5px;
border-radius: 0;
}
.select-kit-filter {
2017-11-09 13:57:53 -05:00
border: 0;
flex: 1;
margin: 1px;
2017-11-09 13:57:53 -05:00
}
.multi-select-header {
2017-11-09 13:57:53 -05:00
background: $secondary;
border: 1px solid $primary-medium;
2017-11-09 13:57:53 -05:00
&.is-focused {
box-shadow: shadow("focus");
2017-11-09 13:57:53 -05:00
border-radius: 0;
}
}
&.is-disabled {
.multi-select-header {
2017-11-09 13:57:53 -05:00
background: #e9e9e9;
border-color: #ddd;
}
}
&.is-highlighted {
.multi-select-header {
2017-11-09 13:57:53 -05:00
border-radius: 0;
border-bottom: 1px solid transparent;
box-shadow: shadow("focus");
2017-11-09 13:57:53 -05:00
}
}
&.is-expanded {
.select-kit-wrapper {
2017-11-09 13:57:53 -05:00
display: block;
border: 1px solid $tertiary;
box-shadow: shadow("focus");
2017-11-09 13:57:53 -05:00
border-radius: 0;
}
.multi-select-header {
2017-11-09 13:57:53 -05:00
border-radius: 0;
box-shadow: none;
}
.select-kit-body {
2017-11-09 13:57:53 -05:00
border-radius: 0;
}
}
.choices {
margin: 0 2px;
2017-11-09 13:57:53 -05:00
box-sizing: border-box;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
2017-11-09 13:57:53 -05:00
.choice {
2017-11-09 13:57:53 -05:00
display: inline-flex;
box-sizing: border-box;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
flex-direction: row;
margin: 1px 0px 2px 2px;
2017-11-09 13:57:53 -05:00
}
.filter {
align-items: center;
justify-content: flex-start;
white-space: nowrap;
min-width: 50px;
padding: 0;
outline: none;
flex: 1;
2017-11-09 13:57:53 -05:00
.filter-input,
.filter-input:focus {
2017-11-09 13:57:53 -05:00
border: none;
background: none;
display: inline-block;
width: 100%;
outline: none;
min-width: auto;
padding: 0;
margin: 0;
outline: 0;
border: 0;
box-shadow: none;
border-radius: 0;
min-height: unset; // overrides input defaults
}
}
.selected-color {
.selected-color-wrapper {
display: flex;
flex: 1;
flex-direction: column;
}
.color-preview {
height: 5px;
margin: 0 2px 2px 0px;
display: flex;
width: 100%;
2017-11-09 13:57:53 -05:00
}
}
.selected-category {
.badge-wrapper {
&.bullet {
margin-right: 2.5px;
}
margin: auto 2.5px;
padding: 2px 4px;
line-height: $line-height-medium;
display: flex;
flex: 1;
align-items: center;
&:after {
content: "\f00d";
color: $primary-low-mid;
font-family: "FontAwesome";
font-size: $font-down-2;
margin-left: 5px;
}
}
}
2017-11-09 13:57:53 -05:00
.selected-name {
flex: unset;
.footer {
display: flex;
width: 100%;
2017-11-09 13:57:53 -05:00
}
.body {
background: $primary-low;
padding: 4px;
2017-11-09 13:57:53 -05:00
}
.name {
&:after {
content: "\f00d";
color: $primary-low-mid;
font-family: "FontAwesome";
font-size: $font-down-2;
}
2018-01-12 17:27:38 -05:00
&:hover {
&:after {
color: $danger;
2018-01-12 17:27:38 -05:00
}
}
}
&.is-highlighted {
box-shadow: 0 0 2px $danger, 0 1px 0 rgba(0, 0, 0, 0.05);
}
2017-11-09 13:57:53 -05:00
}
}
}
}