feat: add post content link color
This commit is contained in:
@@ -202,6 +202,7 @@ html[theme-color-scheme='matrix'] {
|
||||
| `--color-theme-header` | 页头文字和边框 |
|
||||
| `--color-theme-code-text` | 行内代码和代码块文字 |
|
||||
| `--color-theme-link` | 链接 |
|
||||
| `--color-theme-post-link` | 文章和页面正文链接 |
|
||||
| `--color-theme-muted` | 次要文字 |
|
||||
| `--color-theme-foreground-muted` | 弱化前景色 |
|
||||
| `--color-theme-accent-muted` | 弱化强调色 |
|
||||
|
||||
@@ -131,6 +131,10 @@
|
||||
margin-top: calc(var(--size-theme-font) * 1.5625);
|
||||
}
|
||||
|
||||
.post-content-body a {
|
||||
color: var(--color-theme-post-link);
|
||||
}
|
||||
|
||||
.post-cover {
|
||||
margin: calc(var(--size-theme-font) * 1.5625) 0;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
--color-theme-code-text: var(--color-theme-foreground);
|
||||
--color-theme-link: var(--color-theme-accent);
|
||||
--color-theme-post-link: var(--color-theme-link);
|
||||
--color-theme-muted: var(--color-theme-meta);
|
||||
--color-theme-foreground-muted: color-mix(in srgb, var(--color-theme-foreground) 85%, var(--color-theme-background));
|
||||
--color-theme-accent-muted: color-mix(in srgb, var(--color-theme-accent) 60%, var(--color-theme-background));
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
<h1 class="post-title" th:text="${singlePage.spec.title}">Post Title</h1>
|
||||
</header>
|
||||
<div class="post-content">
|
||||
<div th:utext="${singlePage.content.content}">Post Content</div>
|
||||
<div th:utext="${singlePage.content.content}" class="post-content-body">Post Content</div>
|
||||
</div>
|
||||
</article>
|
||||
<th:block
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
<section class="portfolio-detail-section" th:if="${hasRenderedContent == true}">
|
||||
<h2 th:text="#{page.portfolio.content}">Content</h2>
|
||||
<div class="portfolio-detail-content" th:utext="${projectContentHtml}"></div>
|
||||
<div class="portfolio-detail-content post-content-body" th:utext="${projectContentHtml}"></div>
|
||||
</section>
|
||||
|
||||
<div class="portfolio-detail-nav">
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
<div th:utext="${post.content.content}" id="content">Post Content</div>
|
||||
<div th:utext="${post.content.content}" id="content" class="post-content-body">Post Content</div>
|
||||
</section>
|
||||
</article>
|
||||
<nav id="toc" th:if="${theme.config.post_page.show_toc}" class="toc"
|
||||
|
||||
Reference in New Issue
Block a user