-
Notifications
You must be signed in to change notification settings - Fork 975
/
theme.scss
98 lines (90 loc) · 2.28 KB
/
theme.scss
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@import "../colors";
@import "../globals";
@import "../mixins";
@import "./config";
$input-padding: 2 * $unit;
$input-field-font-size: 1.6 * $unit;
$input-field-padding: .8 * $unit;
$input-field-height: $input-field-padding * 2 + $input-field-font-size * 1.4;
$input-chevron-offset: 0.8 * $unit;
$input-text-bottom-border-color: rgba($color-black, 0.12);
$input-text-error-color: rgb(222, 50, 38);
$input-text-background-color: transparent;
$input-focus-label-top: 0.6 * $unit;
$input-label-font-size: 1.2 * $unit;
$input-focus-label-top: 0.6 * $unit;
$input-text-label-color: rgba($color-black, 0.26);
$input-underline-height: 2 * $unit;
.autocomplete {
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;
}
}
}
.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 {
margin: $autocomplete-value-margin;
}
.suggestions {
@include no-webkit-scrollbar;
position: absolute;
z-index: $z-index-high;
width: 100%;
max-height: 0;
overflow-x: hidden;
overflow-y: auto;
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) {
margin-top: - $input-padding;
}
&.up {
bottom: 0;
}
}
.suggestion {
padding: $autocomplete-suggestion-padding;
font-size: $input-field-font-size;
cursor: pointer;
&.active {
background-color: $autocomplete-suggestion-active-background;
}
}
.input {
position: relative;
&:after {
$size: ($input-field-height / 7);
$border: $size solid transparent;
position: absolute;
top: 50%;
right: $input-chevron-offset;
width: 0;
height: 0;
pointer-events: none;
content: "";
border-top: $size solid $input-text-bottom-border-color;
border-right: $border;
border-left: $border;
transition: transform $animation-duration $animation-curve-default;
}
}