summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpany <[email protected]>2023-06-05 11:36:03 +0800
committerpany <[email protected]>2023-06-05 11:36:03 +0800
commitb2ee4348b7708bee82c58853c1c61a5d24ad9850 (patch)
treeb5538798f09168f55fbf24420b1acff0c3e374f1
parent155c3e247b210379faff57cb7385c5eee044f6f9 (diff)
style: 优化多主题下滚动条样式
-rw-r--r--src/styles/mixins.scss17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/styles/mixins.scss b/src/styles/mixins.scss
index b207420..d171cf0 100644
--- a/src/styles/mixins.scss
+++ b/src/styles/mixins.scss
@@ -7,23 +7,20 @@
}
@mixin scrollbar {
+ // 整个滚动条
&::-webkit-scrollbar {
width: 8px;
- height: 8px; // 也要兼容 height 样式
- background: transparent;
+ height: 8px;
}
+ // 滚动条上的滚动滑块
&::-webkit-scrollbar-thumb {
- border-radius: 16px;
- background-color: #d6d7d9;
+ border-radius: 4px;
+ background-color: #90939955;
}
&::-webkit-scrollbar-thumb:hover {
- background-color: #c0c3c5;
+ background-color: #90939977;
}
&::-webkit-scrollbar-thumb:active {
- background-color: #acafb2;
- }
- &::-webkit-scrollbar-button {
- background: transparent;
- height: 10px;
+ background-color: #90939999;
}
}