From 66744108e23ec6268a4f5bed575b6f6c35df5b61 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 22 May 2025 15:09:02 +0800 Subject: [PATCH] css: unset link color in footnotes in dark mode for safari (#1221) --- apps/readest-app/src/utils/style.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index 31675bb1..007645cb 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -345,6 +345,12 @@ export const getFootnoteStyles = () => ` text-decoration: none; } + @media (prefers-color-scheme: dark) { + a:any-link, a:any-link * { + color: unset; + } + } + ol { margin: 0; padding: 0;