algoliasearch.zendesk-hc 3.0.0-beta.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -26
- package/dist/algoliasearch.zendesk-hc.css +503 -0
- package/dist/algoliasearch.zendesk-hc.js +48014 -0
- package/dist/algoliasearch.zendesk-hc.min.css +7 -2
- package/dist/algoliasearch.zendesk-hc.min.css.map +1 -1
- package/dist/algoliasearch.zendesk-hc.min.js +32 -688
- package/dist/algoliasearch.zendesk-hc.min.js.map +1 -1
- package/dist-es5-module/index.js +10 -0
- package/dist-es5-module/src/AlgoliasearchZendeskHC.js +179 -0
- package/dist-es5-module/src/addCSS.js +20 -0
- package/dist-es5-module/src/autocomplete.js +297 -0
- package/dist-es5-module/src/clickAnalytics.js +89 -0
- package/dist-es5-module/src/closestPolyfill.js +17 -0
- package/dist-es5-module/src/compile.js +17 -0
- package/dist-es5-module/src/escapeHTML.js +14 -0
- package/dist-es5-module/src/getCurrentLocale.js +17 -0
- package/dist-es5-module/src/index.js +17 -0
- package/dist-es5-module/src/instantsearch.js +419 -0
- package/dist-es5-module/src/regexpEscape.js +9 -0
- package/dist-es5-module/src/removeCSS.js +9 -0
- package/dist-es5-module/src/stopwords/uk.js +8 -0
- package/dist-es5-module/src/stopwords/vi.js +17 -0
- package/dist-es5-module/src/stopwords.js +203 -0
- package/dist-es5-module/src/templates.js +83 -0
- package/dist-es5-module/src/translations.js +829 -0
- package/package.json +88 -35
- package/CHANGELOG.md +0 -19
package/README.md
CHANGED
|
@@ -1,40 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# JavaScript library: `algoliasearchZendeskHC`
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/algoliasearch.zendesk-hc)
|
|
3
|
+
[](https://www.npmjs.com/package/algoliasearch.zendesk-hc)
|
|
4
|
+
[](../LICENSE)
|
|
4
5
|
|
|
5
|
-
This JavaScript library
|
|
6
|
-
|
|
7
|
-
[Algolia](https://www.algolia.com) is a hosted full-text, numerical, and faceted search engine capable of delivering realtime results from the first keystroke.
|
|
6
|
+
This JavaScript library allows you to replace the default search of your Zendesk Help Center by Algolia. [Algolia](https://www.algolia.com) is a hosted full-text, numerical, and faceted search engine capable of delivering realtime results from the first keystroke.
|
|
8
7
|
|
|
9
8
|
## Documentation
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
The `package.json` holds multiple scripts:
|
|
10
|
+
<!--
|
|
11
|
+
docs/documentation.md is generated from the content of the ## Documentation section of app/README.md
|
|
12
|
+
To change its content, modify app/README.md, go to the app/ folder and run `npm install && npm run build:docs`
|
|
13
|
+
-->
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
- `build`: Compiles the JS & CSS files to `dist/algoliasearch.zendesk-hc.{css,js}`
|
|
19
|
-
- `dev`: Launches `parcel`, and watches the files to rebuild them if needed
|
|
20
|
-
- `lint`: Lints the JS files
|
|
21
|
-
- `format`: Runs prettier
|
|
15
|
+
Documentation is available at https://www.algolia.com/doc/integration/zendesk/get-started.
|
|
22
16
|
|
|
23
17
|
## Contributing
|
|
24
18
|
|
|
25
19
|
We're considering any contribution and PR, please go ahead!
|
|
26
20
|
|
|
27
|
-
## Release
|
|
28
|
-
|
|
29
|
-
Bump the version in `package.json`. We follow semantic versioning.
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
npm install
|
|
33
|
-
npm run clean
|
|
34
|
-
NODE_ENV=production npm run build
|
|
35
|
-
npm publish
|
|
36
|
-
```
|
|
37
|
-
|
|
38
21
|
## License
|
|
39
22
|
|
|
40
23
|
This project is under the [MIT License](../LICENSE).
|
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Algolia Search for Zendesk's Help Center v3.0.0
|
|
3
|
+
* https://github.com/algolia/algoliasearch-zendesk
|
|
4
|
+
* Copyright 2026 Algolia (https://alg.li/support); Licensed MIT
|
|
5
|
+
*/
|
|
6
|
+
@charset "UTF-8";
|
|
7
|
+
/* Search by, for autocomplete (IS has a dedicated widget) */
|
|
8
|
+
.aa-powered-by-link {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
width: 64px;
|
|
11
|
+
text-indent: 101%;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjI5MSAwIDI4MSA2NCI+PHBhdGggZmlsbD0iIzAwM0RGRiIgZD0iTTUzNC40IDkuMUg1MjhhLjguOCAwIDAgMS0uNy0uN1YxLjhjMC0uNC4yLS43LjYtLjhsNi41LTFjLjQgMCAuOC4yLjkuNnY3LjhjMCAuNC0uNC43LS44Ljd6TTQyOCAzNS4yVi44YzAtLjUtLjMtLjgtLjctLjhoLS4ybC02LjQgMWMtLjQgMC0uNy40LS43Ljh2MzVjMCAxLjYgMCAxMS44IDEyLjMgMTIuMi41IDAgLjgtLjQuOC0uOFY0M2MwLS40LS4zLS43LS42LS44LTQuNS0uNS00LjUtNi00LjUtN3ptMTA2LjUtMjEuOEg1MjhjLS40IDAtLjcuNC0uNy44djM0YzAgLjQuMy44LjcuOGg2LjVjLjQgMCAuOC0uNC44LS44di0zNGMwLS41LS40LS44LS44LS44em0tMTcuNyAyMS44Vi44YzAtLjUtLjMtLjgtLjgtLjhsLTYuNSAxYy0uNCAwLS43LjQtLjcuOHYzNWMwIDEuNiAwIDExLjggMTIuMyAxMi4yLjQgMCAuOC0uNC44LS44VjQzYzAtLjQtLjMtLjctLjctLjgtNC40LS41LTQuNC02LTQuNC03em0tMjIuMi0yMC42YTE2LjUgMTYuNSAwIDAgMSA4LjYgOS4zYy44IDIuMiAxLjMgNC44IDEuMyA3LjVhMTkuNCAxOS40IDAgMCAxLTQuNiAxMi42IDE0LjggMTQuOCAwIDAgMS01LjIgMy42Yy0y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|
+
|
|
20
|
+
.clearfix {
|
|
21
|
+
clear: both;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/***************************/
|
|
25
|
+
/* @algolia/autocomplete-js */
|
|
26
|
+
/***************************/
|
|
27
|
+
.aa-Form {
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
.aa-Form:before {
|
|
31
|
+
content: "🔍";
|
|
32
|
+
font-family: "entypo";
|
|
33
|
+
font-size: 1.25em;
|
|
34
|
+
line-height: 1;
|
|
35
|
+
position: absolute;
|
|
36
|
+
text-align: center;
|
|
37
|
+
top: 50%;
|
|
38
|
+
left: 0;
|
|
39
|
+
width: 2.2em;
|
|
40
|
+
transform: translateY(-50%);
|
|
41
|
+
z-index: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aa-InputWrapperPrefix {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.aa-Input {
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
margin: 0;
|
|
53
|
+
outline: none;
|
|
54
|
+
padding: 10px;
|
|
55
|
+
padding-left: 32px;
|
|
56
|
+
padding-right: 28px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.aa-InputWrapperSuffix {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 50%;
|
|
62
|
+
right: 4px;
|
|
63
|
+
transform: translateY(-50%);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.aa-ClearButton {
|
|
67
|
+
background: transparent;
|
|
68
|
+
border: none;
|
|
69
|
+
padding: 0;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
color: inherit;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.aa-Panel {
|
|
75
|
+
position: absolute;
|
|
76
|
+
z-index: 10000;
|
|
77
|
+
margin-top: 9px;
|
|
78
|
+
border: 1px solid #d9d9d9;
|
|
79
|
+
border-radius: 3px;
|
|
80
|
+
background-color: #fff;
|
|
81
|
+
box-shadow: 0 1px 0 0 #ccc, 0 2px 3px 0 #e6e6e6;
|
|
82
|
+
font-size: 14px;
|
|
83
|
+
padding: 20px 16px 16px 16px;
|
|
84
|
+
text-align: left;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.aa-List {
|
|
88
|
+
list-style: none;
|
|
89
|
+
padding: 0;
|
|
90
|
+
margin: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.aa-Item {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
padding-top: 5px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.aa-powered-by {
|
|
99
|
+
position: absolute;
|
|
100
|
+
right: 16px;
|
|
101
|
+
top: 8px;
|
|
102
|
+
text-align: right;
|
|
103
|
+
font-size: 0.8em;
|
|
104
|
+
color: #999;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** category **/
|
|
108
|
+
.aa-article-hit--category {
|
|
109
|
+
height: 18px;
|
|
110
|
+
font-size: 18px;
|
|
111
|
+
border-bottom: 1px solid #e6e6e6;
|
|
112
|
+
height: 18px;
|
|
113
|
+
margin-bottom: 16px;
|
|
114
|
+
color: #aaa !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.aa-article-hit--category--content {
|
|
118
|
+
background-color: #fff;
|
|
119
|
+
padding-right: 16px;
|
|
120
|
+
display: inline-block;
|
|
121
|
+
max-width: 100%;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
overflow-x: hidden;
|
|
124
|
+
text-overflow: ellipsis;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.aa-article-hit .aa-article-hit--category {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.aa-article-hit.aa-article-hit__category-first .aa-article-hit--category {
|
|
132
|
+
display: block;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.aa-article-hit__xs .aa-article-hit--category,
|
|
136
|
+
.aa-article-hit__sm .aa-article-hit--category {
|
|
137
|
+
margin-bottom: 8px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** line **/
|
|
141
|
+
.aa-article-hit--line {
|
|
142
|
+
width: 100%;
|
|
143
|
+
margin-bottom: 8px;
|
|
144
|
+
float: left;
|
|
145
|
+
line-height: 1.35em;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.aa-article-hit__section-first .aa-article-hit--line {
|
|
149
|
+
margin-top: 12px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.aa-article-hit__xs .aa-article-hit--line,
|
|
153
|
+
.aa-article-hit__sm .aa-article-hit--line {
|
|
154
|
+
margin: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** section **/
|
|
158
|
+
.aa-article-hit--section {
|
|
159
|
+
display: none;
|
|
160
|
+
width: 20%;
|
|
161
|
+
text-align: right;
|
|
162
|
+
float: left;
|
|
163
|
+
padding-right: 16px;
|
|
164
|
+
padding-top: 4px;
|
|
165
|
+
font-size: 1.1em;
|
|
166
|
+
letter-spacing: 0.2px;
|
|
167
|
+
word-wrap: break-word;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.aa-article-hit__section-first .aa-article-hit--section {
|
|
171
|
+
display: block;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.aa-article-hit__xs .aa-article-hit--section,
|
|
175
|
+
.aa-article-hit__sm .aa-article-hit--section {
|
|
176
|
+
width: 100%;
|
|
177
|
+
text-align: left;
|
|
178
|
+
margin-top: 8px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.aa-article-hit__sm .aa-article-hit--section {
|
|
182
|
+
font-size: 1.2em;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** content **/
|
|
186
|
+
.aa-article-hit--content {
|
|
187
|
+
width: 80%;
|
|
188
|
+
float: right;
|
|
189
|
+
border-left: 1px solid #ddd;
|
|
190
|
+
padding: 4px 10% 4px 8px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.aa-Item:hover .aa-article-hit--content,
|
|
194
|
+
.aa-Item[aria-selected=true] .aa-article-hit--content {
|
|
195
|
+
background-color: #f8f8f8;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.aa-article-hit__category-first.aa-article-hit__section-first .aa-article-hit--content {
|
|
199
|
+
border-top: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.aa-article-hit__xs .aa-article-hit--content,
|
|
203
|
+
.aa-article-hit__sm .aa-article-hit--content {
|
|
204
|
+
width: 100%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.aa-article-hit__xs .aa-article-hit--content {
|
|
208
|
+
padding: 0 8px;
|
|
209
|
+
border-left: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.aa-article-hit__sm .aa-article-hit--content {
|
|
213
|
+
padding: 4px 8px;
|
|
214
|
+
margin: 4px 0;
|
|
215
|
+
border: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** title **/
|
|
219
|
+
.aa-article-hit--title {
|
|
220
|
+
font-size: 1.1em;
|
|
221
|
+
font-weight: bold;
|
|
222
|
+
}
|
|
223
|
+
.aa-article-hit--title mark {
|
|
224
|
+
position: relative;
|
|
225
|
+
z-index: 1;
|
|
226
|
+
background: none;
|
|
227
|
+
color: inherit;
|
|
228
|
+
}
|
|
229
|
+
.aa-article-hit--title mark::before {
|
|
230
|
+
content: "";
|
|
231
|
+
position: absolute;
|
|
232
|
+
top: 0;
|
|
233
|
+
left: 0;
|
|
234
|
+
width: 100%;
|
|
235
|
+
height: 100%;
|
|
236
|
+
opacity: 0.1;
|
|
237
|
+
z-index: -1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.aa-article-hit__xs .aa-article-hit--title,
|
|
241
|
+
.aa-article-hit__sm .aa-article-hit--title {
|
|
242
|
+
font-size: 1em;
|
|
243
|
+
line-height: 1.25em;
|
|
244
|
+
display: block;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.aa-article-hit__xs .aa-article-hit--title {
|
|
248
|
+
font-weight: normal;
|
|
249
|
+
padding: 8px 0;
|
|
250
|
+
border-top: solid 1px #eee;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.aa-article-hit__xs.aa-article-hit__section-first .aa-article-hit--title {
|
|
254
|
+
border: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/** body **/
|
|
258
|
+
.aa-article-hit--body {
|
|
259
|
+
font-size: 13px;
|
|
260
|
+
color: #797979;
|
|
261
|
+
margin-top: 4px;
|
|
262
|
+
line-height: 1.25em;
|
|
263
|
+
}
|
|
264
|
+
.aa-article-hit--body mark {
|
|
265
|
+
background: none;
|
|
266
|
+
color: #666;
|
|
267
|
+
font-weight: bold;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.aa-article-hit__xs .aa-article-hit--body {
|
|
271
|
+
display: none;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.aa-article-hit__sm .aa-article-hit--body {
|
|
275
|
+
font-size: 0.9em;
|
|
276
|
+
line-height: 1.25em;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/***************************/
|
|
280
|
+
/*! instantsearch.js 1.1.0 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
|
|
281
|
+
/***************************/
|
|
282
|
+
.ais-with-style.ais-SearchBox {
|
|
283
|
+
margin-left: 30%;
|
|
284
|
+
position: relative;
|
|
285
|
+
}
|
|
286
|
+
.ais-with-style.ais-SearchBox .ais-SearchBox-form {
|
|
287
|
+
position: relative;
|
|
288
|
+
}
|
|
289
|
+
.ais-with-style.ais-SearchBox .ais-SearchBox-form:before {
|
|
290
|
+
content: "🔍";
|
|
291
|
+
font-family: "entypo";
|
|
292
|
+
font-size: 1.25em;
|
|
293
|
+
line-height: 0;
|
|
294
|
+
position: absolute;
|
|
295
|
+
text-align: center;
|
|
296
|
+
top: 18px;
|
|
297
|
+
width: 2.2em;
|
|
298
|
+
z-index: 1;
|
|
299
|
+
}
|
|
300
|
+
.ais-with-style.ais-SearchBox .ais-SearchBox-input {
|
|
301
|
+
box-sizing: border-box;
|
|
302
|
+
width: 100%;
|
|
303
|
+
outline: none;
|
|
304
|
+
padding: 10px;
|
|
305
|
+
padding-left: 32px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
#algolia-powered-by-container {
|
|
309
|
+
margin-left: 30%;
|
|
310
|
+
font-size: 0.8em;
|
|
311
|
+
text-align: right;
|
|
312
|
+
margin-top: 3px;
|
|
313
|
+
height: 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
#algolia-hits {
|
|
317
|
+
float: left;
|
|
318
|
+
width: 70%;
|
|
319
|
+
}
|
|
320
|
+
#algolia-hits .ais-Hits-list {
|
|
321
|
+
list-style: none;
|
|
322
|
+
padding: 0;
|
|
323
|
+
margin: 0;
|
|
324
|
+
}
|
|
325
|
+
#algolia-hits .search-result {
|
|
326
|
+
border-top: 1px solid #efefef;
|
|
327
|
+
margin-top: 10px;
|
|
328
|
+
padding: 7px 0 10px;
|
|
329
|
+
position: relative;
|
|
330
|
+
}
|
|
331
|
+
#algolia-hits .search-result:first-child {
|
|
332
|
+
margin-top: 0;
|
|
333
|
+
}
|
|
334
|
+
#algolia-hits .search-result-meta {
|
|
335
|
+
padding: 0 10px;
|
|
336
|
+
float: right;
|
|
337
|
+
font-size: 0.8em;
|
|
338
|
+
}
|
|
339
|
+
#algolia-hits .search-result-path {
|
|
340
|
+
font-size: 0.9em;
|
|
341
|
+
font-style: italic;
|
|
342
|
+
color: #999;
|
|
343
|
+
}
|
|
344
|
+
#algolia-hits .search-result-body {
|
|
345
|
+
margin-top: 5px;
|
|
346
|
+
opacity: 0.7;
|
|
347
|
+
}
|
|
348
|
+
#algolia-hits .search-result-body mark {
|
|
349
|
+
background: none;
|
|
350
|
+
color: inherit;
|
|
351
|
+
font-weight: bold;
|
|
352
|
+
}
|
|
353
|
+
#algolia-hits .search-result-link-wrapper {
|
|
354
|
+
margin-right: 75px;
|
|
355
|
+
}
|
|
356
|
+
#algolia-hits .search-result-link {
|
|
357
|
+
display: inline-block;
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
}
|
|
360
|
+
#algolia-hits .search-result-link mark {
|
|
361
|
+
position: relative;
|
|
362
|
+
z-index: 1;
|
|
363
|
+
background: none;
|
|
364
|
+
color: inherit;
|
|
365
|
+
}
|
|
366
|
+
#algolia-hits .search-result-link mark::before {
|
|
367
|
+
content: "";
|
|
368
|
+
position: absolute;
|
|
369
|
+
top: 0;
|
|
370
|
+
left: 0;
|
|
371
|
+
width: 100%;
|
|
372
|
+
height: 100%;
|
|
373
|
+
opacity: 0.1;
|
|
374
|
+
z-index: -1;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
#algolia-stats {
|
|
378
|
+
margin-left: 30%;
|
|
379
|
+
margin-top: 15px;
|
|
380
|
+
text-transform: uppercase;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
#algolia-facets {
|
|
384
|
+
float: left;
|
|
385
|
+
width: 25%;
|
|
386
|
+
margin-right: 5%;
|
|
387
|
+
min-height: 1px;
|
|
388
|
+
}
|
|
389
|
+
#algolia-facets .algolia-facet-block {
|
|
390
|
+
border: 1px solid #efefef;
|
|
391
|
+
}
|
|
392
|
+
#algolia-facets .ais-Panel-header {
|
|
393
|
+
text-align: left;
|
|
394
|
+
text-transform: uppercase;
|
|
395
|
+
font-weight: 300;
|
|
396
|
+
font-size: 1em;
|
|
397
|
+
border-bottom: 1px solid #efefef;
|
|
398
|
+
padding: 10px;
|
|
399
|
+
}
|
|
400
|
+
#algolia-facets .ais-Panel-body {
|
|
401
|
+
padding: 10px;
|
|
402
|
+
}
|
|
403
|
+
#algolia-facets .ais-HierarchicalMenu-list--lvl0 {
|
|
404
|
+
margin-left: 10px;
|
|
405
|
+
}
|
|
406
|
+
#algolia-facets .ais-HierarchicalMenu-list--lvl1 {
|
|
407
|
+
margin-left: 10px;
|
|
408
|
+
}
|
|
409
|
+
#algolia-facets .ais-HierarchicalMenu-link {
|
|
410
|
+
display: block;
|
|
411
|
+
width: 80%;
|
|
412
|
+
white-space: nowrap;
|
|
413
|
+
overflow: hidden;
|
|
414
|
+
text-overflow: ellipsis;
|
|
415
|
+
cursor: pointer;
|
|
416
|
+
}
|
|
417
|
+
#algolia-facets .ais-HierarchicalMenu-item {
|
|
418
|
+
line-height: 2em;
|
|
419
|
+
}
|
|
420
|
+
#algolia-facets .ais-HierarchicalMenu-item--selected > div > .ais-HierarchicalMenu-link {
|
|
421
|
+
font-weight: bold;
|
|
422
|
+
}
|
|
423
|
+
#algolia-facets .ais-HierarchicalMenu-item--selected > div > .ais-HierarchicalMenu-link:hover {
|
|
424
|
+
text-decoration: line-through;
|
|
425
|
+
border: none;
|
|
426
|
+
}
|
|
427
|
+
#algolia-facets .ais-HierarchicalMenu-count {
|
|
428
|
+
display: none;
|
|
429
|
+
}
|
|
430
|
+
#algolia-facets #algolia-labels {
|
|
431
|
+
margin-top: 20px;
|
|
432
|
+
}
|
|
433
|
+
#algolia-facets #algolia-labels .ais-RefinementList-list {
|
|
434
|
+
margin-top: 5px;
|
|
435
|
+
margin-left: -4px;
|
|
436
|
+
margin-right: -4px;
|
|
437
|
+
}
|
|
438
|
+
#algolia-facets #algolia-labels .ais-RefinementList-item {
|
|
439
|
+
display: inline-block;
|
|
440
|
+
max-width: 100%;
|
|
441
|
+
}
|
|
442
|
+
#algolia-facets #algolia-labels .ais-RefinementList-item .ais-RefinementList-label {
|
|
443
|
+
display: inline-block;
|
|
444
|
+
padding: 4px 8px;
|
|
445
|
+
margin: 4px;
|
|
446
|
+
max-width: 100%;
|
|
447
|
+
overflow: hidden;
|
|
448
|
+
text-overflow: ellipsis;
|
|
449
|
+
background: #efefef;
|
|
450
|
+
cursor: pointer;
|
|
451
|
+
}
|
|
452
|
+
#algolia-facets #algolia-labels .ais-RefinementList-item .ais-RefinementList-label:hover,
|
|
453
|
+
#algolia-facets #algolia-labels .ais-RefinementList-item--selected .ais-RefinementList-label {
|
|
454
|
+
text-decoration: none;
|
|
455
|
+
background: #158EC2;
|
|
456
|
+
color: white;
|
|
457
|
+
-webkit-transition: all 0.3s ease;
|
|
458
|
+
transition: all 0.3s ease;
|
|
459
|
+
}
|
|
460
|
+
#algolia-facets #algolia-labels .ais-RefinementList-item--selected .ais-RefinementList-label:hover {
|
|
461
|
+
text-decoration: line-through;
|
|
462
|
+
}
|
|
463
|
+
#algolia-facets #algolia-labels .ais-RefinementList-count,
|
|
464
|
+
#algolia-facets #algolia-labels .ais-RefinementList-checkbox {
|
|
465
|
+
display: none;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.ais-Hits--empty {
|
|
469
|
+
text-align: center;
|
|
470
|
+
font-size: 1.8em;
|
|
471
|
+
margin-top: 100px;
|
|
472
|
+
font-style: italic;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
#algolia-pagination {
|
|
476
|
+
text-align: center;
|
|
477
|
+
margin-top: 80px;
|
|
478
|
+
}
|
|
479
|
+
#algolia-pagination .ais-Pagination-list {
|
|
480
|
+
display: inline-block;
|
|
481
|
+
list-style: none;
|
|
482
|
+
padding: 0;
|
|
483
|
+
}
|
|
484
|
+
#algolia-pagination .ais-Pagination-item {
|
|
485
|
+
display: inline-block;
|
|
486
|
+
padding: 3px;
|
|
487
|
+
}
|
|
488
|
+
#algolia-pagination .ais-Pagination-item--disabled {
|
|
489
|
+
visibility: hidden;
|
|
490
|
+
}
|
|
491
|
+
#algolia-pagination .ais-Pagination-item--selected {
|
|
492
|
+
font-weight: bold;
|
|
493
|
+
background: #efefef;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/** Responsiveness **/
|
|
497
|
+
#algolia-facets-open {
|
|
498
|
+
display: none;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
#algolia-facets-close {
|
|
502
|
+
display: none;
|
|
503
|
+
}
|