Skip to content

Commit 48b09df

Browse files
mlaetitiaclaude
andcommitted
Mark the current page with weight alone, dropping its underline at rest and on hover
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
1 parent d2a0426 commit 48b09df

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

‎themes/osi/assets/scss/_6_components.navigation.scss‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ footer {
265265

266266
.menu-item {
267267
&.current-menu-item > a, &.current-menu-parent > a, &.current-menu-ancestor > a {
268-
text-decoration: underline;
269268
font-weight: $baseWeightBold;
270269
letter-spacing: -.25px;
271270
}
@@ -310,7 +309,7 @@ footer {
310309

311310
.menu-item {
312311
&.current-menu-item > a, &.current-menu-parent > a, &.current-menu-ancestor > a {
313-
text-decoration: underline;
312+
text-decoration: none;
314313
}
315314
}
316315

@@ -324,6 +323,15 @@ footer {
324323
text-decoration-thickness: 3px;
325324
text-underline-offset: 8px;
326325
}
326+
327+
& > .menu-item.current-menu-item > a:hover,
328+
& > .menu-item.current-menu-item > a:focus,
329+
& > .menu-item.current-menu-parent > a:hover,
330+
& > .menu-item.current-menu-parent > a:focus,
331+
& > .menu-item.current-menu-ancestor > a:hover,
332+
& > .menu-item.current-menu-ancestor > a:focus {
333+
text-decoration: none;
334+
}
327335
}
328336

329337
// footer menu

‎themes/osi/style.css‎

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)