From bcf2276d5b5a41144c23e818ca5f203c032fb251 Mon Sep 17 00:00:00 2001 From: Eric Hough Date: Sun, 5 Jan 2014 17:17:41 -0500 Subject: [PATCH 1/5] Adding sticky navigation option --- demo_docs/source/conf.py | 4 +++- sass/_theme_layout.sass | 3 +++ sphinx_rtd_theme/layout.html | 2 +- sphinx_rtd_theme/theme.conf | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/demo_docs/source/conf.py b/demo_docs/source/conf.py index ac160a14..50d0ed76 100644 --- a/demo_docs/source/conf.py +++ b/demo_docs/source/conf.py @@ -106,7 +106,9 @@ html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -#html_theme_options = {} +html_theme_options = { + 'sticky_navigation' : False # Set to True to "stick" the navigation during scrolling +} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = ["../.."] diff --git a/sass/_theme_layout.sass b/sass/_theme_layout.sass index adb82322..9b4543e4 100644 --- a/sass/_theme_layout.sass +++ b/sass/_theme_layout.sass @@ -286,3 +286,6 @@ footer .wy-nav-content-wrap margin-left: 0 +.stickynav + position: fixed + top: 0 diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 1e05b1ef..7a3a354a 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -94,7 +94,7 @@
{# SIDE NAV, TOGGLES ON MOBILE #} -