forked from mendix/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch_autocomplete.scss
62 lines (60 loc) · 1.14 KB
/
search_autocomplete.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
@import "_sass/core/variables";
/* Search */
.algolia-autocomplete {
width: 100%;
.aa-input, .aa-hint {
width: 100%;
}
.aa-hint {
color: #999;
}
.aa-dropdown-menu {
width: 100%;
background-color: #fff;
border: 1px solid $border-color;
border-top: none;
margin-top: -1em;
.aa-suggestion {
cursor: pointer;
padding: 10px 10px 5px;
font-size: 16px;
&__title {
}
&__text {
font-size: 0.8em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__space {
font-size: 0.8em;
text-align: right;
font-style: italic;
font-weight: bold;
}
&.aa-cursor {
background-color: #B2D7FF;
.aa-suggestion__text {
white-space: normal;
}
}
em {
font-weight: bold;
font-style: normal;
}
}
}
.algolia__result-highlight {
font-weight: bold;
}
.no-results {
padding: 10px;
}
.autocomplete-header {
margin: 10px 10px 0;
border-bottom: 1px solid #CCC;
line-height: 1;
color: #CCC;
font-style: italic;
}
}