Files
CatoandClaude Opus 5.5 8a26a7470e fix(home): 48px touch targets and a 12px label floor on the front page and nav (#169)
One token sizes every control: --size-target is 44px for a mouse and 48px
where the primary pointer is coarse. The shell (top bar, sidebar, rail, phone
tab bar, More sheet, palette), the hero, Ask, the role doors, the "what it
solves" cards and the footer badges use it instead of their own 2.75rem.

On the front page the standalone links (section asides, "Worst right now"
rows, the feed's headlines and rails, the stat tiles' "See them all") and the
stat tiles' counts — including the "Computed: Rules counted by the effect…"
figures — are now full-height targets, 8px apart line to line. Words inside a
sentence stay inline.

--text-label (12px) is the smallest text: the tab bar's "Bottlenecks", the
sidebar's section names, the rail, card kickers, the figure popover and the
footer badges were 10.4–11.5px.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:23:30 -07:00

186 lines
4.3 KiB
CSS

/* ── Your AI key: the settings panel (Ask composer + /account/settings) ── */
.aikey {
display: grid;
gap: 0.7rem;
margin-top: 0.6rem;
padding: 0.9rem 1rem;
border: 1px solid var(--color-border-strong);
border-radius: 0.4rem;
background: var(--color-surface-raised);
font-size: 0.85rem;
}
.aikey-status {
color: var(--color-fg-secondary);
}
.aikey-status strong {
color: var(--color-fg-primary);
}
.aikey-row {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 0.5rem;
}
.aikey-field {
display: grid;
gap: 0.25rem;
min-width: 9rem;
}
.aikey-grow {
flex: 1 1 14rem;
}
.aikey-field > span {
font: 0.7rem/1.4 var(--font-mono);
text-transform: uppercase;
letter-spacing: var(--tracking-caps);
color: var(--color-fg-muted);
}
.aikey-field a {
color: var(--color-accent);
text-decoration: underline;
text-transform: none;
letter-spacing: normal;
}
.aikey select,
.aikey input:not([type='radio']) {
width: 100%;
min-height: 2.4rem;
border: 1px solid var(--color-border-strong);
padding: 0.5rem 0.65rem;
background: var(--color-surface-page);
color: var(--color-fg-primary);
font: inherit;
}
.aikey button {
min-height: 2.4rem;
padding: 0.45rem 0.9rem;
border: 1px solid var(--color-fg-primary);
background: var(--color-fg-primary);
color: var(--color-surface-page);
font: inherit;
font-weight: 600;
cursor: pointer;
}
.aikey button.aikey-quiet {
border-color: var(--color-border-strong);
background: transparent;
color: var(--color-fg-primary);
font-weight: 400;
}
.aikey button:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.aikey-where {
display: flex;
flex-wrap: wrap;
gap: 0.4rem 1.2rem;
color: var(--color-fg-secondary);
}
.aikey-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.aikey-note {
color: var(--color-fg-tertiary);
font-size: 0.78rem;
line-height: 1.5;
}
.aikey-error {
color: var(--color-status-negative);
}
/* The live answer from the provider: checking, works, or its refusal. */
.aikey-check {
min-height: 1.3rem;
overflow-wrap: anywhere;
}
.aikey-ok {
color: var(--color-status-positive);
}
.aikey-hint {
color: var(--color-fg-tertiary);
font-size: 0.78rem;
}
.aikey-field > small {
text-transform: none;
}
/* ── "Check this": claim → Ask verdict (components/portal/CheckThis.tsx) ── */
.check-this {
display: inline-flex;
align-items: center;
min-height: var(--size-target);
font: var(--text-label)/1.4 var(--font-mono);
text-transform: uppercase;
letter-spacing: var(--tracking-caps);
color: var(--color-accent);
background: none;
border: 0;
padding: 0;
text-decoration: underline;
text-underline-offset: 0.2em;
cursor: pointer;
}
.check-this:hover {
text-decoration-style: solid;
}
.check-this:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
.check-this.is-inline {
margin-left: 0.6rem;
font-size: var(--text-label);
color: var(--color-fg-tertiary);
}
/* The verdict an answer opened with, and the passages it relied on. */
.companion-verdict {
display: inline-block;
margin-bottom: 0.4rem;
padding: 0.15rem 0.5rem;
border: 1px solid currentColor;
font: 600 var(--text-label)/1.5 var(--font-mono);
text-transform: uppercase;
letter-spacing: var(--tracking-caps);
}
.companion-verdict.is-supported {
color: var(--color-status-positive);
}
.companion-verdict.is-contradicted {
color: var(--color-status-negative);
}
.companion-verdict.is-outdated {
color: var(--color-status-warning);
}
.companion-verdict.is-unverifiable {
color: var(--color-fg-tertiary);
}
.companion-passage {
margin: 0.3rem 0 0.2rem;
padding-left: 0.7rem;
border-left: 2px solid var(--color-border-strong);
color: var(--color-fg-secondary);
font-size: 0.8rem;
line-height: 1.5;
}
.companion-sources .companion-primary {
display: block;
font-size: 0.75rem;
}
.companion-sources .companion-primary a {
color: var(--color-fg-tertiary);
text-decoration: underline;
}
/*
* Inside the dock the key panel sits in the sticky composer, and at full
* height it pushed the whole conversation out of the panel on a phone. Capped
* and scrolled on its own, the thread above stays in view while a key is set.
*/
.companion.is-compact .aikey {
max-height: min(16rem, 38dvh);
overflow-y: auto;
overscroll-behavior: contain;
}