Skip to content

Commit 621e98f

Browse files
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 #8519.
1 parent 0126f74 commit 621e98f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/stylesheets/extra.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
--md-default-fg-color--lighter: var(--white);
3737
--md-primary-fg-color: var(--space);
3838
--md-primary-bg-color: var(--white);
39-
--md-accent-fg-color: var(--radiate);
39+
--md-accent-fg-color: var(--cosmic);
4040

4141
--md-typeset-color: var(--white);
4242
--md-typeset-a-color: var(--radiate);
@@ -92,3 +92,8 @@
9292
.md-typeset table:not([class]) {
9393
display: table;
9494
}
95+
96+
/* See: https://github.com/astral-sh/ruff/issues/8519 */
97+
[data-md-color-scheme="astral-dark"] details summary a {
98+
color: var(--flare);
99+
}

0 commit comments

Comments
 (0)