71 lines
1.4 KiB
SCSS
71 lines
1.4 KiB
SCSS
@import "../base";
|
|
@import "./config";
|
|
|
|
.root {
|
|
position: relative;
|
|
&.focus {
|
|
.label {
|
|
color: $autocomplete-color-primary;
|
|
}
|
|
.suggestions {
|
|
max-height: $autocomplete-overflow-max-height;
|
|
visibility: visible;
|
|
box-shadow: $zdepth-shadow-1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.label {
|
|
font-size: $font-size-tiny;
|
|
color: $color-text-secondary;
|
|
transition: color $animation-duration $animation-curve-default;
|
|
}
|
|
|
|
.values {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.value {
|
|
display: inline-block;
|
|
padding: $autocomplete-value-padding;
|
|
margin: $autocomplete-value-margin;
|
|
font-size: $font-size-tiny;
|
|
color: $autocomplete-color-primary-contrast;
|
|
cursor: pointer;
|
|
background-color: $autocomplete-color-primary;
|
|
border-radius: $autocomplete-value-border-radius;
|
|
}
|
|
|
|
.suggestions {
|
|
position: absolute;
|
|
z-index: $z-index-high;
|
|
max-height: 0;
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
visibility: hidden;
|
|
background-color: $autocomplete-suggestions-background;
|
|
transition-timing-function: $animation-curve-default;
|
|
transition-duration: $animation-duration;
|
|
transition-property: max-height, box-shadow;
|
|
&:not(.up) {
|
|
bottom: auto;
|
|
}
|
|
&.up {
|
|
top: auto;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
.suggestion {
|
|
padding: $autocomplete-suggestion-padding;
|
|
cursor: pointer;
|
|
&.active {
|
|
background-color: $autocomplete-suggestion-active-background;
|
|
}
|
|
}
|
|
|
|
.input {
|
|
padding-bottom: 0;
|
|
}
|