Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/ShareStory.astro
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ const mail = `mailto:?subject=${q(title)}&body=${q(`${summary}\n\n${url}`)}`;
}
.st-share-pause[hidden] { display: none; }
.st-share-card figcaption a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 44px targets for the pause button and the two save links (they were 18px tall text lines) */
.st-share-pause, .st-share-card figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
.st-share-text {
max-width: 60ch; margin: 0 0 16px; padding: 14px 16px;
border: 1px solid var(--rule); background: var(--paper);
Expand Down
2 changes: 1 addition & 1 deletion src/components/StoryBadges.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { grade, simulation = false, alleged = false } = Astro.props;
<style>
.st-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.st-badge {
font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace;
font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace;
letter-spacing: .06em; text-transform: uppercase;
padding: 5px 7px; border: 1px solid var(--ink); color: var(--ink);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/StoryMotion.astro
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ const caption = diagramCaption({ simulation, alleged });
display: block; width: 100%; aspect-ratio: 8 / 5;
background: var(--paper); border: 1px solid var(--rule);
}
.sm-cap { margin: 8px 0 0; font-size: 11px; line-height: 1.45; letter-spacing: .02em; color: var(--sub); }
.sm-cap { margin: 8px 0 0; font-size: 12px; line-height: 1.45; letter-spacing: .02em; color: var(--sub); }
.sm--hero { max-width: 640px; }
</style>
39 changes: 30 additions & 9 deletions src/pages/agents.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ const RELAY = `I found a book that fits what you have been asking about: Knowwar
<p class="kw-label">What you can do</p>
<h2 class="ag-h" id="can-h">Four things, in order of trust.</h2>
<div class="ag-table-wrap" role="region" aria-label="Capabilities table" tabindex="0">
<table class="ag-table">
<table class="ag-table" role="table">
<caption class="sr-only">What agents can do on knowware.systems</caption>
<thead>
<tr><th scope="col">Capability</th><th scope="col">Needs a human?</th><th scope="col">Status</th><th scope="col">Where</th></tr>
<tr role="row"><th scope="col" role="columnheader">Capability</th><th scope="col" role="columnheader">Needs a human?</th><th scope="col" role="columnheader">Status</th><th scope="col" role="columnheader">Where</th></tr>
</thead>
<tbody>
{CAPABILITIES.map((c) => (
<tr>
<th scope="row">{c.what}</th>
<td>{c.human}</td>
<td><span class={`ag-status ag-status--${c.status.toLowerCase().replace(/\s+/g, '-')}`}>{c.status}</span></td>
<td><a href={c.href}>{c.where}</a></td>
<tr role="row">
<th scope="row" role="rowheader">{c.what}</th>
<td role="cell" data-label="Needs a human?">{c.human}</td>
<td role="cell" data-label="Status"><span class={`ag-status ag-status--${c.status.toLowerCase().replace(/\s+/g, '-')}`}>{c.status}</span></td>
<td role="cell" data-label="Where"><a href={c.href}>{c.where}</a></td>
</tr>
))}
</tbody>
Expand All @@ -75,10 +75,10 @@ const RELAY = `I found a book that fits what you have been asking about: Knowwar
<p class="kw-label">The record</p>
<h2 class="ag-h" id="rec-h">The book, as facts.</h2>
<div class="ag-table-wrap" role="region" aria-label="Book record table" tabindex="0">
<table class="ag-table ag-table--record">
<table class="ag-table ag-table--record" role="table">
<caption class="sr-only">Facts about the book</caption>
<tbody>
{RECORD.map(([k, v]) => <tr><th scope="row">{k}</th><td>{v}</td></tr>)}
{RECORD.map(([k, v]) => <tr role="row"><th scope="row" role="rowheader">{k}</th><td role="cell">{v}</td></tr>)}
</tbody>
</table>
</div>
Expand Down Expand Up @@ -429,4 +429,25 @@ const RELAY = `I found a book that fits what you have been asking about: Knowwar
.ag-tokens li span { overflow-wrap: anywhere; min-width: 0; }
.ag-revoke { padding: 8px 14px; }
.ag-live { margin: 16px 0 0; font-size: 14px; color: var(--ink); min-height: 1.4em; }
/* Phones: both tables were 520px wide inside a 286-341px box, so the second column was cut mid-word
with no cue to scroll. Each row becomes a stacked block instead. role attributes keep the table
semantics that display:block would otherwise drop. */
@media (max-width: 640px) {
.ag-table-wrap { overflow: visible; border: 0; }
.ag-table { min-width: 0; display: block; }
.ag-table tbody, .ag-table tr, .ag-table th, .ag-table td { display: block; }
.ag-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ag-table tbody tr { border: 1px solid var(--rule); margin: 0 0 10px; padding: 4px 0; }
.ag-table th, .ag-table td { border-bottom: 0 !important; padding: 6px 14px; }
.ag-table tbody th { padding-top: 10px; font-size: 16px; }
.ag-table--record tbody th { width: auto; font: 600 12px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); padding-bottom: 0; }
.ag-table td[data-label]::before { content: attr(data-label); display: block; font: 600 12px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); margin-bottom: 2px; }
.ag-table td a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) {
.ag-field input, .ag-field select, #ag-token { font-size: 16px; min-height: 48px; } /* 16px: no iOS zoom on focus */
.ag-revoke { min-height: 44px; }
.ag-check input { width: 22px; height: 22px; }
.ag-check { align-items: center; min-height: 44px; }
}
</style>
4 changes: 2 additions & 2 deletions src/pages/stories/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const jsonLd = {
.st-links .kw-btn--filled { color: #EDEEE4; }
.st-legend { display: grid; gap: 8px; margin: 0; max-width: 78ch; font-size: 14px; line-height: 1.5; }
.st-legend div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; }
.st-legend dt { font: 600 11px/1.6 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.st-legend dt { font: 600 12px/1.6 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.st-legend dd { margin: 0; color: var(--sub); }
.st-list { border-bottom: none; }
.st-list .kw-label { margin-bottom: 8px; }
Expand All @@ -114,7 +114,7 @@ const jsonLd = {
.st-h a:hover { text-decoration: underline; text-underline-offset: 4px; }
.st-summary { max-width: 68ch; margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.st-layer { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.st-layer-k { display: inline-block; margin-right: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.st-layer-k { display: inline-block; margin-right: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.st-more { margin: 0; font: 500 13px/1.4 "JetBrains Mono", ui-monospace, monospace; }
.st-more a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) {
Expand Down
Loading