mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 05:07:46 +01:00
Every code file the size ratchet grandfathered is now under its 300-line
ceiling, split by what it does rather than by line count:
- lib/search.ts -> entry + lib/search/{text,corpus,build,expand,score,snippets}
- lib/chat-tools.ts -> lib/chat-tools/ (one module per tool family + registry)
- lib/chat-agent.ts -> lib/chat-agent/{loop,parse,turn,prompt,stream-gate}
- lib/chat.ts -> lib/chat/{types,retrieve,models,answer}
- ResearchChat.tsx -> components/portal/chat/ (thread, turn, composer,
BYOK panel, contribute form, hooks)
- SearchBox.tsx -> components/portal/search/ (popover, page form, shared)
- profile modules, lib/bottlenecks.ts, lib/participants.ts -> build/board
and module-family files beside them
- app/page.tsx, app/markets/[slug]/page.tsx, app/policy/page.tsx -> section
components in private _home/_sections folders
globals.css (2379 -> 664 lines) keeps tokens, base and site chrome; the
feature blocks moved to app/styles/*.css, imported from the root layout in
the order they had inside globals.css so the cascade is unchanged.
Screenshots of /, /search?q=asml, /markets/asml, the EUV bottleneck, /chat,
/notes, /atlas, /policy and /talent at 390/820/1440px are pixel-identical
to main.
The config/ corpus files stay grandfathered as data; the logic that was in
them moved to lib/ (coverage-progress.ts, participants.ts, geo.ts).
Also: the desk's "Open on" select said "Last all time"; and
INFRASTRUCTURE.md now records the hourly :17 sweep timer, the everyHours
setting that decides whether a run is due, and that 005-desk.sql is applied.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
201 lines
3.7 KiB
CSS
201 lines
3.7 KiB
CSS
/**
|
|
* Notes: bip-kit's article classes, dressed in Substrata's tokens.
|
|
*
|
|
* bip-kit emits semantic `bp-*` class names and ships no opinion about how
|
|
* they look, which is the point — the shared package owns the parsing and the
|
|
* security model, this file owns every visual decision, and a note ends up
|
|
* looking like the rest of the site rather than like a blog bolted onto it.
|
|
*
|
|
* Nothing here is a literal colour. Every value is one of the tokens above.
|
|
*/
|
|
.bp-article {
|
|
color: var(--color-fg-secondary);
|
|
font-size: 1.0625rem;
|
|
line-height: 1.75;
|
|
}
|
|
|
|
/* The renderer nests its own wrapper, so the blocks are not direct children
|
|
of .bp-article. Spacing therefore goes on the block classes themselves. */
|
|
.bp-p,
|
|
.bp-blockquote,
|
|
.bp-figure,
|
|
.bp-callout,
|
|
.bp-table-wrap,
|
|
.bp-pre,
|
|
.bp-codeblock,
|
|
.bp-stats,
|
|
.bp-embed,
|
|
.bp-article ul,
|
|
.bp-article ol {
|
|
margin-top: 1.15rem;
|
|
}
|
|
|
|
.bp-h2,
|
|
.bp-h3,
|
|
.bp-h4 {
|
|
color: var(--color-fg-primary);
|
|
font-family: var(--font-heading);
|
|
font-weight: 600;
|
|
letter-spacing: var(--tracking-display);
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.bp-h2 {
|
|
margin-top: 2.5rem;
|
|
font-size: 1.6rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.bp-h3 {
|
|
margin-top: 2rem;
|
|
font-size: 1.25rem;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.bp-h4 {
|
|
margin-top: 1.5rem;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.bp-p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.bp-article strong {
|
|
color: var(--color-fg-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bp-link {
|
|
color: var(--color-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.bp-article ul,
|
|
.bp-article ol {
|
|
padding-left: 1.3rem;
|
|
}
|
|
|
|
.bp-li {
|
|
margin-top: 0.4rem;
|
|
}
|
|
|
|
.bp-li::marker {
|
|
color: var(--color-fg-muted);
|
|
}
|
|
|
|
.bp-blockquote {
|
|
margin-left: 0;
|
|
border-left: 2px solid var(--color-accent);
|
|
padding: 0.15rem 0 0.15rem 1.1rem;
|
|
color: var(--color-fg-primary);
|
|
font-family: var(--font-heading);
|
|
font-size: 1.2rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.bp-hr {
|
|
border: 0;
|
|
border-top: 1px solid var(--color-border-subtle);
|
|
margin: 2.5rem 0;
|
|
}
|
|
|
|
.bp-inline-code {
|
|
border-radius: 3px;
|
|
background: var(--color-surface-raised);
|
|
padding: 0.1em 0.35em;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.875em;
|
|
color: var(--color-fg-primary);
|
|
}
|
|
|
|
.bp-pre,
|
|
.bp-codeblock {
|
|
overflow-x: auto;
|
|
border: 1px solid var(--color-border-subtle);
|
|
border-radius: 6px;
|
|
background: var(--color-surface-raised);
|
|
padding: 0.9rem 1rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.bp-table-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.bp-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.bp-table th,
|
|
.bp-table td {
|
|
border-bottom: 1px solid var(--color-border-subtle);
|
|
padding: 0.5rem 0.9rem 0.5rem 0;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.bp-table th {
|
|
border-bottom-color: var(--color-border-strong);
|
|
color: var(--color-fg-tertiary);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
letter-spacing: var(--tracking-caps);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.bp-callout {
|
|
border-left: 2px solid var(--color-border-strong);
|
|
border-radius: 0 6px 6px 0;
|
|
background: var(--color-surface-raised);
|
|
padding: 0.8rem 1rem;
|
|
}
|
|
|
|
.bp-callout--warn {
|
|
border-left-color: var(--color-status-warning);
|
|
}
|
|
|
|
.bp-callout--note {
|
|
border-left-color: var(--color-accent);
|
|
}
|
|
|
|
.bp-callout-title {
|
|
color: var(--color-fg-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bp-figure {
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.bp-img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.bp-figcaption {
|
|
margin-top: 0.5rem;
|
|
color: var(--color-fg-tertiary);
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.bp-footnotes {
|
|
margin-top: 3rem;
|
|
border-top: 1px solid var(--color-border-subtle);
|
|
padding-top: 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.bp-fnref,
|
|
.bp-fn-back {
|
|
color: var(--color-accent);
|
|
}
|