Skip to content

Commit 24a86d3

Browse files
committed
style(css): Show headerlink when argument is targeted via URL fragment
1 parent fe4a03d commit 24a86d3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/_static/css/argparse-highlight.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ body:not([data-theme="dark"]) .argparse-argument-name .headerlink:hover:not(:vis
341341
background-color: var(--color-highlight-on-target);
342342
}
343343

344+
.argparse-argument-wrapper:target .argparse-argument-name .headerlink {
345+
visibility: visible;
346+
}
347+
344348
/*
345349
* Default value styling in metadata
346350
* Styled like inline code with monokai background.

0 commit comments

Comments
 (0)