forked from yuristrelets/react-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.scss
More file actions
79 lines (72 loc) · 1.57 KB
/
style.scss
File metadata and controls
79 lines (72 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@import "../base";
@import "./config";
@import "../input/config";
.root {
position: relative;
padding: $unit 0;
&.focus {
.label {
color: $autocomplete-color-primary;
}
.suggestions {
max-height: $autocomplete-overflow-max-height;
visibility: visible;
box-shadow: $zdepth-shadow-1;
}
}
&.errored {
.suggestions {
margin-top: - $input-underline-height;
}
}
}
.label {
font-size: $font-size-tiny;
color: $color-text-secondary;
transition: color $animation-duration $animation-curve-default;
}
.values {
flex-direction: row;
flex-wrap: wrap;
padding-bottom: $unit / 2;
}
.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;
width: 100%;
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 {
bottom: 0;
}
}
.suggestion {
padding: $autocomplete-suggestion-padding;
cursor: pointer;
&.active {
background-color: $autocomplete-suggestion-active-background;
}
}
.input {
padding-top: 0;
padding-bottom: 0;
}