Tighten mobile content rail padding to px-2 #22

Closed
michalvankodev wants to merge 2 commits from mobile-content-padding into main

Tightens the shared horizontal page rail to px-2 (0.5rem) — the old px-5 (1.25rem) felt too wide on phones.

Changed everywhere the rail lives, so edges stay aligned on every page:

  • base.html — the standard page content container (portfolio, blog list, showcase, contact, ...)
  • blog_post.html — article header, body container, and footer
  • index.html — all homepage sections
  • site_header.html / site_footer.html — masthead nav and footer (same rail)

Interior article typography (.article-body px-4) is untouched — it exists for breakout geometry (figures/code/tables overflow the text column symmetrically).

On wide screens nothing visually shifts: containers are centered by max-width, the padding only applies while the viewport is narrower than the rail.

Tightens the shared horizontal page rail to `px-2` (0.5rem) — the old `px-5` (1.25rem) felt too wide on phones. **Changed everywhere the rail lives, so edges stay aligned on every page:** - `base.html` — the standard page content container (portfolio, blog list, showcase, contact, ...) - `blog_post.html` — article header, body container, and footer - `index.html` — all homepage sections - `site_header.html` / `site_footer.html` — masthead nav and footer (same rail) Interior article typography (`.article-body` px-4) is untouched — it exists for breakout geometry (figures/code/tables overflow the text column symmetrically). On wide screens nothing visually shifts: containers are centered by max-width, the padding only applies while the viewport is narrower than the rail.
Increase mobile content rail padding to 2rem
All checks were successful
preview / preview hostname (push) Successful in 0s
preview / build + deploy preview (push) Has been skipped
preview / teardown preview (push) Has been skipped
test / cargo test (push) Successful in 56s
preview / preview hostname (pull_request) Successful in 0s
preview / teardown preview (pull_request) Has been skipped
preview / build + deploy preview (pull_request) Successful in 1m17s
f2faeed051
Bump the shared page rail from px-5 (1.25rem) to px-8 (2rem) across
all page containers — base content div, blog post header/body/footer,
index sections, and the site header/footer — so content edges stay
aligned while phones get a more comfortable ~2rem gutter.

🪦 Live preview

removed (PR closed)

<!-- preview-link --> ## 🪦 Live preview removed (PR closed)
Tighten the rail to px-2 (0.5rem)
All checks were successful
preview / preview hostname (push) Successful in 0s
preview / teardown preview (push) Has been skipped
test / cargo test (push) Successful in 58s
preview / build + deploy preview (push) Successful in 1m13s
preview / preview hostname (pull_request) Successful in 0s
preview / build + deploy preview (pull_request) Has been skipped
preview / teardown preview (pull_request) Successful in 0s
7482bcc4fa
2rem was wider than intended; drop the shared page rail to px-2.
michalvankodev changed title from Increase mobile content rail padding to 2rem to Tighten mobile content rail padding to px-2 2026-09-12 17:37:17 +02:00
Author
Owner

Superseded by #23, which takes a different approach to the mobile content rail.

Superseded by #23, which takes a different approach to the mobile content rail.
michalvankodev closed this pull request 2026-09-13 21:29:56 +02:00
All checks were successful
preview / preview hostname (push) Successful in 0s
preview / teardown preview (push) Has been skipped
test / cargo test (push) Successful in 58s
preview / build + deploy preview (push) Successful in 1m13s
preview / preview hostname (pull_request) Successful in 0s
preview / build + deploy preview (pull_request) Has been skipped
preview / teardown preview (pull_request) Successful in 0s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
michalvankodev/michalvankodev-site!22
No description provided.