Add layout library: six page-level scaffolds#46
Merged
Conversation
Rebuild global.layout.css from mcss.dev-specific styles into a proper layout library: .layout app shell plus centered, sidebar (with sidebar-end), docs, split, and cover variants, driven by new --layout-content-width and --layout-toc-width tokens. The docs-only plumbing (sticky navs, 77ch column, TOC nth-of-type hack) moves to the site's own CSS, with docs pages switching to .layout-docs and an explicit layout_content_aside-toc class. Every mcss.dev page now runs on a scaffold, including the homepage and the marketing template. Full-page demos under /demos/layout/ and thumbnail diagrams on the docs page. Folded into the unreleased v1.0.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for mcssdev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.

What
Rebuilds
global.layout.cssfrom mcss.dev-specific styles into a real layout library, folded into the unreleased v1.0.0..layoutapp shell (sticky footer) plus.layout-centered,.layout-sidebar(composable.layout-sidebar-end),.layout-docs(nav + main + TOC),.layout-split,.layout-cover.--layout-content-width(70ch) and--layout-toc-width(1fr, any track size) insettings.ui.css, joining--layout-aside-width.nth-of-typehack replaced by an explicitlayout_content_aside-tocclass; mcss.dev specifics (sticky side navs, 77ch column) moved tosrc/styles/site/global.layout.css, the dogfooding example the docs link to..layout-docs, blog on.layout-centered, homepage and marketing template on the base.layoutshell./demos/layout/(colored blocks, honest breakpoint/100dvh behavior) and clickable thumbnail diagrams in the rewritten Layouts docs section (WIP notice gone).Behavior change
Generic
.layout-sidebarnow stacks on mobile instead of hiding its aside; hiding is.layout-docsbehavior (documented, with a notice that docs nav belongs in the header menu on small screens). Called out in the 1.0.0 changelog Breaking section for 0.9 users.Verification
--lg); blog column still resolves to 70ch.npm run buildpasses (110 pages); internal links and anchors on touched pages verified against the build output;dist/rebuilt.🤖 Generated with Claude Code