feat: 暗黑模式对比度优化与书架页标题调整 (v1.1.7)

暗黑模式
- 核对全部 19 个页面均加载含 html.dark 变量的样式表,暗黑配色全局生效
- 深色背景下人眼对低对比更敏感,调整暗黑变量提升可读性:
  次要文字 --ink-3 对比度 2.43 -> 3.12,分隔线 --rule 1.23 -> 1.42,
  卡片底色 --bg-raised 提亮以增强层次,--ink-2 5.63 -> 6.28

书架页
- 移除主题自带的"书架"大标题,避免与插件返回内容中的标题重复
- 保留副标题(默认"来自微信读书的同步藏书"),清理失效样式
- 页面标题配置项改为仅作用于浏览器标签,并补充说明
This commit is contained in:
2026-09-26 13:28:41 +08:00
parent bcc221c3bd
commit d01664197f
5 changed files with 12 additions and 30 deletions
+2 -22
View File
@@ -9,21 +9,15 @@ import Layout from "../layouts/Layout.astro";
<section class="wi-weread">
<div class="wi-container">
<!-- 标题由插件返回的书架内容自带,主题不再重复输出 -->
<div class="wi-weread__header">
<h1
class="wi-weread__title"
th:text="${theme.config?.weread?.weread_page_title ?: '书架'}"
>
书架
</h1>
<p
class="wi-weread__subtitle"
th:if="${theme.config?.weread?.weread_page_subtitle}"
th:text="${theme.config?.weread?.weread_page_subtitle}"
>
我在读的书
来自微信读书的同步藏书
</p>
<span class="wi-page-accent"></span>
</div>
<th:block th:if="${pluginFinder.available('halo-weread-plugin')}">
@@ -95,15 +89,6 @@ import Layout from "../layouts/Layout.astro";
margin-bottom: var(--space-2xl);
}
.wi-weread__title {
font-family: var(--font-sans);
font-size: var(--text-3xl);
font-weight: 700;
color: var(--ink);
letter-spacing: var(--tracking-tight);
margin-bottom: var(--space-sm);
}
.wi-weread__subtitle {
font-size: var(--text-base);
color: var(--ink-3);
@@ -150,9 +135,4 @@ import Layout from "../layouts/Layout.astro";
color: var(--accent);
}
@media (max-width: 768px) {
.wi-weread__title {
font-size: var(--text-2xl);
}
}
</style>