Skip to content

Commit fcca2a1

Browse files
committed
instantsearch.html: Add lvl0
1 parent 04a15b1 commit fcca2a1

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

theme/instantsearch.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
content: none;
3737
}
3838

39-
.ais-Hits-item div:not(:first-child):before {
39+
.ais-Hits-item div:not(:first-child):not(:nth-child(2)):before {
4040
content: ' > ';
4141
}
4242

43-
.ais-Hits-item div:not(:first-child):empty:before {
43+
.ais-Hits-item div:not(:first-child):not(:nth-child(2)):empty:before {
4444
content: none;
4545
}
4646

@@ -49,35 +49,40 @@
4949
}
5050

5151
.ais-Hits-item div:nth-child(1) {
52-
font-size: 1.0em;
52+
font-size: 0.8em;
53+
color: var(--ibexa-dusk-black);
5354
}
5455

5556
.ais-Hits-item div:nth-child(2) {
56-
font-size: 0.95em;
57+
font-size: 1.0em;
5758
}
5859

5960
.ais-Hits-item div:nth-child(3) {
60-
font-size: 0.90em;
61+
font-size: 0.95em;
6162
}
6263

6364
.ais-Hits-item div:nth-child(4) {
64-
font-size: 0.85em;
65+
font-size: 0.90em;
6566
}
6667

6768
.ais-Hits-item div:nth-child(5) {
68-
font-size: 0.80em;
69+
font-size: 0.85em;
6970
}
7071

7172
.ais-Hits-item div:nth-child(6) {
72-
font-size: 0.75em;
73+
font-size: 0.80em;
7374
}
7475

7576
.ais-Hits-item div:nth-child(7) {
77+
font-size: 0.75em;
78+
}
79+
80+
.ais-Hits-item div:nth-child(8) {
7681
font-size: 0.70em;
7782
color: var(--ibexa-dusk-black);
7883
}
7984

80-
.ais-Hits-item div:nth-child(7):before {
85+
.ais-Hits-item div:not(:first-child):not(:nth-child(2)):nth-child(8):before {
8186
content: none;
8287
}
8388

@@ -181,6 +186,7 @@ <h1>Ibexa Documentation Search</h1>
181186
templates: {
182187
item: `
183188
<a href="{{url}}">
189+
<div>{{#helpers.highlight}}{ "attribute": "hierarchy.lvl0", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>
184190
<div>{{#helpers.highlight}}{ "attribute": "hierarchy.lvl1", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>
185191
<div>{{#helpers.highlight}}{ "attribute": "hierarchy.lvl2", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>
186192
<div>{{#helpers.highlight}}{ "attribute": "hierarchy.lvl3", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>

0 commit comments

Comments
 (0)