Repository navigation
Keep column geometry in the Layout and title type in the theme - #1722
Merged
Merged
Conversation
The column's margin postures (where its first sidebar, a contents map and a sidenote stand beside it) were geometry keyed on `main.layout-column` in the kernel theme; they move to the column Layout in layouts.css. The theme keeps how a sidebar and a sidenote look. The wide Layouts set their title's size in layouts.css. They now say only that the page is as wide as the window (`--lf-wide-page`), and the theme sets the title a size up for such a page with a style query, the same way a widget reads `--lf-full-height`. Titles measure the same as before on column and wide pages. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 4, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 4, 2026
The workspace-density round (#1697, #1722, #1724) settled three owners that never read each other: a Layout (`layouts.css`) places boxes, a style (the kernel `theme.css`) sets type, spacing and form under a class such as `density-working`, and widgets and chrome read only their own box and the theme's tokens. Nothing wrote that down. - `skills/leaf/assets/AGENTS.md` states the three axes and the one way they meet: the owner sets a token saying what the box is (`--lf-full-height`, `--lf-wide-page`, `--lf-resident`, `--lf-density`), and the reader keys on it with a style query. - `skills/leaf/references/packages.md` tells widget authors the same. - A Layout takes the room between boxes from the theme's spacing tokens, so `density-working` tightens a sidebar's or tiles' gaps with everything else; the contract says so. - `test_layout_style_and_widgets_never_read_each_other` fails when a Layout class is named outside `layouts.css`, a style class outside the kernel theme, or `layouts.css` sets type. Planting each violation fails it. - `TODO.md` keeps the round's last proposal, a visible active pane and a key to move between panes, under Etc with its trigger. - `content-layout.js` comments named `theme.css` as `--lf-resident`'s home; #1722 moved it to `layouts.css`. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR finishes keeping Layout and style apart, as #1697 set out. A Layout says where boxes stand and how large they are, and the theme owns type. Two rules still crossed that line, and both move to their owners. Neither changes what a page looks like.
layouts.css. These rules say where the column's first sidebar, a contents map and a sidenote stand beside the column: geometry keyed onmain.layout-column, which sat in the kerneltheme.css. They now sit in the column Layout, with the comment that explains them. The theme keeps how a sidebar and a sidenote look.layouts.css. Now they set only--lf-wide-page: 1, and the theme sizes the title with a style query on it, the same way widgets read--lf-full-height.Checked.
mainon a column page and a sidebar page.🤖 Generated with Claude Code