Skip to content

Commit b96ad65

Browse files
committed
2 parents ce7b4ea + d3d3c78 commit b96ad65

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

src/components/Sidebar.astro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ categories.forEach((category) => {
194194
height: 100%;
195195
overflow-y: auto;
196196
padding: 1rem;
197+
/* Hide scrollbar for all browsers */
198+
scrollbar-width: none; /* Firefox */
199+
-ms-overflow-style: none; /* IE and Edge */
200+
}
201+
202+
.sidebar-nav::-webkit-scrollbar {
203+
display: none; /* Chrome, Safari and Opera */
197204
}
198205

199206
ul {

src/styles/custom-layout.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,20 @@ main.main-pane {
4444
display: block;
4545
margin-left: auto;
4646
margin-right: auto;
47-
}
47+
}
48+
49+
/* Hide scrollbar in left sidebar */
50+
.sidebar-pane,
51+
.sidebar-content,
52+
starlight-menu-button ~ nav,
53+
nav[aria-label="Main"] {
54+
scrollbar-width: none !important; /* Firefox */
55+
-ms-overflow-style: none !important; /* IE and Edge */
56+
}
57+
58+
.sidebar-pane::-webkit-scrollbar,
59+
.sidebar-content::-webkit-scrollbar,
60+
starlight-menu-button ~ nav::-webkit-scrollbar,
61+
nav[aria-label="Main"]::-webkit-scrollbar {
62+
display: none !important; /* Chrome, Safari and Opera */
63+
}

0 commit comments

Comments
 (0)