Repository navigation
Dot far-behind results on the homepage table, and show Vortex vs Lance on phones #234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cfa684c
6353abd
6104626
2e4ec28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| /* Vortex design system components (sections: base, brand, chrome, site, blog, tables, focus), copied by tools/site-styles.mjs. | ||
| Edit the system, then run tools/site-styles.mjs; do not edit here. | ||
| Made by: node tools/site-styles.mjs <site> --sections base,brand,chrome,site,blog,tables,focus --faces --vx-face --base --reads .. | ||
| sha256 bddb79f13fb3cf9a0fd1d27897b97b3bafbd7ffcf29179f01b4015e992e37641 */ | ||
| sha256 a6f0b79a7f5a1d42b0d3dcb2b5e7bfafca0a8b41eba5d01465c5d5c4cbe5c4ae */ | ||
|
|
||
| /* ------------------------------------------------------------------ base */ | ||
| /* Every component sizes with border-box, so it draws the same under a site's reset or none. */ | ||
|
|
@@ -614,17 +614,33 @@ html:has(.vx-header) { scroll-padding-top: calc(var(--space-64) + var(--space-8) | |
| /* The underline is ink on every column: it names the result, and Blue names Vortex. */ | ||
| .vx-results-table .is-best { color: var(--ink); font-weight: 600; text-decoration: underline 2px var(--ink); text-underline-offset: 5px; } | ||
| .vx-results-table .is-best.is-ours { color: var(--accent-ink); } | ||
| /* Far behind the best: the best's underline, dotted, in warn-ink. The dots carry it without the colour; Vortex's figure stays Blue. */ | ||
| .vx-results-table .is-far { color: var(--warn-ink); text-decoration: underline dotted 2px var(--warn-ink); text-underline-offset: 5px; } | ||
| .vx-results-table .is-far.is-ours { color: var(--accent-ink); } | ||
| .vx-results-table .is-verdict { padding-left: var(--space-24); color: var(--ink); } | ||
| /* The verdict's head names Vortex only on a phone, where Vortex's column is gone. The rival's verdict shows only there too. */ | ||
| .vx-results-subject { display: none; color: var(--accent-ink); } | ||
| .vx-results-table .is-rival { display: none; } | ||
| @media (max-width: 760px) { | ||
| .vx-results { padding: var(--space-16); } | ||
| .vx-results-table :is(th, td):not(:first-child, .is-ours, .is-verdict) { display: none; } | ||
| } | ||
| /* The narrowest phones, 320px: the three columns fit inside the frame with 12px of padding, 12px between them, and headings that wrap. */ | ||
| /* A phone shows each benchmark and its verdicts alone: against Parquet and, with a rival, against it. Vortex's figure would repeat the verdict. With no figure left to mark, the key goes too. The verdict heads wrap ("Vortex vs / Parquet"). */ | ||
| .vx-results-table :is(th, td):not(:first-child, .is-verdict) { display: none; } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
At phone widths, this selector now hides every numeric column unconditionally. When the documented Useful? React with 👍 / 👎. |
||
| .vx-results-table .is-rival { display: table-cell; } | ||
| .vx-results-table .is-verdict { padding-left: var(--space-16); } | ||
| .vx-results-table thead .is-verdict { white-space: normal; } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Only the verdict headers are allowed to wrap, while body cells retain the table-wide Useful? React with 👍 / 👎. |
||
| .vx-results-subject { display: inline; } | ||
| .vx-results-foot { display: none; } | ||
| } | ||
| /* Small phones: 12px of padding, 12px between the columns, and headings that wrap. */ | ||
| @media (max-width: 400px) { | ||
| .vx-results { padding: var(--space-12); } | ||
| .vx-results-table :is(th, td):not(:first-child) { padding-left: var(--space-12); } | ||
| .vx-results-table th { white-space: normal; } | ||
| } | ||
| /* The narrowest phones, 320px: at 13px the three columns are 10px wider than the frame, so the table is set in 12px. */ | ||
| @media (max-width: 340px) { | ||
| .vx-results-table { font-size: 12px; } | ||
| } | ||
|
|
||
| .vx-eyebrow { display: inline-flex; align-items: center; gap: var(--space-8); } | ||
| .vx-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--ink-muted); flex: none; } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
is-farclass communicates the state only through color and a dotted underline. The computed text such as14× behind the bestis placed solely in the non-focusable table cell'stitle, which screen readers do not reliably announce, so a screen-reader user hears the ordinary value and a footnote about dots but cannot identify which cells it describes. Include the far-behind description in accessible cell content or an accessible name while keeping it visually hidden.Useful? React with 👍 / 👎.