Skip to content

Commit 851bc4a

Browse files
committed
instantsearch.html: Add content; Display results in a list
1 parent 5c1108b commit 851bc4a

File tree

1 file changed

+31
-11
lines changed

1 file changed

+31
-11
lines changed

theme/instantsearch.html

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,54 +17,68 @@
1717
display: none
1818
}
1919

20-
.md-typeset ol.ais-Hits-list:not([hidden]), .md-typeset ul.ais-Pagination-list:not([hidden]) {
20+
.md-typeset ul.ais-Pagination-list:not([hidden]) {
2121
display: flex;
2222
list-style: none;
2323
margin: 0;
2424
}
2525

26-
.md-typeset ol.ais-Hits-list li {
27-
margin: 0.5rem;
26+
.md-typeset ol.ais-Hits-list li.ais-Hits-item {
27+
padding: 5px 0;
28+
width: auto;
29+
margin: 0;
30+
border: 1px solid grey;
31+
border-width: 0 0 1px;
32+
box-shadow: none;
2833
}
2934

3035
.md-typeset ol.ais-Hits-list li a.external:after {
31-
content: '';
36+
content: none;
3237
}
3338

3439
.ais-Hits-item div:not(:first-child):before {
3540
content: ' > ';
3641
}
3742

3843
.ais-Hits-item div:not(:first-child):empty:before {
39-
content: '';
44+
content: none;
4045
}
4146

4247
.ais-Hits-item a {
43-
font-size: 18px;
48+
font-size: 20px;
4449
}
4550

4651
.ais-Hits-item div:nth-child(1) {
4752
font-size: 1.0em;
4853
}
4954

5055
.ais-Hits-item div:nth-child(2) {
51-
font-size: 0.9em;
56+
font-size: 0.95em;
5257
}
5358

5459
.ais-Hits-item div:nth-child(3) {
55-
font-size: 0.8em;
60+
font-size: 0.90em;
5661
}
5762

5863
.ais-Hits-item div:nth-child(4) {
59-
font-size: 0.7em;
64+
font-size: 0.85em;
6065
}
6166

6267
.ais-Hits-item div:nth-child(5) {
63-
font-size: 0.6em;
68+
font-size: 0.80em;
6469
}
6570

6671
.ais-Hits-item div:nth-child(6) {
67-
font-size: 0.5em;
72+
font-size: 0.75em;
73+
}
74+
75+
.ais-Hits-item div:nth-child(7) {
76+
font-size: 0.70em;
77+
color: var(--ibexa-dusk-black);
78+
}
79+
80+
.ais-Hits-item div:nth-child(7):before {
81+
content: none;
6882
}
6983

7084
.ais-Hits-item div .ais-Highlight-highlighted {
@@ -74,6 +88,11 @@
7488
.md-typeset ul.ais-Pagination-list li {
7589
margin: 0;
7690
}
91+
92+
.ais-Pagination-link {
93+
border: none;
94+
font-size: small;
95+
}
7796
</style>
7897
{% endblock %}
7998

@@ -159,6 +178,7 @@ <h1>Ibexa Documentation Search</h1>
159178
<div>{{#helpers.highlight}}{ "attribute": "hierarchy.lvl4", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>
160179
<div>{{#helpers.highlight}}{ "attribute": "hierarchy.lvl5", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>
161180
<div>{{#helpers.highlight}}{ "attribute": "hierarchy.lvl6", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>
181+
<div>{{#helpers.highlight}}{ "attribute": "content", "highlightedTagName": "strong" }{{/helpers.highlight}}</div>
162182
</a>
163183
`,
164184
},

0 commit comments

Comments
 (0)