From f512c1df6ee379da62f723d8ae199ad5fe24090b Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 15 Nov 2026 18:59:59 +0100 Subject: [PATCH] 40C3: keep mouse-focused links readable in dark mode --- themes/hackertours-40c3/assets/css/_custom.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/themes/hackertours-40c3/assets/css/_custom.css b/themes/hackertours-40c3/assets/css/_custom.css index 6882632..c6b7bcf 100644 --- a/themes/hackertours-40c3/assets/css/_custom.css +++ b/themes/hackertours-40c3/assets/css/_custom.css @@ -128,6 +128,14 @@ a:focus-visible { background: var(--c40-green); } +/* Zen gives every focused link the hover colour, which is dark here. A link clicked with the + mouse keeps that focus (e.g. a tour card after going back) but gets no green chip, so its text + would vanish on the dark background. Only plain text links and the schedule's tour titles: + buttons, cards, menus and the header have their own colours. */ +:is(.layout__main a:not([class]), .schedule__title):focus:not(:focus-visible, :hover) { + color: var(--color-link); +} + .header__logo:hover, .header__logo:focus-visible { background: none;