Skip to content

Commit 3eae0dd

Browse files
committed
style(css): Style default values as inline code in argument meta
Add background, border-radius, padding, and font-family to .argparse-argument-meta .nv to match inline code appearance.
1 parent e7706ef commit 3eae0dd

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
@@ -353,9 +353,13 @@ body:not([data-theme="dark"]) .argparse-argument-name .headerlink:hover:not(:vis
353353

354354
/*
355355
* Default value styling in metadata
356-
* Uses .nv (Name.Variable) class for yellow/italic styling consistent with metavars.
356+
* Styled like inline code with monokai background.
357357
*/
358358
.argparse-argument-meta .nv {
359+
background: var(--color-inline-code-background);
360+
border-radius: .2rem;
361+
padding: .325rem .6rem;
362+
font-family: var(--font-stack--monospace);
359363
color: #E5C07B;
360364
font-style: italic;
361365
}

0 commit comments

Comments
 (0)