From 2528f35f008dcc39e2a6c6680ab771a9da7c20f5 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Mon, 28 Nov 2016 06:36:19 -0700 Subject: Autoscroll page table of contents near top of side nav menu if on large screens, but set position to static on small screens to fix display bug --- doc/toc.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/doc/toc.html b/doc/toc.html index da67ff88b..23eb57b64 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -8,14 +8,18 @@ .doco-list-group-item { padding-left: 15px; } - .widget { + #region_1 .widget { position: fixed; top:70px; width: inherit; height: 80%; overflow-y: scroll; } - + @media screen and (max-width: 767px) { + #region_1 .widget { + position: static; + } + }
@@ -120,11 +124,13 @@ break; default: break; - } + } + // Generate the table of contents in the side nav menu (see view/tpl/help.tpl) $(document).ready(function () { var tocUl = $('#page-toc-container').append('