Skip to content

Commit 476dec4

Browse files
Changing the parameter name to style_nav_header_background
Also making it to modify the background css property instead of background-color Signed-off-by: Gergely Csatari <[email protected]>
1 parent 3af8d2f commit 476dec4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
{# SIDE NAV, TOGGLES ON MOBILE #}
109109
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
110110
<div class="wy-side-scroll">
111-
<div class="wy-side-nav-search" {% if theme_nav_header_background_color %} style="background-color: {{theme_nav_header_background_color}}" {% endif %}>
111+
<div class="wy-side-nav-search" {% if theme_style_nav_header_background %} style="background: {{theme_style_nav_header_background}}" {% endif %}>
112112
{% block sidebartitle %}
113113

114114
{% if logo and theme_logo_only %}

sphinx_rtd_theme/theme.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ collapse_navigation = True
1010
sticky_navigation = True
1111
navigation_depth = 4
1212
includehidden = True
13-
nav_header_background_color =
14-
titles_only =
15-
logo_only =
13+
titles_only =
14+
logo_only =
1615
display_version = True
1716
prev_next_buttons_location = bottom
1817
style_external_links = False
18+
style_nav_header_background =

0 commit comments

Comments
 (0)