From 6b3d41a4b8709c5f878bf5ce225a5866c81a1133 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 7 May 2025 18:46:28 +0800 Subject: [PATCH] fix: styling links and also the content of links, closes #1057 (#1083) --- apps/readest-app/src/utils/style.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index a292994f..c389cbc4 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -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;`} } }