From 7167dd4e35e61139a25b9dfc1d6db73f5864c720 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 11 Oct 2021 19:10:57 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E6=94=B9=E4=B8=8D=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/styles/index.scss | 13 ++++++------- frontend/src/styles/theme/dark.scss | 5 +++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 6b63f7a000..36e3cc149a 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -360,17 +360,12 @@ div:focus { z-index: 10000 !important; } -/* ::-webkit-scrollbar-thumb { - width: 10px; - height: 10px; - background: #d7d9e3; - border-radius: 4px; -} */ + ::-webkit-scrollbar-thumb { width: 10px; height: 10px; - background: #38393a !important; + background: #d7d9e3; border-radius: 4px; } @@ -617,5 +612,9 @@ div:focus { background-color: rgb(135 131 131 / 70%); } +.blackTheme >>> ::-webkit-scrollbar-thumb { + background: #38393a !important; +} + diff --git a/frontend/src/styles/theme/dark.scss b/frontend/src/styles/theme/dark.scss index 5cae28f8fb..1ca486bd9e 100644 --- a/frontend/src/styles/theme/dark.scss +++ b/frontend/src/styles/theme/dark.scss @@ -21,6 +21,8 @@ $--color-black: #FFFFFF; $--background-color-base: #171b22; + + // 与CSS原生变量映射 #app { --Main:#2681ff; @@ -53,6 +55,9 @@ $--background-color-base: #171b22; --TableBorderColor: #495865; --background-color-base: #171b22; + + + }