Skip to content

Commit 5cf2c8e

Browse files
committed
fix(css): Handle system auto-dark mode for argparse-meta-tag
Furo's "auto" theme follows system prefers-color-scheme. The meta tag dark styling only targeted explicit data-theme="dark", missing the auto-dark case where body:not([data-theme="light"]) applies.
1 parent 0f50411 commit 5cf2c8e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/_static/css/argparse-highlight.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,13 @@ body[data-theme="dark"] .argparse-meta-tag {
410410
border-color: #b4530980;
411411
}
412412

413+
@media (prefers-color-scheme: dark) {
414+
body:not([data-theme="light"]) .argparse-meta-tag {
415+
background-color: #78350f60;
416+
border-color: #b4530980;
417+
}
418+
}
419+
413420
/*
414421
* Help text description
415422
* Adds spacing above for visual separation from argument name.

0 commit comments

Comments
 (0)