Skip to content

Commit f451e29

Browse files
committed
修改一些小细节,比如 阅读全文 按钮
1 parent ad6fdbc commit f451e29

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

themes/Zebin-Theme/source/css/style.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ body {
6868
border-bottom: none;
6969
}
7070
.post-title a {
71-
color: #222;
71+
color: var(--text-main); /* 🎯 替换为跟随系统明暗切换的变量 */
7272
text-decoration: none;
7373
font-size: 1.6rem;
7474
transition: color 0.3s ease;
@@ -88,7 +88,8 @@ body {
8888
.read-more {
8989
display: inline-block;
9090
padding: 8px 16px;
91-
background: #f4f4f4;
91+
/* 🎯 关键:使用变量,这样它在暗处就会变深,在明处就会变浅 */
92+
background: var(--bg-button);
9293
color: var(--text-main);
9394
text-decoration: none;
9495
border-radius: 4px;
@@ -455,7 +456,7 @@ body {
455456
.archive-year {
456457
text-align: center;
457458
font-size: 1.8rem;
458-
color: #222;
459+
color: var(--text-main); /* 🎯 替换为跟随系统明暗切换的变量 */
459460
margin: 40px 0 30px 0;
460461
font-family: "Noto Serif SC", serif; /* 使用宋体更显文艺 */
461462
}

0 commit comments

Comments
 (0)