2020-02-16 10:16:26 +00:00
|
|
|
@mixin label-multiselect-hover {
|
|
|
|
&::after {
|
|
|
|
color: $color-primary-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $color-background;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
color: $color-woot;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
.multiselect {
|
2021-02-22 05:22:50 +00:00
|
|
|
margin-bottom: var(--space-normal);
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2021-02-22 05:22:50 +00:00
|
|
|
.multiselect--active {
|
|
|
|
> .multiselect__tags {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-color: $color-woot;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.multiselect__select {
|
2021-02-22 05:22:50 +00:00
|
|
|
min-height: 4.6rem;
|
2020-02-16 10:16:26 +00:00
|
|
|
padding: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-02-16 10:16:26 +00:00
|
|
|
&::before {
|
|
|
|
right: 0;
|
|
|
|
top: 60%;
|
2019-11-17 08:02:30 +00:00
|
|
|
}
|
2020-02-16 10:16:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.multiselect__content .multiselect__option {
|
|
|
|
font-size: $font-size-small;
|
|
|
|
font-weight: $font-weight-normal;
|
2019-11-17 08:02:30 +00:00
|
|
|
|
2020-02-16 10:16:26 +00:00
|
|
|
&.multiselect__option--highlight {
|
2021-02-22 05:22:50 +00:00
|
|
|
background: var(--white);
|
|
|
|
color: var(--color-body);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.multiselect__option--highlight:hover {
|
|
|
|
background: var(--w-50);
|
|
|
|
color: var(--color-body);
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
background: var(--w-50);
|
|
|
|
color: var(--s-600);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.multiselect__option--highlight::after {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.multiselect__option--selected {
|
|
|
|
background: var(--w-400);
|
|
|
|
color: var(--white);
|
|
|
|
|
|
|
|
&.multiselect__option--highlight:hover {
|
|
|
|
background: var(--w-600);
|
|
|
|
color: var(--white);
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
background: transparent;
|
|
|
|
color: var(--white);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-body);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2020-02-16 10:16:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-22 05:22:50 +00:00
|
|
|
.multiselect__tags {
|
|
|
|
@include margin(0);
|
|
|
|
border: 1px solid $color-border;
|
|
|
|
border-color: $color-border;
|
|
|
|
min-height: 4.4rem;
|
|
|
|
padding-top: $zero;
|
|
|
|
}
|
2020-02-16 10:16:26 +00:00
|
|
|
|
|
|
|
.multiselect__tags-wrap {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 1;
|
|
|
|
margin-top: $space-smaller;
|
|
|
|
}
|
|
|
|
|
|
|
|
.multiselect__placeholder {
|
2020-02-19 05:00:34 +00:00
|
|
|
color: $color-gray;
|
|
|
|
font-weight: $font-weight-normal;
|
2021-02-22 05:22:50 +00:00
|
|
|
padding-top: var(--space-slab);
|
2020-02-16 10:16:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.multiselect__tag {
|
|
|
|
$vertical-space: $space-smaller + $space-micro;
|
|
|
|
background: $color-background;
|
|
|
|
color: $color-heading;
|
|
|
|
margin-top: $space-smaller;
|
|
|
|
padding: $vertical-space $space-medium $vertical-space $space-one;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-02-16 10:16:26 +00:00
|
|
|
.multiselect__tag-icon {
|
|
|
|
@include label-multiselect-hover;
|
|
|
|
line-height: $space-medium + $space-micro;
|
|
|
|
}
|
|
|
|
|
|
|
|
.multiselect__input {
|
|
|
|
@include ghost-input;
|
|
|
|
@include padding($zero);
|
|
|
|
font-size: $font-size-small;
|
2021-02-22 05:22:50 +00:00
|
|
|
height: 4.4rem;
|
2020-02-16 10:16:26 +00:00
|
|
|
margin-bottom: $zero;
|
|
|
|
}
|
2019-12-14 12:44:35 +00:00
|
|
|
|
2020-02-16 10:16:26 +00:00
|
|
|
.multiselect__single {
|
|
|
|
margin-bottom: 0;
|
2021-02-22 05:22:50 +00:00
|
|
|
padding: var(--space-slab) var(--space-one);
|
2020-02-16 10:16:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-labels-wrap {
|
|
|
|
&.has-edited,
|
|
|
|
&:hover {
|
|
|
|
.multiselect {
|
|
|
|
cursor: pointer;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
}
|
2019-11-17 08:02:30 +00:00
|
|
|
|
2020-02-16 10:16:26 +00:00
|
|
|
.multiselect {
|
2021-02-22 05:22:50 +00:00
|
|
|
> .multiselect__select {
|
2020-02-16 10:16:26 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2021-02-22 05:22:50 +00:00
|
|
|
> .multiselect__tags {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
|
2021-02-22 05:22:50 +00:00
|
|
|
&.multiselect--active > .multiselect__tags {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-color: $color-woot;
|
2019-11-17 08:02:30 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|