fix(post-content): keep visited link colors on theme palette

Apply post link and quotelink CSS variables to visited anchors in
bbcode and markdown so they match unvisited styling.
This commit is contained in:
Tommaso Casaburi
2026-06-28 23:14:23 +07:00
parent 6e361e224d
commit 64dd30ff24
2 changed files with 20 additions and 4 deletions
@@ -2,6 +2,18 @@
overflow-wrap: anywhere;
}
.content a,
.content a:visited {
color: var(--post-link-text-color);
text-decoration: var(--post-content-link-text-decoration);
}
.content a:hover,
.content a:visited:hover {
color: var(--post-link-text-color-hover);
text-decoration: var(--post-content-link-text-decoration-hover);
}
.underline {
text-decoration: underline;
}
+8 -4
View File
@@ -1,19 +1,23 @@
.markdown a {
.markdown a,
.markdown a:visited {
color: var(--post-link-text-color);
text-decoration: var(--post-content-link-text-decoration);
}
.markdown a:hover {
.markdown a:hover,
.markdown a:visited:hover {
color: var(--post-link-text-color-hover);
text-decoration: var(--post-content-link-text-decoration-hover);
}
.markdown .inlineQuoteLink a {
.markdown .inlineQuoteLink a,
.markdown .inlineQuoteLink a:visited {
color: var(--post-quotelink-text-color);
text-decoration: var(--post-quotelink-text-decoration);
}
.markdown .inlineQuoteLink a:hover {
.markdown .inlineQuoteLink a:hover,
.markdown .inlineQuoteLink a:visited:hover {
color: var(--post-quotelink-text-color-hover);
text-decoration: var(--post-quotelink-text-decoration-hover);
}