From 9827a4761c224fdc28c29940251c19d5dfe9781b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 12 Apr 2026 15:14:35 -0700 Subject: [PATCH] Add dark mode styles for footnotes in Biblioteca. Fixes #5227. --- .../Resources/Biblioteca.nnwtheme/stylesheet.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Shared/Resources/Biblioteca.nnwtheme/stylesheet.css b/Shared/Resources/Biblioteca.nnwtheme/stylesheet.css index 0df6a110d..8a0d4d233 100644 --- a/Shared/Resources/Biblioteca.nnwtheme/stylesheet.css +++ b/Shared/Resources/Biblioteca.nnwtheme/stylesheet.css @@ -351,6 +351,20 @@ body a.footnote:visited, transition: background-color 200ms ease-out; } +@media (prefers-color-scheme: dark) { + .newsfoot-footnote-popover { + background: #444; + color: #ededed; + } + .newsfoot-footnote-popover-arrow { + background: #2a2a2a; + border: 1px solid #444; + } + .newsfoot-footnote-popover-inner { + background: #2a2a2a; + } +} + /* Instead of the last-child bits, border-collapse: collapse could have been used. However, then the inter-cell borders