style(index): 调整暗黑模式下的文字颜色
- 在 index.html 文件中,添加了 prefers-color-scheme 媒体查询 - 当用户选择暗黑模式时,不仅设置背景颜色为黑色,还设置了文字颜色为白色
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
#app {
|
||||
|
Reference in New Issue
Block a user