From 295dcfa13fc726217e4ab555bb55c7ac7bd00a53 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 18 Sep 2023 23:48:07 +0200 Subject: [PATCH] Hide scrollbar when the side-nav expands (etc) (#79) --- Gemfile.lock | 7 ++++++- docs/_sass/custom/custom.scss | 14 +++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 055d2f64..afe954b0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -25,12 +25,13 @@ GEM ethon (0.16.0) ffi (>= 1.15.0) eventmachine (1.2.7) - execjs (2.9.0) + execjs (2.9.1) faraday (2.7.11) base64 faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) faraday-net_http (3.0.2) + ffi (1.15.5) ffi (1.15.5-x64-mingw-ucrt) forwardable-extended (2.6.0) gemoji (3.0.1) @@ -234,6 +235,8 @@ GEM minitest (5.20.0) nokogiri (1.15.4-x64-mingw-ucrt) racc (~> 1.4) + nokogiri (1.15.4-x86_64-linux) + racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3) sawyer (~> 0.9) @@ -277,6 +280,7 @@ GEM tzinfo (>= 1.0.0) unf (0.1.4) unf_ext + unf_ext (0.0.8.2) unf_ext (0.0.8.2-x64-mingw-ucrt) unicode-display_width (1.8.0) wdm (0.1.1) @@ -285,6 +289,7 @@ GEM PLATFORMS x64-mingw-ucrt + x86_64-linux DEPENDENCIES github-pages diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index 8ace10de..57d6ed88 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -81,4 +81,16 @@ width: 50%; } } - /***** END Homepage styling*****/ \ No newline at end of file + /***** END Homepage styling*****/ + +// Hide the side nav scrollbar when the contents overflow it verticallybundler +.site-nav { + &::-webkit-scrollbar { + display: none; + } + + @include mq(md) { + -ms-overflow-style: none; /* IE and Edge Hide scrollbar*/ + scrollbar-width: none; /* Firefox Hide scrollbar*/ + } +}