Skip to content

Commit

Permalink
revert: 还原滚动条样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Nov 8, 2024
1 parent 233bd62 commit 8568ac1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
// 全局类名样式
@import './global.scss';

// 自定义原生滚动条样式
@import './scrollbar-reset.scss';

// 自定义 nprogress 插件进度条颜色
@import './nprogress.scss';

Expand Down
22 changes: 22 additions & 0 deletions src/styles/scrollbar-reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* 美化滚动条 */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}

::-webkit-scrollbar-thumb {
width: 6px;
border-radius: 6px;
background-color: var(--color-neutral-3);
}

::-webkit-scrollbar-thumb:hover {
width: 6px;
background-color: var(--color-neutral-4);
}

::-ms-scrollbar-thumb {
width: 6px;
border-radius: 6px;
background-color: var(--color-neutral-3);
}

0 comments on commit 8568ac1

Please sign in to comment.