Skip to content

Commit c600d33

Browse files
Jon Wayne ParrottMariatta
authored andcommitted
Add background color back to navigation bar (pythonGH-357)
1 parent a3176a3 commit c600d33

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

conf.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
3434
todo_include_todos = True
3535

36-
# Add any paths that contain templates here, relative to this directory.
37-
templates_path = ['_templates']
38-
3936
# The suffix of source filenames.
4037
source_suffix = '.rst'
4138

@@ -118,7 +115,7 @@
118115
}
119116

120117
# Additional static files.
121-
#html_static_path = ['tools/static']
118+
html_static_path = ['tools/static']
122119

123120
# A shorter title for the navigation bar. Default is the same as html_title.
124121
#html_short_title = None
@@ -132,12 +129,6 @@
132129
# pixels large.
133130
#html_favicon = None
134131

135-
# Add any paths that contain custom static files (such as style sheets) here,
136-
# relative to this directory. They are copied after the builtin static files,
137-
# so a file named "default.css" will overwrite the builtin "default.css".
138-
# Commented out as Hg doesn't track empty directories.
139-
#html_static_path = ['_static']
140-
141132
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
142133
# using the given strftime format.
143134
html_last_updated_fmt = '%b %d, %Y'
@@ -146,9 +137,6 @@
146137
# typographically correct entities.
147138
#html_use_smartypants = True
148139

149-
# Custom sidebar templates, maps document names to template names.
150-
#html_sidebars = {}
151-
152140
# Additional templates that should be rendered to pages, maps page names to
153141
# template names.
154142
#html_additional_pages = {}
@@ -239,3 +227,7 @@
239227
'\/.*',
240228
]
241229

230+
# Use our custom CSS stylesheet to differentiate us from the official python
231+
# docs.
232+
def setup(app):
233+
app.add_stylesheet('custom.css')

tools/static/custom.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
div.related {
2+
background-color: #6BA81E;
3+
color: #DDD;
4+
border-radius: 5px;
5+
}
6+
7+
div.related a {
8+
color: #FFF;
9+
}
10+
11+
div.related a:hover {
12+
color: #EEF;
13+
}

0 commit comments

Comments
 (0)