Skip to content

Commit 3af8d2f

Browse files
Making the background of search configurable
Signed-off-by: Gergely Csatari <[email protected]>
1 parent ab10feb commit 3af8d2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@
105105

106106
{% block extrabody %} {% endblock %}
107107
<div class="wy-grid-for-nav">
108-
109108
{# SIDE NAV, TOGGLES ON MOBILE #}
110109
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
111110
<div class="wy-side-scroll">
112-
<div class="wy-side-nav-search">
111+
<div class="wy-side-nav-search" {% if theme_nav_header_background_color %} style="background-color: {{theme_nav_header_background_color}}" {% endif %}>
113112
{% block sidebartitle %}
114113

115114
{% if logo and theme_logo_only %}

sphinx_rtd_theme/theme.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ collapse_navigation = True
1010
sticky_navigation = True
1111
navigation_depth = 4
1212
includehidden = True
13+
nav_header_background_color =
1314
titles_only =
14-
logo_only =
15+
logo_only =
1516
display_version = True
1617
prev_next_buttons_location = bottom
1718
style_external_links = False

0 commit comments

Comments
 (0)