|
212 | 212 | width: 2px; |
213 | 213 | background: var(--bar); |
214 | 214 | } |
215 | | - |
216 | | - [role="menuitem"][aria-current="page"]:is(:focus-visible, :active)::before { |
217 | | - background: var(--link); |
218 | | - } |
219 | | - |
220 | | - @media (hover: hover) and (pointer: fine) { |
221 | | - [role="menuitem"][aria-current="page"]:hover::before { |
222 | | - background: var(--link); |
223 | | - } |
224 | | - } |
225 | 215 | } |
226 | 216 |
|
227 | 217 | [data-slot="meta"] { |
|
328 | 318 | --nav-chevron-ink: light-dark(hsl(0 0% 8%), hsl(0 0% 95%)); |
329 | 319 | --nav-chevron-hover: var(--nav-name-hover); |
330 | 320 | --nav-chevron-press: light-dark(#d2d2d2, #4b4b4b); |
| 321 | + /* The product name after the mark (and the docs' DOCS): its size, and the padding under it that puts OpenTUI Mono's |
| 322 | + caps (0.69 of the size) where they belong in the 25px row. */ |
| 323 | + --nav-name-size: 15px; |
| 324 | + --nav-name-pad: 0.65px; |
| 325 | + |
| 326 | + /* Phones: the docs sticky rows' 16px chevron, in an 18px box close to the name, its target reaching 26px past it so |
| 327 | + it stays 44px wide. The name grows to 20px, its caps centred in the 25px row (5.5px above and below), within half |
| 328 | + a pixel of the mark's inner rectangle. */ |
| 329 | + @media (max-width: 60rem) { |
| 330 | + --nav-chevron-width: 18px; |
| 331 | + --nav-chevron-glyph: 16px; |
| 332 | + --nav-chevron-reach: 26px; |
| 333 | + --nav-name-size: 20px; |
| 334 | + --nav-name-pad: 1px; |
| 335 | + } |
331 | 336 | --nav-logo-box-w: calc(15px * 1.492); |
332 | 337 | --nav-logo-box-h: 25px; |
333 | 338 |
|
|
392 | 397 | height: 25px; |
393 | 398 | margin: var(--nav-lockup-inset) 0 0; |
394 | 399 | margin-inline-start: 6px; |
395 | | - /* OpenTUI Mono's caps sit 0.325px below its line box's centre; this puts them on the mark's centre. */ |
396 | | - padding: 0 6px 0.65px; |
| 400 | + padding: 0 6px var(--nav-name-pad); |
397 | 401 | background: none; |
398 | 402 | color: var(--nav-lockup-ink); |
399 | | - font: 700 15px/1 var(--nav-menu-mono, "OpenTUI Mono", ui-monospace, monospace); |
| 403 | + font: 700 var(--nav-name-size) / 1 var(--nav-menu-mono, "OpenTUI Mono", ui-monospace, monospace); |
400 | 404 | letter-spacing: 0; |
401 | 405 | text-decoration: none; |
402 | 406 | text-transform: uppercase; |
|
0 commit comments