From b9afcf589fed4f19cd1912b55169a7ffcfa113ce Mon Sep 17 00:00:00 2001 From: ljvmiranda921 Date: Sun, 30 Jul 2017 20:01:22 +0900 Subject: [PATCH] Updated RTD sidebar look (#16) --- docs/_static/theme_overrides.css | 17 +++++++++++++++++ docs/conf.py | 6 ++++++ 2 files changed, 23 insertions(+) create mode 100644 docs/_static/theme_overrides.css diff --git a/docs/_static/theme_overrides.css b/docs/_static/theme_overrides.css new file mode 100644 index 00000000..0e4da362 --- /dev/null +++ b/docs/_static/theme_overrides.css @@ -0,0 +1,17 @@ +.wy-menu-vertical header, .wy-menu-vertical p.caption { + color: gold; +} + +.wy-menu-vertical a { + color: white; +} + +.wy-side-nav-search +{ + color: #cacaca; + background: #074E68 +} + +.wy-side-nav-search input[type=text] { + border-color: rgba(7, 78, 104, 0.83); +} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 76bac8a0..fe9fbb21 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -152,6 +152,12 @@ # "default.css". html_static_path = ['_static'] +html_context = { + 'css_files': [ + '_static/theme_overrides.css', # overrides for wide tables in RTD theme + ], + } + # If not '', a 'Last updated on:' timestamp is inserted at every page # bottom, using the given strftime format. html_last_updated_fmt = '%b %d, %Y'