From 21cb0610e1832d4fc22db2b04b35e46f4b54d030 Mon Sep 17 00:00:00 2001 From: xy <10816187@qq.com> Date: Sun, 16 Aug 2026 15:55:07 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/css-reset.css | 21 --------------------- src/styles/global.css | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/styles/css-reset.css b/src/styles/css-reset.css index 7160a12..d3a841f 100644 --- a/src/styles/css-reset.css +++ b/src/styles/css-reset.css @@ -8,27 +8,6 @@ a { text-decoration: none; } -::-webkit-scrollbar { - width: 8px; - height: 8px; -} - -/* 滚动条轨道 */ -::-webkit-scrollbar-track { - background: transparent; -} - -/* 滚动条滑块 */ -::-webkit-scrollbar-thumb { - background: #cbd5e1; - border-radius: 999px; -} - -/* 鼠标悬停 */ -::-webkit-scrollbar-thumb:hover { - background: #94a3b8; -} - ul,li{ list-style: none; } diff --git a/src/styles/global.css b/src/styles/global.css index 5b925d1..f566c7d 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -44,3 +44,24 @@ body { font-family: var(--font-family), serif; color: var(--text-primary); } + +::-webkit-scrollbar { + width: 6px; + height: 6px; +} + +/* 滚动条轨道 */ +::-webkit-scrollbar-track { + background: transparent; +} + +/* 滚动条滑块 */ +::-webkit-scrollbar-thumb { + background: rgba(139,139,139,.5); + border-radius: 999px; +} + +/* 鼠标悬停 */ +::-webkit-scrollbar-thumb:hover { + background: rgba(139,139,139,.7); +}