File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 6262 border-radius : 0 ;
6363 }
6464
65+ /* Reduce top-level category label size ("Get started", "Guides", etc.) */
66+ & .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link {
67+ font-size : 1.6rem ;
68+ font-weight : 400 ;
69+ }
70+
71+ /* Top-level doc pages (e.g. "Introduction") are link items, not categories */
72+ & .theme-doc-sidebar-item-link-level-1 > .menu__link {
73+ font-size : 1.6rem ;
74+ font-weight : 400 ;
75+ }
76+
77+ /* Ensure active item + active parent path can override the level-1 "unbold" rules above */
78+ & .theme-doc-sidebar-item-category-level-1
79+ > .menu__list-item-collapsible
80+ > .menu__link.menu__link--active ,
81+ & .theme-doc-sidebar-item-link-level-1 > .menu__link.menu__link--active {
82+ font-weight : 700 ;
83+ }
84+
6585 & .theme-doc-sidebar-item-category-level-2 ,
6686 & .theme-doc-sidebar-item-category-level-3 ,
6787 & .theme-doc-sidebar-item-category-level-4 ,
7696 color : var (--ifm-menu-color );
7797 font-weight : 400 ;
7898 font-size : 1.5rem ;
99+
100+ /* Ensure the selected page + active ancestor path can override the base weight */
101+ & .menu__link--active {
102+ font-weight : 600 ;
103+ }
79104 }
80105
81106 & :not (:first-child ) {
109134 padding : 0.6rem 2.4rem ;
110135 }
111136
112- & --active {
137+ /* Active page + active ancestor categories ("parent path") */
138+ & .menu__link--active {
113139 color : var (--ifm-menu-color-active );
140+ font-weight : 600 ;
114141
115142 + .menu__caret {
116143 opacity : 1 ;
You can’t perform that action at this time.
0 commit comments