-
Notifications
You must be signed in to change notification settings - Fork 48
/
vue-autocomplete.css
70 lines (61 loc) · 1.18 KB
/
vue-autocomplete.css
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
.transition, .autocomplete, .showAll-transition, .autocomplete ul, .autocomplete ul li a{
transition:all 0.3s ease-out;
-moz-transition:all 0.3s ease-out;
-webkit-transition:all 0.3s ease-out;
-o-transition:all 0.3s ease-out;
}
.autocomplete ul{
font-family: sans-serif;
position: absolute;
list-style: none;
background: #f8f8f8;
padding: 10px 0;
margin: 0;
display: inline-block;
min-width: 15%;
margin-top: 10px;
}
.autocomplete ul:before{
content: "";
display: block;
position: absolute;
height: 0;
width: 0;
border: 10px solid transparent;
border-bottom: 10px solid #f8f8f8;
left: 46%;
top: -20px
}
.autocomplete ul li a{
text-decoration: none;
display: block;
background: #f8f8f8;
color: #2b2b2b;
padding: 5px;
padding-left: 10px;
}
.autocomplete ul li a:hover, .autocomplete ul li.focus-list a{
color: white;
background: #2F9AF7;
}
.autocomplete ul li a span{
display: block;
margin-top: 3px;
color: grey;
font-size: 13px;
}
.autocomplete ul li a:hover span, .autocomplete ul li.focus-list a span{
color: white;
}
.showAll-transition{
opacity: 1;
height: 50px;
overflow: hidden;
}
.showAll-enter{
opacity: 0.3;
height: 0;
}
.showAll-leave{
display: none;
}