Improve detail link contrast in dark mode (#8548)

Use our light-mode styling for links in that context.

<img width="627" alt="Screen Shot 2023-11-07 at 4 34 48 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/1e30c3ac-18e2-4663-876c-75c6f8b67d53">

Closes https://github.com/astral-sh/ruff/issues/8519.
This commit is contained in:
Charlie Marsh 2023-11-07 13:41:34 -08:00 committed by GitHub
parent 0126f74c29
commit 621e98f452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -36,7 +36,7 @@
--md-default-fg-color--lighter: var(--white); --md-default-fg-color--lighter: var(--white);
--md-primary-fg-color: var(--space); --md-primary-fg-color: var(--space);
--md-primary-bg-color: var(--white); --md-primary-bg-color: var(--white);
--md-accent-fg-color: var(--radiate); --md-accent-fg-color: var(--cosmic);
--md-typeset-color: var(--white); --md-typeset-color: var(--white);
--md-typeset-a-color: var(--radiate); --md-typeset-a-color: var(--radiate);
@ -92,3 +92,8 @@
.md-typeset table:not([class]) { .md-typeset table:not([class]) {
display: table; display: table;
} }
/* See: https://github.com/astral-sh/ruff/issues/8519 */
[data-md-color-scheme="astral-dark"] details summary a {
color: var(--flare);
}