Skip to content

Delete the mobile fence rule that never applied - #644

Merged
pftg merged 2 commits into
masterfrom
css/ratify-mobile-fence-size
Aug 28, 2026
Merged

Delete the mobile fence rule that never applied#644
pftg merged 2 commits into
masterfrom
css/ratify-mobile-fence-size

Conversation

@pftg

@pftg pftg commented Aug 28, 2026

Copy link
Copy Markdown
Member

.blog pre code { font-size: 14.5px } sits inside @media (max-width: 768px) at style.css:440, but the global .blog pre code { font-size: 15.5px } at :539 sorts later — and media queries add no specificity, so the global rule wins even on mobile. Mobile has always rendered 15.5px.

2604 chose 14.5px deliberately (findings-mobile-ux.md:62-64) to reduce horizontal-scroll feel, and a later edit silently outvoted it by source order. So this is a decided behaviour that regressed without anyone choosing it.

Ratified, not restored. Re-measured at 390x844: fences wrap (pre-wrap), scroll is contained inside the block, bodyOverflowX false. The horizontal-scroll concern the rule addressed does not reproduce at 15.5px. The supersession is recorded where the decision was made, so the next reader finds the reasoning rather than a mystery.

The padding half of that block was always live and is untouched.

Evidence

  • desktop_site_test 39 runs, 0 failures. mobile_site_test 31 runs, 0 failures. No baseline changes.
  • The deleted rule cannot affect the desktop screenshots by construction — it lives inside a max-width: 768px block.

Note on the blog/index gate

This branch was blocked for a while by blog/index failing at 0.16% on master. That was not this change: a control run with the CSS edit reverted reproduced the identical difference level twice. It cleared once #642 merged, because master's blog index had drifted from a baseline last recorded when "RubyLLM in Rails" (Aug 20) was the featured post.

🤖 Generated with Claude Code

https://claude.ai/code/session_016PUkwFTsiv7EB2DYKogbpg

.blog pre code { font-size: 14.5px } sat inside a max-width:768px block, but
the global rule at style.css:539 sorts later and media queries add no
specificity - mobile has always rendered 15.5px. 2604 chose 14.5px to reduce
horizontal-scroll feel; re-measured at 390x844, fences wrap and scroll is
contained, so the concern does not reproduce. Ratified, not restored, and the
supersession is recorded where the decision was made.

Gate: blog/index fails on origin/master BEFORE this change - control run with
the change reverted gives the same difference level 0.0015653935 twice. The
diff is the featured-post title and thumbnail, which the .blog-post /
.post-feature masks do not cover, so the test breaks on content churn. Not
caused by this commit; not papered over by re-recording.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PUkwFTsiv7EB2DYKogbpg
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8b940e12-25ac-4498-bd73-ffc70d52298d


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

#642 and #643 are in. The typography audit is closed: the surface measures
good and 2604 built it, so the only live finding was the dek reading smaller
than the body it introduces - not actioned, because the real ask turned out to
be content formatting rather than CSS.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PUkwFTsiv7EB2DYKogbpg
@pftg
pftg merged commit 7c4b668 into master Aug 28, 2026
5 checks passed
@pftg
pftg deleted the css/ratify-mobile-fence-size branch August 28, 2026 19:14
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.

1 participant