Skip to content

Commit e7706ef

Browse files
committed
style(css): Add light mode headerlink hover color
- Use :hover:not(:visited) for headerlink hover states - Set light mode hover color to #cfd0d0
1 parent 0116210 commit e7706ef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/_static/css/argparse-highlight.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,14 @@ body:not([data-theme="dark"]) .argparse-argument-name .headerlink {
335335
visibility: visible;
336336
}
337337

338-
.argparse-argument-name .headerlink:hover {
338+
.argparse-argument-name .headerlink:hover:not(:visited) {
339339
color: var(--color-foreground-primary);
340340
}
341341

342+
body:not([data-theme="dark"]) .argparse-argument-name .headerlink:hover:not(:visited) {
343+
color: #cfd0d0;
344+
}
345+
342346
/*
343347
* Highlight when targeted via URL fragment
344348
* Uses Furo's highlight-on-target color for consistency.

0 commit comments

Comments
 (0)