fix: styling links and also the content of links, closes #1057 (#1083)

This commit is contained in:
Huang Xin
2025-05-07 18:46:28 +08:00
committed by GitHub
parent e403c009c2
commit 6b3d41a4b8
+2 -2
View File
@@ -87,12 +87,12 @@ const getFontStyles = (
body * {
${overrideFont ? 'font-family: revert !important;' : ''}
}
a:any-link * {
a:any-link, a:any-link * {
${overrideFont ? `color: ${primary};` : ''}
}
/* https://github.com/whatwg/html/issues/5426 */
@media (prefers-color-scheme: dark) {
a:link * {
a:any-link, a:any-link * {
${overrideFont ? `color: ${primary};` : `color: lightblue;`}
}
}