40C3: keep mouse-focused links readable in dark mode
This commit is contained in:
parent
ebb3c84d30
commit
f512c1df6e
1 changed files with 8 additions and 0 deletions
|
|
@ -128,6 +128,14 @@ a:focus-visible {
|
||||||
background: var(--c40-green);
|
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:hover,
|
||||||
.header__logo:focus-visible {
|
.header__logo:focus-visible {
|
||||||
background: none;
|
background: none;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue