Skip to content

💄♻️:keep the page shell in one place - #1854

Merged
openinf-commit-queue[bot] merged 1 commit into
livefrom
refactor/page-shell
Aug 24, 2026
Merged

💄♻️:keep the page shell in one place#1854
openinf-commit-queue[bot] merged 1 commit into
livefrom
refactor/page-shell

Conversation

@DerekNonGeneric

@DerekNonGeneric DerekNonGeneric commented Aug 24, 2026

Copy link
Copy Markdown
Member

Six stylesheets each carried their own copy of the page shell: .wrap, the
room a page leaves for the footer, the link color, the focus ring, and the
section furniture. All six said the same thing in six spellings —
$docs-wrap, $about-wrap, $doc-wrap, --wrap — and every one resolved to
1200px.

They now read one _shell.scss. 196 lines removed; 60 added, 59 of them the new file.

The bug this closes

_home.scss declared .band and .section-head with no prefix, at (0,1,0).
Every page uses those names, so the home page's rules were in scope on all of
them. Nothing was visibly wrong, because each page happened to override every
property home set — but a property added to one of those rules would have
landed on five pages at once.

.section-head was the shell's rule already, to the character, and is gone.
.band's tighter value on the home page turned out to be a leftover from
before the shell existed rather than a deliberate choice, so it goes too — the
gap is nothing at mobile and 4px at desktop, and now matches .sdk-body
right above it on the same page.

Checked afterwards: no selector in any page stylesheet reaches a page it does
not belong to.

Verification

The compiled stylesheet was captured before and after and compared
declaration by declaration. 72 page-scoped declarations became 8 shared ones,
and three values differ:

before after
.section-head border 2px solid var(--ink) 2px solid #1d1916
.section-more font var(--mono) the same stack, literal

Both are the same value written another way. .band moved to the shell's
clamp(2.5rem, 6vw, 4rem) outright, home included.

nps test passes, all 18.

Left alone

_pages.json still names page.liquid as the default layout, and
_custom.scss still styles main > .container for it. Nothing uses either —
every page sets layout: default — so this is the old shell sitting dormant.
Worth knowing that a page reviving it would now take the shell's
padding-bottom on top of the container's own. Not touched here, since
whether that layout has a future is a decision rather than a refactor.

@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for gh-pages-openinf ready!

Name Link
🔨 Latest commit 5ca0eeb
🔍 Latest deploy log https://app.netlify.com/projects/gh-pages-openinf/deploys/6a8bda2997d9b0000880ad4c
😎 Deploy Preview https://deploy-preview-1854--gh-pages-openinf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Six stylesheets each carried their own `.wrap`, their own room for the
footer, their own link color and focus ring. All six said the same
thing in six spellings, and a seventh page would have said it again.

They now read one `_shell.scss`. The error page, which centers against
the viewport and has no flow to pad, is the one exception and says so.

`_home.scss` declared `.band` and `.section-head` without a prefix, and
every page uses those names. Both were the shell's rule already, once
`.band`'s own tighter value turned out to be a leftover from before the
shell existed rather than a choice, so both are gone. No selector in
any page stylesheet reaches another page now.

72 page-scoped declarations became 8 shared ones. Three differ from
before, and all three are the same value written another way.

Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
Assisted-by: Claude-Code:claude-opus-5
@OpenINFbot OpenINFbot added the commit-queue Land this pull request when its checks pass label Aug 24, 2026
@openinf-commit-queue
openinf-commit-queue Bot merged commit feb8c13 into live Aug 24, 2026
17 checks passed
@openinf-commit-queue openinf-commit-queue Bot removed the commit-queue Land this pull request when its checks pass label Aug 24, 2026
@OpenINFbot
OpenINFbot deleted the refactor/page-shell branch August 24, 2026 06:00
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