Skip to content

Commit 05d9303

Browse files
committed
Theming search results and form
1 parent 38fb894 commit 05d9303

File tree

1 file changed

+46
-19
lines changed

1 file changed

+46
-19
lines changed

docs/_static/custom.css

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ span.linenos {
4848
p.ploneorglink img {
4949
vertical-align: bottom;
5050
}
51+
dt:target, span.highlighted {
52+
background-color: #7ddf4493;
53+
}
5154

5255
.bd-sidebar .nav ul {
5356
padding: 0 0 0 1rem;
@@ -126,36 +129,60 @@ div.admonition.admonition-todo > .admonition-title::before {
126129
font-weight: bold;
127130
}
128131

129-
#search-form {
130-
display: flex;
131-
flex-direction: row;
132-
align-items: baseline;
133-
flex-wrap: wrap;
134-
}
135-
#search-form select,
136-
#search-form input[type="text"] {
137-
height: 2rem;
138-
margin-right: 1rem;
139-
margin-bottom: 1rem;
140-
background-color: white;
141-
border: 1px solid darkgrey;
132+
133+
/* Bootstrap */
134+
.btn-primary {
135+
color: #fff;
136+
background-color: #2980b9;
137+
border-color: #2980b9;
142138
}
143-
#search-form input[type="submit"] {
144-
margin-right: 1rem;
139+
.btn-primary {
140+
background-color: #1f86ca;
141+
border-color: #2980b9;
145142
}
146-
ul.search .title_doc_section::before {
147-
content: ' – ';
143+
144+
/* Search */
145+
ul.search {
146+
margin-left: 0;
148147
}
149148
p.search-summary {
150-
margin-top: 1em;
149+
margin: 1em 0 2rem 0;
151150
}
152151
#search-results ul {
153152
list-style-type: none;
154153
padding-left: 0;
155154
}
156155
#search-results ul li {
157-
margin-bottom: 1em;
156+
margin-bottom: 2rem;
157+
padding: 2px 0 5px 2rem;
158+
}
159+
#search-results ul li h3 {
160+
margin: 0.75rem 0 .5rem;
161+
font-size: 1.5rem;
158162
}
163+
#search-results ul li .breadcrumbs {
164+
display: flex;
165+
flex-direction: row;
166+
flex-wrap: wrap;
167+
}
168+
#search-results ul li .breadcrumbs a {
169+
font-weight: normal;
170+
}
171+
#search-results ul li .breadcrumbs .lastbreadcrumb {
172+
white-space: nowrap;
173+
display: inline-block;
174+
max-width: 12rem;
175+
overflow: hidden; /* "overflow"-Wert darf nicht "visible" sein */
176+
177+
text-overflow: ellipsis;
178+
}
179+
ul.search li p.context {
180+
margin-left: 0;
181+
}
182+
.pathseparator {
183+
padding: 0 0.7rem;
184+
}
185+
159186

160187
/* submenu */
161188
.bd-toc {

0 commit comments

Comments
 (0)