Chatwoot/app/javascript/dashboard/assets/scss/plugins/_multiselect.scss

119 lines
2 KiB
SCSS
Raw Normal View History

.multiselect {
margin-bottom: $space-normal;
min-height: 38px;
2020-02-11 13:51:55 +00:00
&.multiselect--active {
>.multiselect__tags {
border-color: $color-woot;
}
}
>.multiselect__tags {
@include margin(0);
border: 1px solid $color-border;
min-height: 44px;
padding-top: $zero;
.multiselect__placeholder {
padding-top: $space-small;
}
.multiselect__tag {
2020-02-11 13:51:55 +00:00
$vertical-space: $space-smaller+$space-micro;
margin-top: $space-one;
2020-02-11 13:51:55 +00:00
background: $color-background;
color: $color-heading;
padding: $vertical-space $space-medium $vertical-space $space-one;
}
.multiselect__tag-icon {
line-height: $space-medium + $space-micro;
&:after {
color: $color-primary-dark;
}
&:hover {
background: $color-background;
&:after {
color: $color-woot;
}
}
}
.multiselect__input {
@include ghost-input;
@include padding($zero);
2020-02-11 13:51:55 +00:00
font-size: $font-size-small;
margin-bottom: $zero;
}
2019-10-27 13:58:02 +00:00
.multiselect__single {
@include padding($space-one);
margin-bottom: 0;
}
}
.multiselect__select {
min-height: 44px;
padding: 0;
right: 0;
top: 0;
&::before {
right: 0;
top: 60%;
}
}
2020-02-11 13:51:55 +00:00
.multiselect__content .multiselect__option {
font-size: $font-size-small;
font-weight: $font-weight-normal;
&.multiselect__option--highlight {
font-weight: $font-weight-medium;
}
}
}
.sidebar-labels-wrap {
&.has-edited,
&:hover {
.multiselect {
cursor: pointer;
margin-top: $space-small;
>.multiselect__tags {
border-color: $color-border;
}
>.multiselect__select {
visibility: visible;
}
}
}
.multiselect {
>.multiselect__select {
visibility: hidden;
}
>.multiselect__tags {
border-color: transparent;
}
&.multiselect--active {
>.multiselect__tags {
border-color: $color-woot;
}
}
}
}