Skip to content

Commit 98079f8

Browse files
committed
Remove bold formatting.
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
1 parent eaa432a commit 98079f8

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

src/scss/theme/_sidebar.scss

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,26 @@
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,
@@ -76,6 +96,11 @@
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) {
@@ -109,8 +134,10 @@
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;

0 commit comments

Comments
 (0)