From 1f88dbd2bb7abb34e9018838bfe5856a66c0f63e Mon Sep 17 00:00:00 2001 From: Reid <61492567+reidliu41@users.noreply.github.com> Date: Tue, 27 May 2025 12:35:16 +0800 Subject: [PATCH] [Misc] improve web section group title display (#18684) Signed-off-by: reidliu41 Co-authored-by: reidliu41 --- docs/mkdocs/stylesheets/extra.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/mkdocs/stylesheets/extra.css b/docs/mkdocs/stylesheets/extra.css index dd7b3460a3198..088143ed59563 100644 --- a/docs/mkdocs/stylesheets/extra.css +++ b/docs/mkdocs/stylesheets/extra.css @@ -22,3 +22,15 @@ a:not(:has(svg)):not(.md-icon):not(.autorefs-external) { display: inline-block; } } + +/* Light mode: darker section titles */ +body[data-md-color-scheme="default"] .md-nav__item--section > label.md-nav__link .md-ellipsis { + color: rgba(0, 0, 0, 0.7) !important; + font-weight: 700; +} + +/* Dark mode: lighter gray section titles */ +body[data-md-color-scheme="slate"] .md-nav__item--section > label.md-nav__link .md-ellipsis { + color: rgba(255, 255, 255, 0.75) !important; + font-weight: 700; +}