mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user