|
76 | 76 | display: block; |
77 | 77 | } |
78 | 78 |
|
| 79 | +/* ── Header Nav Link with default, unread, selected, and hover states. ── */ |
| 80 | + |
| 81 | +.header__nav-link { |
| 82 | + display: flex; |
| 83 | + align-items: center; |
| 84 | + color: var(--color-text-primary); |
| 85 | + text-decoration: none; |
| 86 | + font-size: var(--font-size-small); |
| 87 | + font-weight: 400; |
| 88 | + font-family: var(--font-sans); |
| 89 | + line-height: var(--line-height-relaxed); |
| 90 | + letter-spacing: var(--letter-spacing-tight); |
| 91 | + padding: 0 var(--space-large); |
| 92 | + height: 32px; |
| 93 | + width: fit-content; |
| 94 | + border-radius: var(--border-radius-m); |
| 95 | + transition: |
| 96 | + color 0.15s ease, |
| 97 | + background-color 0.15s ease; |
| 98 | +} |
| 99 | + |
| 100 | +/* ── Hover ─────────────────────────────────────── */ |
| 101 | + |
| 102 | +.header__nav-link:hover, .header__nav-link[data-hover] { |
| 103 | + color: var(--color-text-primary); |
| 104 | + background: var(--color-navigation-hover); |
| 105 | +} |
| 106 | + |
| 107 | +/* ── Selected ──────────────────────────────────── */ |
| 108 | + |
| 109 | +.header__nav-link--active { |
| 110 | + text-decoration: underline !important; |
| 111 | +} |
| 112 | + |
| 113 | +/* ── Unread (notification dot) ─────────────────── */ |
| 114 | + |
| 115 | +.header__nav-link--unread { |
| 116 | + position: relative; |
| 117 | +} |
| 118 | + |
| 119 | +.header__nav-link-sr-hint { |
| 120 | + position: absolute; |
| 121 | + width: 1px; |
| 122 | + height: 1px; |
| 123 | + overflow: hidden; |
| 124 | + clip: rect(0, 0, 0, 0); |
| 125 | +} |
| 126 | + |
| 127 | +.header__nav-link-dot { |
| 128 | + width: 4px; |
| 129 | + height: 4px; |
| 130 | + border-radius: 50%; |
| 131 | + margin-left: var(--space-s); |
| 132 | + background: var(--color-surface-brand-accent-default); |
| 133 | +} |
| 134 | + |
79 | 135 | /* ── Search ────────────────────────────────────── */ |
80 | 136 |
|
81 | 137 | .header__search-bar { |
@@ -297,7 +353,7 @@ html.dark .header__icon--theme-moon { |
297 | 353 | z-index: 1000; |
298 | 354 | } |
299 | 355 |
|
300 | | -.header__user-dropdown .nav-link { |
| 356 | +.header__user-dropdown .header__nav-link { |
301 | 357 | padding: 0 var(--space-s); |
302 | 358 | width: 100%; |
303 | 359 | } |
@@ -370,7 +426,7 @@ html.dark .header__icon--theme-moon { |
370 | 426 | border-radius: var(--header-radius); |
371 | 427 | } |
372 | 428 |
|
373 | | - .header__nav--desktop > .nav-link, |
| 429 | + .header__nav--desktop > .header__nav-link, |
374 | 430 | .header__right, |
375 | 431 | .header__search-kbd { |
376 | 432 | display: none; |
|
0 commit comments