🐛 fix dark mode issue

This commit is contained in:
landaiqing
2024-08-20 23:28:46 +08:00
parent 498807ca66
commit 7683fffb34
36 changed files with 1249 additions and 237 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
src/assets/images/cloud.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
src/assets/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

View File

@@ -1,18 +1,22 @@
@import "theme";
body {
:root {
--background-color: #ffffff;
--text-color: #000000;
}
[data-theme="dark"] {
--background-color: #121212;
--text-color: #ffffff;
}
#app {
position: relative;
transition: background-color 0.3s,
color 0.3s;
width: 100vw;
height: 100vh;
@include useTheme {
background-color: getModeVar('bgColor') !important;
color: getModeVar('infoColor') !important;
}
}
#app {
overflow-x: hidden;
@include useTheme {
background-color: getModeVar('bgColor') !important;
color: getModeVar('infoColor') !important;
@@ -35,3 +39,5 @@ body {
#nprogress .peg {
box-shadow: 0 0 10px cyan, 0 0 5px cyan !important;
}

View File

@@ -1,7 +1,7 @@
::-webkit-scrollbar {
width: 6px;
height: 8px;
width: 1px;
height: 1px;
}
::-webkit-scrollbar-button {

View File

@@ -1,16 +1,15 @@
@import "colors.module";
$modes: (
light: (
bgColor: #fff,
"light": (
bgColor: transparent,
infoColor: #000
),
dark: (
"dark": (
bgColor: #000,
infoColor: #fff
)
);
$curMode: light;
$curTheme: red;
@mixin useTheme() {