Skip to content

Commit 1df3efd

Browse files
committed
Theming search form
1 parent 4309b4f commit 1df3efd

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

docs/_static/custom.css

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ pre {
1414
box-shadow: none;
1515
}
1616
a,
17-
a:visited {
17+
a:visited,
18+
main.bd-content #main-content a,
19+
main.bd-content #main-content a:visited {
1820
color: #2980b9;
1921
}
20-
a:hover {
21-
color: #176aa1;
22-
text-decoration: underline;
22+
a:hover,
23+
main.bd-content #main-content a:hover {
24+
color: #1a567e;
25+
text-decoration: none;
2326
}
2427
ul {
2528
list-style-type: square;
@@ -152,8 +155,14 @@ p.search-summary {
152155
list-style-type: none;
153156
padding-left: 0;
154157
}
158+
#search-results ul li,
159+
ul.search li {
160+
margin-bottom: 2rem;
161+
padding: 0;
162+
background-image: none;
163+
}
155164
#search-results ul li h3 {
156-
margin: 0.75rem 0 .5rem;
165+
margin: 0.4rem 0 .5rem;
157166
font-size: 1.5rem;
158167
}
159168
#search-results ul li .breadcrumbs {
@@ -172,17 +181,6 @@ p.search-summary {
172181

173182
text-overflow: ellipsis;
174183
}
175-
#search-results ul li,
176-
ul.search li {
177-
margin-bottom: 2rem;
178-
padding: 2px 0 5px 4rem;
179-
background-image: url(file.svg);
180-
background-blend-mode: hue;
181-
background-color: violetred;
182-
background-repeat: no-repeat;
183-
background-position: 0px 8px;
184-
background-size: 56px;
185-
}
186184
ul.search li p.context {
187185
margin-left: 0;
188186
}

docs/_static/searchtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ var Search = {
264264
})
265265
let markup = path
266266
.map((el, idx) => {
267-
return idx===0 ? `<a href="/${el.path}"><b>${el.title}</b></a>` : `<a href="/${el.path}">${el.title}</a>`
267+
return `<a href="/${el.path}">${el.title}</a>`
268268
})
269269
markup.push(`<span class="lastbreadcrumb">${item[1]}</span>`)
270270
return markup.join('<span class="pathseparator">&gt;</span>');

docs/_templates/search.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
6666
</div>
6767
</div>
6868

69-
<div class="form-row mb-2">
70-
<label for="doc_section" class="col">Filter by section</label>
71-
<div class="col-sm-10">
69+
<div class="form row mb-2">
70+
<label for="doc_section" class="col sr-only">Filter by section</label>
71+
<div class="col">
7272
<div class="form-check">
7373
<input class="form-check-input" type="radio" name="doc_section" id="doc_section_all" value="all">
7474
<label class="form-check-label" for="doc_section_all">

0 commit comments

Comments
 (0)