feat(37point2.cn): 添加暗黑模式支持
- 在 HTML 标签中添加 data-theme 属性以支持自动主题切换 - 新增媒体查询以适应深色模式下的样式变化
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<html lang="zh-CN" data-theme="auto">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>共产党宣言</title>
|
||||
@@ -11,6 +11,13 @@
|
||||
font-family: "SimSun", "宋体", serif;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: #212121;
|
||||
color: #fafafa;
|
||||
}
|
||||
}
|
||||
|
||||
#app {
|
||||
max-width: 800px;
|
||||
line-height: 1.6;
|
||||
|
||||
Reference in New Issue
Block a user