Skip to content

Commit 56359b4

Browse files
feat: 隐藏滚动条以保持滚动功能
Signed-off-by: wangsimiao1 <wangsimiao1@xiaomi.com>
1 parent 17191c3 commit 56359b4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

assets/css/jekyll-theme-chirpy.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@
99
';
1010

1111
/* append your custom style below */
12+
13+
/* Hide scrollbar while keeping scroll functionality */
14+
html {
15+
scrollbar-width: none; /* Firefox */
16+
-ms-overflow-style: none; /* IE/Edge */
17+
}
18+
19+
html::-webkit-scrollbar {
20+
display: none; /* Chrome, Safari, Opera */
21+
}

0 commit comments

Comments
 (0)