Skip to content

Commit 2133a0d

Browse files
committed
style(css): Consolidate light mode headerlink selectors with nesting
1 parent 1802705 commit 2133a0d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

docs/_static/css/argparse-highlight.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,6 @@ pre.argparse-usage {
316316
text-decoration: none;
317317
}
318318

319-
body:not([data-theme="dark"]) .argparse-argument-name .headerlink {
320-
color: #9ca0a5;
321-
}
322-
323319
/*
324320
* Show headerlink on hover or when targeted via URL fragment
325321
*/
@@ -332,8 +328,15 @@ body:not([data-theme="dark"]) .argparse-argument-name .headerlink {
332328
color: var(--color-foreground-primary);
333329
}
334330

335-
body:not([data-theme="dark"]) .argparse-argument-name .headerlink:hover:not(:visited) {
336-
color: #cfd0d0;
331+
/*
332+
* Light mode headerlink color overrides
333+
*/
334+
body:not([data-theme="dark"]) .argparse-argument-name .headerlink {
335+
color: #9ca0a5;
336+
337+
&:hover:not(:visited) {
338+
color: #cfd0d0;
339+
}
337340
}
338341

339342
/*

0 commit comments

Comments
 (0)