Skip to content

Commit 9212fcb

Browse files
authored
Merge pull request plone#1210 from plone/book-theme-fixes
Book theme fixes after sphinx-book-theme release v0.3.0 and version pin sphinx-book-theme<=0.3.99
2 parents 590c854 + d4eeefc commit 9212fcb

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/_static/custom.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ span.linenos {
5151
p.ploneorglink img {
5252
vertical-align: bottom;
5353
}
54-
dt:target, span.highlighted {
54+
dt:target,
55+
span.highlighted,
56+
ul.search li span.highlighted {
5557
background-color: #7ddf4493;
5658
}
5759

@@ -145,6 +147,13 @@ div.admonition.admonition-todo > .admonition-title::before {
145147
}
146148

147149
/* Search */
150+
151+
/* Show search form. It is hidden by default. */
152+
#search-documentation,
153+
#search-documentation~form,
154+
#search-documentation~p {
155+
display:block;
156+
}
148157
ul.search {
149158
margin-left: 0;
150159
}
@@ -160,6 +169,7 @@ ul.search li {
160169
margin-bottom: 2rem;
161170
padding: 0;
162171
background-image: none;
172+
border-bottom: none;
163173
}
164174
#search-results ul li h3 {
165175
margin: 0.4rem 0 .5rem;

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ lesscpy
55
linkify-it-py
66
myst-parser
77
sphinx-autobuild
8-
sphinx-book-theme
8+
sphinx-book-theme<=0.3.99
99
sphinx-copybutton
1010
sphinx-sitemap
1111
sphinx-togglebutton

0 commit comments

Comments
 (0)