From 2f3c5dfd14475e76588e735c217ad9182ca9b6a3 Mon Sep 17 00:00:00 2001 From: Will Stevens Date: Wed, 11 Jun 2014 13:22:23 -0400 Subject: [PATCH] added an example to the demo docs and configured it to use sticky nav for the demo to work --- demo_docs/source/index.rst | 1 + demo_docs/source/long.rst | 124 +++++++++++++++++++++++++++++++++++++ sass/_theme_layout.sass | 7 ++- 3 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 demo_docs/source/long.rst diff --git a/demo_docs/source/index.rst b/demo_docs/source/index.rst index 55b301e2..e1cf1fdb 100644 --- a/demo_docs/source/index.rst +++ b/demo_docs/source/index.rst @@ -17,6 +17,7 @@ Contents: demo list + long Maaaaath! ========= diff --git a/demo_docs/source/long.rst b/demo_docs/source/long.rst new file mode 100644 index 00000000..cdb8e120 --- /dev/null +++ b/demo_docs/source/long.rst @@ -0,0 +1,124 @@ +Long Sticky Nav +=============== + +This section demonstrates how the 'sticky_navigation' setting behaves when the menu is very long. When this section is selected, it will make the menu and the main area scroll when you are at the top of the page. + + +Example Menu 1 +-------------- + +Just a place holder... + + +Example Menu 2 +-------------- + +Just a place holder... + + +Example Menu 3 +-------------- + +Just a place holder... + + +Example Menu 4 +-------------- + +Just a place holder... + + +Example Menu 5 +-------------- + +Just a place holder... + + +Example Menu 6 +-------------- + +Just a place holder... + + +Example Menu 7 +-------------- + +Just a place holder... + + +Example Menu 8 +-------------- + +Just a place holder... + + +Example Menu 9 +-------------- + +Just a place holder... + + +Example Menu 10 +--------------- + +Just a place holder... + + +Example Menu 11 +--------------- + +Just a place holder... + + +Example Menu 12 +--------------- + +Just a place holder... + + +Example Menu 13 +--------------- + +Just a place holder... + + +Example Menu 14 +--------------- + +Just a place holder... + + +Example Menu 15 +--------------- + +Just a place holder... + + +Example Menu 16 +--------------- + +Just a place holder... + + +Example Menu 17 +--------------- + +Just a place holder... + + +Example Menu 18 +--------------- + +Just a place holder... + + +Example Menu 19 +--------------- + +Just a place holder... + + +Example Menu 20 +--------------- + +Just a place holder... diff --git a/sass/_theme_layout.sass b/sass/_theme_layout.sass index d85de529..30d9a457 100644 --- a/sass/_theme_layout.sass +++ b/sass/_theme_layout.sass @@ -299,5 +299,8 @@ footer margin-left: 0 nav.stickynav - position: fixed - top: 0 + position:fixed + top:0 + bottom:0 + overflow-x:hidden + overflow-y:hidden