From 839d434f75378f5097990c46fc5168b6fd3005ad Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Sat, 16 Mar 2024 18:45:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BE=8E=E5=8C=96=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/index.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/apps/web/src/index.css b/apps/web/src/index.css index e69de29..6870428 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -0,0 +1,29 @@ +/** +* ===================================== +* 滚动条美化 +**/ + +/* 亮色 */ +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-thumb { + background-color: #b8b8b8; + background-clip: padding-box; + border-radius: 8px; +} + +::-webkit-scrollbar-thumb:hover { + background-color: #878787; +} + +/* 暗色 */ +body[theme-mode=dark] ::-webkit-scrollbar-thumb { + background: #565656; +} + +body[theme-mode=dark] ::-webkit-scrollbar-thumb:hover { + background: #424242; /* 更深的灰色 */ +} \ No newline at end of file