/
search.vue
58 lines (49 loc) · 1.79 KB
/
search.vue
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
<template>
<form class="bd-search d-flex align-items-center">
<span class="algolia-autocomplete">
<input type="search" disabled class="form-control ds-input" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-labelledby="search-input" aria-owns="algolia-autocomplete-listbox-0" dir="auto">
<pre aria-hidden="true"></pre>
<span class="ds-dropdown-menu" role="listbox" id="algolia-autocomplete-listbox-0">
<div class="ds-dataset-1"></div>
</span>
</span>
<b-nav-toggle target="bd-docs-nav" class="btn-link bd-search-docs-toggle d-md-none p-0 ml-3" aria-label="Toggle docs avigation">
<svg class="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30" height="30" focusable="false"><title>Menu</title><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"></path></svg>
</b-nav-toggle>
</form>
</template>
<style scoped>
.algolia-autocomplete {
position: relative;
display: inline-block;
direction: ltr;
}
.ds-input {
position: relative;
vertical-align: top;
}
.ds-dropdown-menu {
position: absolute;
top: 100%;
z-index: 100;
left: 0px;
right: auto;
display: none;
}
pre {
position: absolute;
visibility: hidden;
white-space: pre;
font-family: -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
font-size: 16px;
font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal;
font-weight: normal;
word-spacing: 0px;
letter-spacing: normal;
text-indent: 0px;
text-rendering: auto;
text-transform: none;
}
</style>