From 3b5441a1c2096bc3d0cbce74a6108f933735cc07 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 2 Apr 2021 22:57:06 +0800 Subject: [PATCH] Hide scrollbar of sidebar --- _sass/addon/commons.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index b5c5bb0..1ba0d51 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -603,6 +603,15 @@ $sidebar-display: "sidebar-display"; z-index: 99; background: var(--sidebar-bg); + /* Hide scrollbar for Chrome, Safari and Opera */ + &::-webkit-scrollbar { + display: none; + } + + /* Hide scrollbar for IE, Edge and Firefox */ + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ + a { @include sidebar-links;