Skip to content

feat(padding): opt-in mobile padding via PaddingClasses#2003

Merged
markdumay merged 3 commits into
mainfrom
feat/mobile-padding
Jul 12, 2026
Merged

feat(padding): opt-in mobile padding via PaddingClasses#2003
markdumay merged 3 commits into
mainfrom
feat/mobile-padding

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Summary

Consumes mod-utils v5.24.0's opt-in [*.padding.mobile] support: the section-level padding interpolations (page shells, headers, footer social, navbar) now compose their classes via the PaddingClasses partial. Sites that configure a mobile padding get px-2 px-md-4-style responsive utilities below the md breakpoint; sites that don't get byte-identical output (verified with a full-site class-string diff of the exampleSite against main — empty).

Ten consumer sites swapped: single, list (×2), tags/list, docs/all, header, docs/header, minimal/header, form/single, footer/social, navbar (navigation section, falls back to main's mobile values per the existing chain).

Deliberately not swapped

  • page/articles.html, assets/links.html, assets/card.html, assets/card-group.html, assets/nav.html, assets/timeline.html, assets/section-title.html — internal component rhythm, not section padding.
  • _shortcodes/example-bookshop.html — already mobile-aware by construction (p-1 px-md-*).
  • head/stylesheet.html's padding-x SCSS var — SCSS keeps the regular value.

🤖 Generated with Claude Code

markdumay and others added 2 commits July 12, 2026 08:37
Swap the section-level padding interpolations (page shells, headers,
footer, navbar) to mod-utils' PaddingClasses partial, enabling the
opt-in [*.padding.mobile] config. Output is byte-identical when no
mobile padding is configured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pins the release that ships the PaddingClasses partial consumed by
this branch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@markdumay markdumay enabled auto-merge July 12, 2026 08:43
@netlify

netlify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit 3a2e69e
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6a535666f793a800082fab43
😎 Deploy Preview https://deploy-preview-2003--gethinode-demo.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.

@markdumay markdumay merged commit 550aa01 into main Jul 12, 2026
16 checks passed
@markdumay markdumay deleted the feat/mobile-padding branch July 12, 2026 09:00
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 2.20.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant