Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7eac4cc
feat(nodes): Add linkable arguments with wrapper and headerlink
tony Jan 25, 2026
5c7f1d0
feat(renderer): Thread id_prefix to argument nodes
tony Jan 25, 2026
4a942cd
style(css): Add argument wrapper and headerlink styles
tony Jan 25, 2026
c9ec5ac
test(nodes): Add tests for ID generation and HTML rendering
tony Jan 25, 2026
6be7fcc
style(css): Add light mode overrides for argument backgrounds
tony Jan 25, 2026
40eddab
style(css): Add width fit-content to argument wrapper
tony Jan 25, 2026
0116210
style(css): Refine argument name styling with monokai background
tony Jan 25, 2026
e7706ef
style(css): Add light mode headerlink hover color
tony Jan 25, 2026
3eae0dd
style(css): Style default values as inline code in argument meta
tony Jan 25, 2026
9a3feb6
style(css): Use custom --argparse-code-background variable
tony Jan 25, 2026
fe4a03d
style(css): Adjust argument styling and fix mypy warnings
tony Jan 25, 2026
24a86d3
style(css): Show headerlink when argument is targeted via URL fragment
tony Jan 25, 2026
358b3e8
style(css): Consolidate duplicate selectors and use CSS variable
tony Jan 25, 2026
d89198d
style(css): Position headerlink outside argument name element
tony Jan 25, 2026
f5c8591
style(css): Remove unnecessary width: fit-content from wrapper
tony Jan 25, 2026
4a7cbb0
style(css): Reduce default value badge size with smaller font and pad…
tony Jan 25, 2026
c97be8a
style(css): Remove italic from default value badge
tony Jan 25, 2026
1802705
style(css): Consolidate .cli-command and .cli-choice green color
tony Jan 25, 2026
2133a0d
style(css): Consolidate light mode headerlink selectors with nesting
tony Jan 25, 2026
643e215
style(css): Format with biome (tabs, lowercase hex, leading zeros)
tony Jan 25, 2026
4f22db0
docs(CHANGES): Add user-focused notes for linkable CLI arguments (#1010)
tony Jan 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style(css): Refine argument name styling with monokai background
- Use monokai background (#272822) for both light and dark modes
- Add dark mode media query for prefers-color-scheme support
- Adjust padding to .325rem .6rem and border-radius to .2rem
- Add width: fit-content to .argparse-argument-name
- Set headerlink color to #9ca0a5 in light mode for dark background
- Remove color-mix override (same background for both modes now)
  • Loading branch information
tony committed Jan 25, 2026
commit 01162109daa63661923a6050717ea967496d13a3
28 changes: 19 additions & 9 deletions docs/_static/css/argparse-highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,26 +279,32 @@ pre.argparse-usage {

/*
* Light mode overrides
* Furo's default inline code background is too dark in light mode.
* Use monokai background (#272822) to match code blocks.
*/
body:not([data-theme="dark"]) {
--color-inline-code-background: #eeeeee;
--color-inline-code-background: #272822;
}

/*
* Dark mode overrides (respects prefers-color-scheme)
* Use monokai background (#272822) to match code blocks.
*/
@media (prefers-color-scheme: dark) {
body:not([data-theme="light"]) {
--color-inline-code-background: #272822;
}
}

/*
* Background styling for argument names - subtle background like code.literal
* This provides visual weight and hierarchy for argument definitions.
* Light mode uses a lighter tint (50% white mix) for better contrast.
*/
.argparse-argument-name {
background: var(--color-inline-code-background);
border-radius: .2em;
padding: .1em .3em;
border-radius: .2rem;
padding: .325rem .6rem;
font-family: var(--font-stack--monospace);
}

body:not([data-theme="dark"]) .argparse-argument-name {
background: color-mix(in srgb, var(--color-inline-code-background), white 50%);
width: fit-content;
}

/*
Expand All @@ -321,6 +327,10 @@ body:not([data-theme="dark"]) .argparse-argument-name {
text-decoration: none;
}

body:not([data-theme="dark"]) .argparse-argument-name .headerlink {
color: #9ca0a5;
}

.argparse-argument-name:hover .headerlink {
visibility: visible;
}
Expand Down