Skip to content

Commit

Permalink
Improve detail link contrast in dark mode (#8548)
Browse files Browse the repository at this point in the history
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 #8519.
  • Loading branch information
charliermarsh authored Nov 7, 2023
1 parent 0126f74 commit 621e98f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
--md-default-fg-color--lighter: var(--white);
--md-primary-fg-color: var(--space);
--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-a-color: var(--radiate);
Expand Down Expand Up @@ -92,3 +92,8 @@
.md-typeset table:not([class]) {
display: table;
}

/* See: https://github.com/astral-sh/ruff/issues/8519 */
[data-md-color-scheme="astral-dark"] details summary a {
color: var(--flare);
}

0 comments on commit 621e98f

Please # to comment.