Skip to content

Commit 686f5ae

Browse files
AnnaXWangclaude
andcommitted
Distinguish docs sidebar section headings from page links
Section headings (Overview, Working with your browser, etc.) rendered at the same size/weight as the clickable page links beneath them, so the hierarchy didn't read. Restyle them into a quiet muted "eyebrow" with a divider between sections. The prior rule targeted #sidebar-title, an id Mintlify no longer emits (the title is now .sidebar-group-header with an inner h3.sidebar-title), so it was a no-op. Active page and item styling are unchanged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 1baeb1e commit 686f5ae

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

style.css

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,29 @@ kbd {
2828
--btn-selected-bg: #CAB168;
2929
--btn-border: #000;
3030
}
31-
/* style sidebar titles */
32-
#navigation-items .sidebar-group-header #sidebar-title{
33-
font-weight: bold;
34-
font-size: 15px;
31+
/* sidebar section headings — recede to a quiet "eyebrow" so they read as
32+
structure, distinct from the clickable page links below them. mintlify
33+
renders the group title as .sidebar-group-header (the old #sidebar-title id
34+
no longer exists), and the inner h3 inherits font/size/color from it. */
35+
#navigation-items .sidebar-group-header {
36+
font-size: 11px !important;
37+
font-weight: 400 !important;
38+
letter-spacing: 0.09em;
39+
color: #60646c !important;
40+
}
41+
html.dark #navigation-items .sidebar-group-header {
42+
color: rgba(237, 238, 240, 0.55) !important;
43+
}
44+
45+
/* divider + breathing room above each section after the first (non-first
46+
sections are wrapped by mintlify in a margin-top div) */
47+
#navigation-items div[class*="mt-"] > .sidebar-group-header {
48+
margin-top: 0.75rem;
49+
padding-top: 1rem;
50+
border-top: 1px solid rgba(33, 34, 37, 0.1);
51+
}
52+
html.dark #navigation-items div[class*="mt-"] > .sidebar-group-header {
53+
border-top-color: rgba(237, 238, 240, 0.1);
3554
}
3655

3756
/* move nested nav arrows to the right */

0 commit comments

Comments
 (0)