| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,16 +37,16 @@ const contributors = computed(() => credits.value?.contributors ?? []) | |||
| 37 | 37 | v-for="person in contributors" | |
| 38 | 38 | :key="person.login" | |
| 39 | 39 | > | |
| 40 | - <!-- The avatar is the link, so its `alt` names the destination rather than the | ||
| 41 | - picture, and carries the commit count. --> | ||
| 40 | + <!-- The avatar carries no text of its own, so the link is labelled instead. --> | ||
| 42 | 41 | <a | |
| 43 | 42 | class="credits__person" | |
| 44 | 43 | :href="person.url" | |
| 44 | + :aria-label="`${person.login}, ${person.contributions} ${person.contributions === 1 ? 'commit' : 'commits'}`" | ||
| 45 | 45 | > | |
| 46 | 46 | <img | |
| 47 | 47 | class="credits__avatar" | |
| 48 | 48 | :src="person.avatar" | |
| 49 | - :alt="`${person.login} on GitHub, ${person.contributions} commits`" | ||
| 49 | + alt="" | ||
| 50 | 50 | width="28" | |
| 51 | 51 | height="28" | |
| 52 | 52 | loading="lazy" | |
@@ -55,6 +55,10 @@ const contributors = computed(() => credits.value?.contributors ?? []) | |||
| 55 | 55 | </a> | |
| 56 | 56 | </li> | |
| 57 | 57 | </ul> | |
| 58 | + <a | ||
| 59 | + class="credits__all" | ||
| 60 | + href="https://github.com/unjs/unifont/graphs/contributors" | ||
| 61 | + >all contributors</a> | ||
| 58 | 62 | </div> | |
| 59 | 63 | ||
| 60 | 64 | <p class="colophon__line colophon__line--fine"> | |
@@ -72,7 +76,7 @@ const contributors = computed(() => credits.value?.contributors ?? []) | |||
| 72 | 76 | ||
| 73 | 77 | <style scoped> | |
| 74 | 78 | .colophon { | |
| 75 | - margin-top: var(--space-4xl); | ||
| 79 | + margin-top: var(--space-2xl); | ||
| 76 | 80 | border-top: var(--rule-heavy) solid var(--color-ink); | |
| 77 | 81 | background: var(--color-paper-2); | |
| 78 | 82 | } | |
@@ -131,6 +135,12 @@ const contributors = computed(() => credits.value?.contributors ?? []) | |||
| 131 | 135 | list-style: none; | |
| 132 | 136 | } | |
| 133 | 137 | ||
| 138 | + .credits__all { | ||
| 139 | + color: var(--color-neutral); | ||
| 140 | + font-family: var(--font-mono); | ||
| 141 | + font-size: var(--text-xs); | ||
| 142 | + } | ||
| 143 | + | ||
| 134 | 144 | .credits__person { | |
| 135 | 145 | display: block; | |
| 136 | 146 | border-radius: var(--radius-pill); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -190,13 +190,11 @@ function turn(delta: number) { | |||
| 190 | 190 | @mouseenter="prefetch(entry.family)" | |
| 191 | 191 | @focus="prefetch(entry.family)" | |
| 192 | 192 | > | |
| 193 | - <!-- Set twice, in its own face and in mono; only one of them is read out. --> | ||
| 193 | + <!-- The name is set once, in its own face, and is the link's accessible name. --> | ||
| 194 | 194 | <span | |
| 195 | 195 | class="cell__specimen" | |
| 196 | - aria-hidden="true" | ||
| 197 | 196 | :style="{ fontFamily: `'${entry.family}', var(--font-display)` }" | |
| 198 | 197 | >{{ entry.family }}</span> | |
| 199 | - <span class="cell__name">{{ entry.family }}</span> | ||
| 200 | 198 | <span class="cell__providers">{{ entry.providers.join(' · ') }}</span> | |
| 201 | 199 | </NuxtLink> | |
| 202 | 200 | </li> | |
@@ -378,16 +376,8 @@ function turn(delta: number) { | |||
| 378 | 376 | overflow-wrap: anywhere; | |
| 379 | 377 | } | |
| 380 | 378 | ||
| 381 | - .cell__name { | ||
| 382 | - margin-top: auto; | ||
| 383 | - font-size: var(--text-sm); | ||
| 384 | - } | ||
| 385 | - | ||
| 386 | - .cell__link:hover .cell__name { | ||
| 387 | - color: var(--color-ink-strong); | ||
| 388 | - } | ||
| 389 | - | ||
| 390 | 379 | .cell__providers { | |
| 380 | + margin-top: auto; | ||
| 391 | 381 | color: var(--color-neutral); | |
| 392 | 382 | font-family: var(--font-mono); | |
| 393 | 383 | font-size: var(--text-xs); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,13 +88,11 @@ await unifont.getFontProperties('Switzer') | |||
| 88 | 88 | @mouseenter="prefetchFamilyData(family)" | |
| 89 | 89 | @focus="prefetchFamilyData(family)" | |
| 90 | 90 | > | |
| 91 | - <!-- Set twice, in its own face and in mono; only one of them is read out. --> | ||
| 91 | + <!-- The name is set once, in its own face, and is the link's accessible name. --> | ||
| 92 | 92 | <span | |
| 93 | 93 | class="cell__specimen" | |
| 94 | - aria-hidden="true" | ||
| 95 | 94 | :data-specimen="family" | |
| 96 | 95 | >{{ family }}</span> | |
| 97 | - <span class="cell__name">{{ family }}</span> | ||
| 98 | 96 | </NuxtLink> | |
| 99 | 97 | </li> | |
| 100 | 98 | </ul> | |
@@ -377,18 +375,6 @@ await unifont.getFontProperties('Switzer') | |||
| 377 | 375 | overflow-wrap: anywhere; | |
| 378 | 376 | } | |
| 379 | 377 | ||
| 380 | - .cell__link:hover .cell__name { | ||
| 381 | - color: var(--color-ink-strong); | ||
| 382 | - } | ||
| 383 | - | ||
| 384 | - .cell__name { | ||
| 385 | - margin-top: auto; | ||
| 386 | - color: var(--color-neutral); | ||
| 387 | - font-family: var(--font-mono); | ||
| 388 | - font-size: var(--text-xs); | ||
| 389 | - transition: color var(--dur-micro) var(--ease-out); | ||
| 390 | - } | ||
| 391 | - | ||
| 392 | 378 | .index__more { | |
| 393 | 379 | margin-top: var(--space-lg); | |
| 394 | 380 | font-size: var(--text-sm); | |
@@ -504,7 +490,7 @@ await unifont.getFontProperties('Switzer') | |||
| 504 | 490 | ||
| 505 | 491 | /* ── Surfaces ─────────────────────────────────────────────── */ | |
| 506 | 492 | .surfaces { | |
| 507 | - padding-block: var(--space-2xl) var(--space-xl); | ||
| 493 | + padding-block: var(--space-xl) var(--space-lg); | ||
| 508 | 494 | } | |
| 509 | 495 | ||
| 510 | 496 | .surfaces h2 { | |
@@ -519,8 +505,8 @@ await unifont.getFontProperties('Switzer') | |||
| 519 | 505 | ||
| 520 | 506 | .surfaces__row { | |
| 521 | 507 | display: grid; | |
| 522 | - grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); | ||
| 523 | - gap: var(--space-md) var(--space-xl); | ||
| 508 | + grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); | ||
| 509 | + gap: var(--space-sm) var(--space-xl); | ||
| 524 | 510 | padding-block: var(--space-md); | |
| 525 | 511 | border-top: var(--rule-hair) solid var(--color-rule); | |
| 526 | 512 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments