@@ -356,8 +356,8 @@ List<StyleRule> get siteStyles => [
356356 // ───────────────────────────────────────────────────────────────────────
357357 // Sidebar width: match Docusaurus 300px (--doc-sidebar-width)
358358 // Use high specificity to override DocsLayout's .docs .main-container .sidebar-container
359- css ('.docs .main-container .sidebar-container' ).styles (width: 300. px),
360- css ('.docs .sidebar' ).styles (width: 300. px),
359+ css ('.docs .main-container .sidebar-container' ).styles (width: 300. px, overflow : Overflow .hidden ),
360+ css ('.docs .sidebar' ).styles (width: 300. px, raw : { 'overflow-x' : 'hidden' } ),
361361 // Sidebar border-right: match Docusaurus 1px solid border
362362 css ('.docs .sidebar-container' ).styles (
363363 border: Border .only (
@@ -532,12 +532,13 @@ List<StyleRule> get siteStyles => [
532532 color: Color ('#2a48df' ),
533533 fontWeight: FontWeight .w500,
534534 ),
535- // TOC sub-items (h3+ ): rounded pill border (matching Docusaurus nested items)
536- css ('.toc li[style*="0.75"] a ' ).styles (
535+ // TOC code sub-items (backtick headings ): rounded pill border
536+ css ('.toc a code ' ).styles (
537537 padding: Padding .symmetric (horizontal: 0.5 .rem, vertical: 0.125 .rem),
538538 border: Border .all (color: Color ('#dadde1' ), width: 1. px),
539539 radius: BorderRadius .circular (12. px),
540540 fontSize: 11. px,
541+ raw: {'font-family' : 'inherit' },
541542 ),
542543 // Dark mode TOC
543544 css ('[data-theme="dark"] .docs .main-container main > div aside.toc > div' ).styles (
@@ -554,7 +555,7 @@ List<StyleRule> get siteStyles => [
554555 css ('[data-theme="dark"] .toc a.toc-active' ).styles (
555556 color: Color ('#66fbd1' ),
556557 ),
557- css ('[data-theme="dark"] .toc li[style*="0.75"] a ' ).styles (
558+ css ('[data-theme="dark"] .toc a code ' ).styles (
558559 border: Border .all (color: Color ('#444950' ), width: 1. px),
559560 ),
560561 // ───────────────────────────────────────────────────────────────────────
@@ -621,6 +622,14 @@ List<StyleRule> get siteStyles => [
621622 padding: Padding .symmetric (vertical: 0.25 .rem),
622623 ),
623624 ]),
625+ // Mobile TOC code sub-items: pill border (same as sidebar TOC)
626+ css ('.mobile-toc .mobile-toc-content a code' ).styles (
627+ padding: Padding .symmetric (horizontal: 0.5 .rem, vertical: 0.125 .rem),
628+ border: Border .all (color: Color ('#dadde1' ), width: 1. px),
629+ radius: BorderRadius .circular (12. px),
630+ fontSize: 11. px,
631+ raw: {'font-family' : 'inherit' },
632+ ),
624633 // Mobile TOC links: use higher specificity to override .content-container a
625634 css ('.mobile-toc .mobile-toc-content a' ).styles (
626635 color: Color ('#1c1e21' ),
@@ -645,10 +654,8 @@ List<StyleRule> get siteStyles => [
645654 css ('[data-theme="dark"] .mobile-toc .mobile-toc-content a:hover' ).styles (
646655 color: Color ('#66fbd1' ),
647656 ),
648-
649- // Dark mode TOC: remove pill borders
650- css ('[data-theme="dark"] .toc li[style] a' ).styles (
651- border: Border .none,
657+ css ('[data-theme="dark"] .mobile-toc .mobile-toc-content a code' ).styles (
658+ border: Border .all (color: Color ('#444950' ), width: 1. px),
652659 ),
653660
654661 // ───────────────────────────────────────────────────────────────────────
0 commit comments