Skip to content

Commit

Permalink
fix: 修复暗色主题下背景白色
Browse files Browse the repository at this point in the history
  • Loading branch information
Devifish committed Jun 30, 2023
1 parent 9c13b27 commit 0cd2a8c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true
[*]
charset=utf-8

[{*.js,*.ts,*.vue}]
[{*.js,*.ts,*.vue,*.less}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
Expand Down
6 changes: 0 additions & 6 deletions src/style/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,4 @@ body {
width: 100%;
height: 100%;
margin: 0;
}

[data-theme="dark"] {
body {
color: rgba(255, 255, 255, 0.85);
}
}
6 changes: 6 additions & 0 deletions src/style/dark.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[data-theme="dark"] {
body {
color: rgba(255, 255, 255, 0.85);
background-color: #000;
}
}
3 changes: 2 additions & 1 deletion src/style/index.less
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import "./common.less";
@import "./animation.less";
@import "./dark.less";
@import "./animation.less";

0 comments on commit 0cd2a8c

Please sign in to comment.