Skip to content

Commit 776a2ac

Browse files
NetdocsCopilot
andcommitted
Add subtle bold highlight to the active top-level tab
The active tab already renders at full opacity (no underline bar); add a 700 font-weight so the current section reads as a subtle highlight, matching Material for MkDocs instead of a heavy underline. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7cee6b7 commit 776a2ac

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Netdocs.Theme.Material/assets/netdocs.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ body {
5454
}
5555
}
5656

57+
/* Active top-level tab indicator. Material's default already lifts the active
58+
tab to full opacity; add a slightly bolder label so the current section reads
59+
as a subtle "highlight" (matching Material for MkDocs) instead of a heavy
60+
underline bar. Loaded after the vendored CSS, so this wins at equal
61+
specificity. */
62+
.md-tabs__item--active .md-tabs__link {
63+
font-weight: 700;
64+
}
65+
5766
/* Breadcrumbs (`.md-path`) render as a horizontal trail above the article title. They are
5867
emitted just outside the `.md-typeset` article so the article's `ul`/`li` styling can't
5968
turn the crumb list into a vertical bulleted list. The vendor `.md-path` rules then lay

0 commit comments

Comments
 (0)