2015-10-20 22:15:21 +03:00
|
|
|
@import "../base";
|
|
|
|
@import "./config";
|
2015-11-08 18:49:00 +03:00
|
|
|
@import "../input/config";
|
2015-10-10 06:26:21 +03:00
|
|
|
|
|
|
|
.root {
|
2015-10-02 20:10:42 +03:00
|
|
|
position: relative;
|
2015-11-08 18:49:00 +03:00
|
|
|
padding: $unit 0;
|
2015-10-10 06:26:21 +03:00
|
|
|
&.focus {
|
|
|
|
.label {
|
|
|
|
color: $autocomplete-color-primary;
|
|
|
|
}
|
|
|
|
.suggestions {
|
2015-10-20 22:38:33 +03:00
|
|
|
max-height: $autocomplete-overflow-max-height;
|
2015-10-10 06:26:21 +03:00
|
|
|
visibility: visible;
|
|
|
|
box-shadow: $zdepth-shadow-1;
|
|
|
|
}
|
|
|
|
}
|
2015-11-08 18:49:00 +03:00
|
|
|
&.errored {
|
|
|
|
.suggestions {
|
2015-11-18 11:19:58 +03:00
|
|
|
margin-top: - $input-underline-height;
|
2015-11-08 18:49:00 +03:00
|
|
|
}
|
|
|
|
}
|
2015-10-02 20:10:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.label {
|
2015-10-08 17:21:42 +03:00
|
|
|
font-size: $font-size-tiny;
|
2015-10-10 06:26:21 +03:00
|
|
|
color: $color-text-secondary;
|
|
|
|
transition: color $animation-duration $animation-curve-default;
|
2015-10-02 20:10:42 +03:00
|
|
|
}
|
|
|
|
|
2015-10-21 03:16:42 +03:00
|
|
|
.values {
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
2015-11-08 18:49:00 +03:00
|
|
|
padding-bottom: $unit / 2;
|
2015-10-21 03:16:42 +03:00
|
|
|
}
|
|
|
|
|
2015-10-02 20:10:42 +03:00
|
|
|
.value {
|
|
|
|
display: inline-block;
|
2015-10-21 00:51:41 +03:00
|
|
|
padding: $autocomplete-value-padding;
|
|
|
|
margin: $autocomplete-value-margin;
|
2015-10-10 06:26:21 +03:00
|
|
|
font-size: $font-size-tiny;
|
|
|
|
color: $autocomplete-color-primary-contrast;
|
2015-10-02 20:10:42 +03:00
|
|
|
cursor: pointer;
|
2015-10-10 06:26:21 +03:00
|
|
|
background-color: $autocomplete-color-primary;
|
2015-10-21 00:51:41 +03:00
|
|
|
border-radius: $autocomplete-value-border-radius;
|
2015-10-02 20:10:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.suggestions {
|
|
|
|
position: absolute;
|
2015-10-21 00:51:41 +03:00
|
|
|
z-index: $z-index-high;
|
2015-11-08 18:49:00 +03:00
|
|
|
width: 100%;
|
2015-10-11 20:07:09 +03:00
|
|
|
max-height: 0;
|
2015-10-02 20:10:42 +03:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
2015-10-10 06:26:21 +03:00
|
|
|
visibility: hidden;
|
2015-10-21 00:51:41 +03:00
|
|
|
background-color: $autocomplete-suggestions-background;
|
2015-10-02 20:10:42 +03:00
|
|
|
transition-timing-function: $animation-curve-default;
|
2015-10-08 17:21:42 +03:00
|
|
|
transition-duration: $animation-duration;
|
2015-10-10 06:26:21 +03:00
|
|
|
transition-property: max-height, box-shadow;
|
2015-10-08 17:21:42 +03:00
|
|
|
&:not(.up) {
|
2015-10-10 06:26:21 +03:00
|
|
|
bottom: auto;
|
2015-10-08 17:21:42 +03:00
|
|
|
}
|
|
|
|
&.up {
|
2015-10-10 06:26:21 +03:00
|
|
|
bottom: 0;
|
2015-10-08 11:14:47 +03:00
|
|
|
}
|
2015-10-02 20:10:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.suggestion {
|
2015-10-21 00:51:41 +03:00
|
|
|
padding: $autocomplete-suggestion-padding;
|
2015-10-02 20:10:42 +03:00
|
|
|
cursor: pointer;
|
2015-10-08 11:14:47 +03:00
|
|
|
&.active {
|
2015-10-21 00:51:41 +03:00
|
|
|
background-color: $autocomplete-suggestion-active-background;
|
2015-10-08 11:14:47 +03:00
|
|
|
}
|
2015-10-02 20:10:42 +03:00
|
|
|
}
|
2015-10-09 20:48:30 +03:00
|
|
|
|
|
|
|
.input {
|
2015-11-08 18:49:00 +03:00
|
|
|
padding-top: 0;
|
2015-10-09 20:48:30 +03:00
|
|
|
padding-bottom: 0;
|
|
|
|
}
|