Skip to content

Commit

Permalink
Hide scrollbar when the side-nav expands (etc) (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
HumbleDeer authored Sep 18, 2023
1 parent 83cb14f commit 295dcfa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -285,6 +289,7 @@ GEM

PLATFORMS
x64-mingw-ucrt
x86_64-linux

DEPENDENCIES
github-pages
Expand Down
14 changes: 13 additions & 1 deletion docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,16 @@
width: 50%;
}
}
/***** END Homepage styling*****/
/***** 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*/
}
}

0 comments on commit 295dcfa

Please sign in to comment.