-
Notifications
You must be signed in to change notification settings - Fork 26.1k
/
_typehead.scss
97 lines (96 loc) · 1.78 KB
/
_typehead.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
@import "@sass/abstracts/vars";
@import "@sass/abstracts/mixins";
.twitter-typeahead {
display: inline-block;
vertical-align: middle;
max-width: 100%;
width: 100%;
}
.tt-menu {
background: $bg-basic-color;
width: 100%;
border: 1px solid $border-gray;
}
.tt-hint {
color: $tt-color;
}
.tt-dropdown-menu {
width: 250px;
margin-top: 5px;
background-color: $tt-dropdown-bg;
border: 1px solid $tt-dropdown-border;
max-height: 300px;
overflow-y: auto;
box-shadow:
0 3px 8px 0 rgba(0, 0, 0, 0.2),
0 0 0 1px rgba(0, 0, 0, 0.08);
}
.tt-suggestion {
padding: 4px 10px;
color: $tt-color;
overflow: hidden;
a {
text-decoration: none;
}
&:last-child {
border: none;
}
.field-image {
width: 100px;
float: left;
margin-right: 10px;
}
.field-make {
font-size: 15px;
float: left;
margin-right: 5px;
}
.field-model {
margin-left: 4px;
font-size: 15px;
font-weight: bold;
width: 100%;
}
.field-priceformatted {
float: right;
font-size: 15px;
color: $tt-price-color;
margin-top: -20px;
}
}
.tt-suggestion.tt-cursor {
color: $tt-color-active;
background-color: $tt-suggestion-bg-active;
cursor: pointer;
}
.loading-in-progress {
.tt-dropdown-menu {
display: block !important;
min-height: 50px;
position: relative;
&:after {
content: "";
position: absolute;
top: 50%;
left: 50%;
margin-top: -20px;
margin-left: -20px;
height: 40px;
width: 50px;
display: block;
@include loading-gif();
z-index: 11;
}
&:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: $tt-dropdown-bg;
opacity: 0.8;
z-index: 10;
}
}
}