Skip to content

Sidebar: bold top-level items only; tighter spacing after collapsed sections#333

Open
Dobrunia wants to merge 4 commits intomainfrom
ui/sidebar-top-level-typography
Open

Sidebar: bold top-level items only; tighter spacing after collapsed sections#333
Dobrunia wants to merge 4 commits intomainfrom
ui/sidebar-top-level-typography

Conversation

@Dobrunia
Copy link
Copy Markdown
Member

@Dobrunia Dobrunia commented Apr 12, 2026

What changed

  • Typography: Only first-level (root) sidebar entries use bold text, including leaf links with no children. Deeper nesting keeps the regular body weight.
  • Spacing: Slightly reduced vertical gap between adjacent root sections when the previous one is collapsed (12px vs 20px).

Before

Снимок экрана 2026-04-12 в 13 14 32

After

Снимок экрана 2026-04-12 в 14 03 46

* - Root (1st level): 16px / 24 / 34px row, bold — same for branches and single links.
* - Nested: one shared style for all deeper levels (branches + leaves).
*/
&__content > .docs-sidebar__section > .docs-sidebar__section-title-wrapper > .docs-sidebar__section-title {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too heavy selector, will work slowly

@neSpecc neSpecc self-requested a review April 13, 2026 14:02
…nested sections with updated class names and styles for improved clarity and consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants