Skip to content

Place column pages and sheets with one margin formula - #1119

Merged
max-sixty merged 1 commit into
mainfrom
sheet-margins
Sep 24, 2026
Merged

max-sixty merged 1 commit into
mainfrom
sheet-margins

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A column page and a sheet sized their margins with separate rules: the column
centred in the shell less its strips and grew exhibits symmetrically; the sheet
had its own gutter (the wider of a clamp and either strip); and a standing
sidebar restated room, shift, growth split and space bound for column pages
only, twice (with and without a sidenote), fenced off from sheets.

main now states one reading for both. A page is a measure
(--lf-page-measure: the column, --wide or --sheet-max) with a pad each side
(--lf-page-pad: the column's 24px, or the sheet's clamp); each side's gutter is
the wider of the pad and its strip, the strip keeping the column's pad from the
window's edge until the measure no longer fits beside it. From that come the
room, the page's width, its shift, and the room free each side of it
(--lf-free-l, --lf-free-r), which every wide block's growth now reads. A lone
sidebar restates only the shift (gutters first) and that nothing may grow into
a sticky box's side; the contents map says what is free beside it.

The page's width and free lengths are registered, so they resolve once on
main rather than wherever a widget reads them: left as expressions, their
100cqi measured the nearest size container, and a board in a workspace pane
grew out of it. The rail's yield bound is stated in those lengths rather than
as 100% of whatever box reads it, which a diagram's spacers re-resolved
against the diagram's own width.

Behaviour: standalone exports of five examples (three column pages, two
sheets) render byte-identically at 1440 and 1200. A sheet with a strip wider
than its pad now keeps the pad on the other side rather than matching the
strip on both, so it is a few pixels off centre instead of that much narrower.

🤖 Generated with Claude Code

This was written by Claude Code on behalf of max-sixty

A column page and a sheet sized their margins with separate rules: the column
centred in the shell less its strips and grew exhibits symmetrically; the sheet
had its own gutter (the wider of a clamp and either strip); and a standing
sidebar restated room, shift, growth split and space bound for column pages
only, twice (with and without a sidenote), fenced off from sheets.

`main` now states one reading for both. A page is a measure
(--lf-page-measure: the column, --wide or --sheet-max) with a pad each side
(--lf-page-pad: the column's 24px, or the sheet's clamp); each side's gutter is
the wider of the pad and its strip, the strip keeping the column's pad from the
window's edge until the measure no longer fits beside it. From that come the
room, the page's width, its shift, and the room free each side of it
(--lf-free-l, --lf-free-r), which every wide block's growth now reads. A lone
sidebar restates only the shift (gutters first) and that nothing may grow into
a sticky box's side; the contents map says what is free beside it.

The page's width and free lengths are registered, so they resolve once on
main rather than wherever a widget reads them: left as expressions, their
100cqi measured the nearest size container, and a board in a workspace pane
grew out of it. The rail's yield bound is stated in those lengths rather than
as 100% of whatever box reads it, which a diagram's spacers re-resolved
against the diagram's own width.

Behaviour: standalone exports of five examples (three column pages, two
sheets) render byte-identically at 1440 and 1200. A sheet with a strip wider
than its pad now keeps the pad on the other side rather than matching the
strip on both, so it is a few pixels off centre instead of that much narrower.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 869dd7c into main Sep 24, 2026
5 checks passed
@max-sixty
max-sixty deleted the sheet-margins branch September 24, 2026 17:09
max-sixty added a commit that referenced this pull request Sep 24, 2026
main carries sheet-followups as #1113 and one margin formula as #1119, so the merge takes main's tree and reapplies this branch's own changes: the page-tab theme fixes and the draft page.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants