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; + + + }