Skip to content

Commit b8eb235

Browse files
fix: 移除隐藏滚动条的样式,保持滚动功能
Signed-off-by: wangsimiao1 <wangsimiao1@xiaomi.com>
1 parent a718f6b commit b8eb235

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

_sass/base/_base.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ html {
3232
}
3333
}
3434

35+
scrollbar-width: none; /* Firefox */
36+
-ms-overflow-style: none; /* IE/Edge */
37+
38+
&::-webkit-scrollbar {
39+
display: none; /* Chrome, Safari, Opera */
40+
}
41+
3542
@include bp.lg {
3643
overflow-y: scroll;
3744
}

assets/css/jekyll-theme-chirpy.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,3 @@
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)