unicode

Branch: main

Switch branches or tags

Branch: main
Go to file t

413 files indexed

History
Code

bench/xlang/site/style.css
1/* One reading column for prose, widening to a heatmap of the changes on main,2   a card grid of small multiples and a scrollable case table. */3:root {4  --bg: #f6f7f8;5  --surface: #ffffff;6  --ink: #15191d;7  --muted: #5b646c;8  --rule: #dfe3e6;9  --track: #eceff1;10  --mb-native: #0b6e69;11  --mb-wasm: #2fa39b;12  --mb-wasm1: #2c6f9e;13  --mb-js: #86cfc8;14  --icu4x16: #c46a12;15  --icu4x8: #e9a660;16  --icu4c: #6b7682;17  --node: #b8325a;18  --simd: #3d63b8;19  --other: #b3bac1;20  --good: #0b6e69;21  --bad: #b8325a;22  --good-tint: 11, 110, 105;23  --bad-tint: 184, 50, 90;24  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;25  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;26  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;27}28@media (prefers-color-scheme: dark) {29  :root:not([data-theme="light"]) {30    --bg: #101315; --surface: #171b1e; --ink: #e8ecee; --muted: #9aa4ab; --rule: #2a3135; --track: #232a2e;31    --mb-native: #3cc4ba; --mb-wasm: #2a9890; --mb-wasm1: #6fb2e0; --mb-js: #1f6460;32    --icu4x16: #f0a050; --icu4x8: #9c6328; --icu4c: #8c97a2; --node: #ef6f93; --simd: #85a7f0; --other: #4a5359;33    --good: #5fd3c9; --bad: #ff8aa8; --good-tint: 60, 196, 186; --bad-tint: 239, 111, 147;34    color-scheme: dark;35  }36}37:root[data-theme="dark"] {38  --bg: #101315; --surface: #171b1e; --ink: #e8ecee; --muted: #9aa4ab; --rule: #2a3135; --track: #232a2e;39  --mb-native: #3cc4ba; --mb-wasm: #2a9890; --mb-wasm1: #6fb2e0; --mb-js: #1f6460;40  --icu4x16: #f0a050; --icu4x8: #9c6328; --icu4c: #8c97a2; --node: #ef6f93; --simd: #85a7f0; --other: #4a5359;41  --good: #5fd3c9; --bad: #ff8aa8; --good-tint: 60, 196, 186; --bad-tint: 239, 111, 147;42  color-scheme: dark;43}44* { box-sizing: border-box; }45body {46  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55;47  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));48  padding-block: 40px 64px;49}50.wrap { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }51.prose { max-width: 68ch; }52h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }53h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }54h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.01em; }55h3 { font-size: 1.02rem; font-weight: 700; }56p { margin: 0; }57.eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }58.lead { font-size: 1.08rem; color: var(--ink); }59.muted { color: var(--muted); }60code, .mono { font-family: var(--mono); font-size: 0.86em; }61header { display: flex; flex-direction: column; gap: 18px; }62.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }63.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 6px; }64.finding { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }65.finding b { font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }66.finding span { color: var(--muted); font-size: 0.9rem; }67section { display: flex; flex-direction: column; gap: 20px; }68.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.84rem; color: var(--muted); }69.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }70.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }71.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }72.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }73.card-head .unit { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }74.card .api { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-top: -8px; }75.bars { display: flex; flex-direction: column; gap: 7px; }76.bar { display: grid; grid-template-columns: 112px 1fr 92px; align-items: center; gap: 10px; font-size: 0.82rem; }77.bar .name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }78.bar .track { height: 14px; background: var(--track); border-radius: 2px; position: relative; overflow: hidden; }79.bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; }80.bar .val { font-family: var(--mono); font-size: 0.76rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }81.bar .val small { color: var(--muted); font-size: 0.92em; }82.bar.ref .name { color: var(--ink); font-weight: 600; }83.verdict { font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 8px; }84.verdict b { font-weight: 600; }85.verdict .up { color: var(--good); }86.verdict .down { color: var(--bad); }87.controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; }88.ctl { display: flex; flex-direction: column; gap: 6px; }89.chips { display: flex; flex-wrap: wrap; gap: 6px; }90.chip { font: 500 0.82rem var(--body); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); padding: 5px 10px; border-radius: 999px; cursor: pointer; }91.chip:hover { border-color: var(--muted); }92.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }93.chip:focus-visible, select:focus-visible { outline: 2px solid var(--mb-native); outline-offset: 2px; }94select { font: 500 0.86rem var(--body); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }95.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }96table { border-collapse: collapse; width: 100%; font-size: 0.82rem; }97th, td { padding: 7px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); }98th { font-weight: 600; color: var(--muted); font-size: 0.76rem; vertical-align: bottom; }99th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }100td { font-family: var(--mono); font-variant-numeric: tabular-nums; }101td:first-child { font-family: var(--body); }102td .r { display: block; font-size: 0.86em; color: var(--muted); }103tr.gm td { font-weight: 600; border-top: 2px solid var(--ink); }104tbody tr:last-child td { border-bottom: 0; }105th .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }106.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 32px; }107.notes p { font-size: 0.9rem; color: var(--muted); }108.notes p b { color: var(--ink); font-weight: 600; }109.answer { border-left: 3px solid var(--node); padding: 4px 0 4px 14px; }110footer { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; }111@media (max-width: 480px) {112  .bar { grid-template-columns: 92px 1fr 80px; gap: 8px; }113  .grid { grid-template-columns: 1fr; }114}115/* Changes on main: one row per merge, one column per operation. */116.history td.change { min-width: 64px; }117.history td.quiet { color: var(--muted); }118.history td.commit { font-family: var(--body); white-space: normal; min-width: 240px; max-width: 360px; }119.history td.commit a { color: var(--ink); text-decoration: none; }120.history td.commit a:hover { text-decoration: underline; }121.history td.commit .sha { font-family: var(--mono); font-size: 0.86em; color: var(--muted); margin-right: 6px; }122.history td.commit .when { display: block; font-size: 0.86em; color: var(--muted); }123.history th.op { white-space: normal; min-width: 64px; }124/* Combining merges: a checkbox per merge and the combined row on top. */125.history input.pick { accent-color: var(--mb-native); margin: 0 8px 0 0; vertical-align: -2px; cursor: pointer; }126.history tr.picked td.commit { box-shadow: inset 3px 0 0 var(--mb-native); }127.history tr.combined td { border-bottom: 2px solid var(--ink); font-weight: 600; }128.history tr.combined td.commit .label { font-family: var(--display); font-weight: 700; }129.history tr.combined td.commit .when { font-weight: 400; }130.empty { border: 1px dashed var(--rule); border-radius: 8px; padding: 18px; color: var(--muted); font-size: 0.9rem; }131.more { align-self: flex-start; }132133