Skip to content

Commit d3c373e

Browse files
committed
changed nav weights
1 parent efa9014 commit d3c373e

1 file changed

Lines changed: 29 additions & 8 deletions

File tree

assets/css/custom.css

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,39 @@ details.catalog .links {
134134

135135

136136
/* ─────────────────────────────
137-
4) Navigation weights (bold only on current tab)
137+
4) Navigation weights (slim by default, bold only on current)
138138
───────────────────────────── */
139139

140-
#header nav ul li a {
141-
font-weight: 500 !important; /* 400 = lighter, 500 = medium */
140+
/* Make every tab slim (override theme defaults on both <li> and <a>) */
141+
#header nav ul > li,
142+
#header nav ul > li > a,
143+
#header nav ul > li > a:link,
144+
#header nav ul > li > a:visited {
145+
font-weight: 400 !important; /* slim */
142146
}
143-
#header nav ul li.current > a,
144-
#header nav ul li.active > a,
145-
#header nav ul li a[aria-current="page"] {
146-
font-weight: 700 !important; /* bold on active tab only */
147+
148+
/* Neutralize any nested <strong> or bold elements inside the link */
149+
#header nav ul > li > a strong,
150+
#header nav ul > li > a * {
151+
font-weight: inherit !important;
152+
}
153+
154+
/* Bold ONLY the active/current tab */
155+
#header nav ul > li.current,
156+
#header nav ul > li.active {
157+
font-weight: 700 !important;
158+
}
159+
#header nav ul > li.current > a,
160+
#header nav ul > li.active > a,
161+
#header nav ul > li > a[aria-current="page"] {
162+
font-weight: 700 !important;
163+
}
164+
165+
/* Don’t change weight on hover/focus (avoid flicker) */
166+
#header nav ul > li > a:hover,
167+
#header nav ul > li > a:focus {
168+
font-weight: inherit !important;
147169
}
148-
#header nav ul li a:hover { font-weight: inherit !important; } /* prevent hover reflow */
149170

150171

151172
/* ─────────────────────────────

0 commit comments

Comments
 (0)