-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_typeahead.scss
63 lines (52 loc) · 929 Bytes
/
_typeahead.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
$extra-width: 50%;
$radius: 4px;
typeahead {
position: relative;
display: block;
input {
box-sizing: border-box;
width: 100%;
}
ul {
position: absolute;
padding: 0;
width: 100% + $extra-width;
left: -($extra-width/2);
background-color: #fff;
list-style: none;
border-radius: $radius;
box-shadow: 0 0 10px rgba(#000, 0.25);
z-index: 1000;
}
li {
padding: 10px 16px;
border-bottom: 1px solid #ccc;
cursor: pointer;
&:first-child {
border-radius: $radius $radius 0 0;
}
&:last-child {
border-radius: 0 0 $radius $radius;
}
}
span {
display: block;
}
.title {
font-size: 1em;
}
.subtitle {
margin-top: 2px;
font-size: 0.75em;
}
.active {
background-color: $brand-primary;
color: #fff;
}
i {
position: absolute;
right: 13px;
top: 10px;
color: $brand-primary;
}
}