🐛 fix dark mode issue
BIN
src/assets/images/3dr_chihiro.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
src/assets/images/3dr_howlbg.jpg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
src/assets/images/3dr_howlcastle.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
src/assets/images/3dr_mono.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
src/assets/images/3dr_monobg.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
src/assets/images/3dr_spirited.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
src/assets/images/cloud.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
src/assets/images/clouds.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
src/assets/images/logo.png
Normal file
After Width: | Height: | Size: 292 KiB |
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 8px;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-button {
|
||||
|
@@ -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() {
|
||||
|