Skip to content
Merged
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
2 changes: 1 addition & 1 deletion architecture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[Open the interactive system map](https://www.theodoreoy.com/architecture/).

The viewer maps content inputs, static rendering, validation, GitHub Pages delivery,
and browser interactions. It supports label search, light and dark themes,
and browser interactions in the website's palette. It supports label search,
relationship tracing, and image export.

| File | Responsibility |
Expand Down
40 changes: 40 additions & 0 deletions architecture/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5040,6 +5040,46 @@
.diagram-nav [data-view="reset"][data-detail-visible] { min-width: min(88px, 100%); }
}
</style>
<style data-site-theme>
:root, [data-theme], [data-preset] {
--bg: #f7f6f5 !important;
--grid: transparent !important;
--text: #0b0b0b !important;
--text-muted: #70706c !important;
--text-dim: #a6a6a1 !important;
--text-faint: #70706c !important;
--panel: #f7f6f5 !important;
--panel-border: rgba(0, 0, 0, 0.08) !important;
--lane-fill: transparent !important;
--lane-stroke: rgba(0, 0, 0, 0.24) !important;
--arrow: #a6a6a1 !important;
--arrow-emphasis: #0b0b0b !important;
--mask: #f7f6f5 !important;
--frontend-fill: #f7f6f5 !important;
--frontend-stroke: #0b0b0b !important;
--backend-fill: #f7f6f5 !important;
--backend-stroke: #0b0b0b !important;
--database-fill: #f7f6f5 !important;
--database-stroke: #0b0b0b !important;
--cloud-fill: #f7f6f5 !important;
--cloud-stroke: #0b0b0b !important;
--security-fill: #f7f6f5 !important;
--security-stroke: #0b0b0b !important;
--messagebus-fill: #f7f6f5 !important;
--messagebus-stroke: #0b0b0b !important;
--external-fill: #f7f6f5 !important;
--external-stroke: #70706c !important;
--toolbar-bg: #f7f6f5 !important;
--toolbar-border: rgba(0, 0, 0, 0.12) !important;
--toolbar-text: #0b0b0b !important;
--toolbar-hover: #f7f6f5 !important;
--toolbar-menu-bg: #f7f6f5 !important;
}
body { background: var(--bg); }
#btn-theme, #btn-preset, .preset-wrap { display: none !important; }
.pulse-dot, .card-dot { background: var(--text) !important; box-shadow: none !important; }
*:not(.pulse-dot):not(.motion-control-dot) { border-radius: 0 !important; }
</style>
</head>
<body>
<!-- Toolbar: theme, live visual style, trace motion, presentation stage, and export.
Expand Down
15 changes: 9 additions & 6 deletions docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,11 @@ manuscripts, as in their PDFs.
Legal articles keep the source title, subtitle, author, date, abstract, chapter
numbering, paragraph order, citations, and acknowledgments. Chapters are H2 headings in
the heading role at weight 400 and subsections H3 headings in the item-title role;
italics inside subsection headings render upright. Citations, including text marked as
small capitals, use the reading size. Numbered footnote references open the note in a
italics inside subsection headings render upright. Citations use the reading size. The
manuscripts write a citation's small-capitals fields (authors and titles of books,
periodicals, institutional authors) in capitals; the page sets them in their proper case
in Source Serif 4's own small capitals, with acronyms, initials and Roman numerals at full
height, as a printed law review does. Numbered footnote references open the note in a
native dialog: centered on desktop, a bottom sheet with 44px controls on phones. Escape,
the backdrop, and Close return focus to the cited passage; View in Footnotes focuses the
full endnote. Full notes and two-way links work without JavaScript.
Expand Down Expand Up @@ -347,8 +350,8 @@ for each on a shared axis.

### Research tables

Research tables share the figures' frame. A manuscript caption ("Table N.") becomes the
title inside the frame; the header is a faintly tinted band in label type over a firm
Research and legal tables share the figures' frame. Every table carries a manuscript
caption ("Table N." and one sentence), which becomes the title inside the frame; the header is a faintly tinted band in label type over a firm
rule; rows part on hairlines; numeric columns align right in tabular figures, while
their headings keep proportional figures. The hovered row and column take a quiet tint
and the hovered column's header turns blue; a row or column the table emphasizes carries
Expand Down Expand Up @@ -479,5 +482,5 @@ the 768, 1024, and 1200px breakpoints and iPad portrait and landscape sizes; che
keyboard use, enlarged text, reduced motion, and pages without JavaScript. Use the
shared tokens in `app/globals.css`, focused CSS Modules for local surfaces, and semantic
HTML, and match the existing type, measure, and spacing before adding a new pattern. The
[architecture viewer](../architecture/) is a separate technical reference with its own
light and dark themes.
[architecture viewer](../architecture/) is a technical reference drawn in the site's
palette: paper, ink and hairlines, square corners, one theme.
6 changes: 4 additions & 2 deletions website/app/components/legal/LegalPaperPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@
scroll-margin-top: 6rem;
}

/* A citation's small-caps field (authors and titles of books, periodicals,
institutional authors) in the serif's own small capitals, lightly tracked. */
.smallCaps {
font-size: inherit;
letter-spacing: inherit;
font-variant-caps: small-caps;
letter-spacing: 0.025em;
}

.reference {
Expand Down
7 changes: 4 additions & 3 deletions website/app/components/legal/LegalPaperPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function RunText({ runs, prefix }: { runs: PaperRun[]; prefix: string }) {
});
}

/** A legal table in the paper tables' frame: the same zoom, column fitting and cell classes. */
function PaperTable({ rows, index }: { rows: NonNullable<LegalPaper["blocks"][number]["rows"]>; index: number }) {
/** A legal table in the paper tables' frame: the same title, zoom, column fitting and cell classes. */
function PaperTable({ rows, caption, index }: { rows: NonNullable<LegalPaper["blocks"][number]["rows"]>; caption?: LegalPaper["blocks"][number]["caption"]; index: number }) {
const cells: ResearchCell[][] = rows.map((row) => row.map(({ text }) => ({ source: text, inlines: [{ type: "text", text }] })));
const numeric = numericColumns(cells);
const sentences = sentenceColumns(cells);
Expand All @@ -74,6 +74,7 @@ function PaperTable({ rows, index }: { rows: NonNullable<LegalPaper["blocks"][nu
));
return (
<div className={researchStyles.tableFrame} data-table-frame data-paper-block={index}>
{caption && <p className={researchStyles.tableTitle} data-table-title><RunText runs={caption.runs} prefix={`caption-${index}`} /></p>}
<button type="button" className={`${stageStyles.control} ${researchStyles.zoom}`} data-table-zoom aria-label="Zoom in" aria-haspopup="dialog" hidden><ZoomGlyph /></button>
<div tabIndex={0} role="region" aria-label="Table" className={researchStyles.tableRegion}>
<table className={researchStyles.table} data-research-table data-research-block-type="table">
Expand Down Expand Up @@ -144,7 +145,7 @@ export function LegalPaperPage({ paper, showcase }: { paper: LegalPaper; showcas
<div className={styles.body}>
{paper.blocks.map((block, index) => {
const content = <RunText runs={block.runs} prefix={`body-${index}`} />;
if (block.type === "table" && block.rows) return <PaperTable key={index} rows={block.rows} index={index} />;
if (block.type === "table" && block.rows) return <PaperTable key={index} rows={block.rows} caption={block.caption} index={index} />;
if (block.type === "heading") {
const Heading = (block.level ?? 1) > 1 ? "h3" : "h2";
return <Heading id={block.id} tabIndex={-1} data-paper-block={index} key={index}>{content}</Heading>;
Expand Down
2 changes: 2 additions & 0 deletions website/app/lib/content/legal-papers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type PaperBlock = PaperParagraph & {
id?: string;
/** A table's rows; the first row holds the column headings. */
rows?: PaperParagraph[][];
/** A table's numbered caption, "Table N." and its sentence. */
caption?: PaperParagraph;
};

export type LegalPaper = {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion website/content/experience-showcase.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,6 @@
"aiSourceDocument": {
"fileName": "ai-research-and-engineering.md",
"path": "content/sources/ai-portfolio/ai-research-and-engineering.md",
"sha256": "d548a42aa520320b1abbec58e6f517c7e63a64e18802e7adfbc19132de76a098"
"sha256": "337a665b87865c723552fcb25da4a5492bc811d5cd4b01b36cc34fa10d718bf1"
}
}
Loading