Skip to content

Commit 1dc2770

Browse files
committed
Theming search form
1 parent d741708 commit 1dc2770

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
@@ -7,12 +7,15 @@ pre {
77
box-shadow: none;
88
}
99
a,
10-
a:visited {
10+
a:visited,
11+
main.bd-content #main-content a,
12+
main.bd-content #main-content a:visited {
1113
color: #2980b9;
1214
}
13-
a:hover {
14-
color: #176aa1;
15-
text-decoration: underline;
15+
a:hover,
16+
main.bd-content #main-content a:hover {
17+
color: #1a567e;
18+
text-decoration: none;
1619
}
1720
ul {
1821
list-style-type: square;
@@ -129,8 +132,14 @@ p.search-summary {
129132
list-style-type: none;
130133
padding-left: 0;
131134
}
135+
#search-results ul li,
136+
ul.search li {
137+
margin-bottom: 2rem;
138+
padding: 0;
139+
background-image: none;
140+
}
132141
#search-results ul li h3 {
133-
margin: 0.75rem 0 .5rem;
142+
margin: 0.4rem 0 .5rem;
134143
font-size: 1.5rem;
135144
}
136145
#search-results ul li .breadcrumbs {
@@ -149,17 +158,6 @@ p.search-summary {
149158

150159
text-overflow: ellipsis;
151160
}
152-
#search-results ul li,
153-
ul.search li {
154-
margin-bottom: 2rem;
155-
padding: 2px 0 5px 4rem;
156-
background-image: url(file.svg);
157-
background-blend-mode: hue;
158-
background-color: violetred;
159-
background-repeat: no-repeat;
160-
background-position: 0px 8px;
161-
background-size: 56px;
162-
}
163161
ul.search li p.context {
164162
margin-left: 0;
165163
}

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)