Skip to content

Tune editorial inline type proportions#546

Merged
dcellison merged 1 commit into
mainfrom
tune_editorial_code_scale
Jul 23, 2026
Merged

Tune editorial inline type proportions#546
dcellison merged 1 commit into
mainfrom
tune_editorial_code_scale

Conversation

@dcellison

Copy link
Copy Markdown
Owner

Summary

  • Reduce inline Phi text to 0.9em so the monospace face sits slightly below the surrounding prose, as it does in documents/format.png.
  • Preserve the raised background's visual weight with slightly deeper chip padding.
  • Set repository paths to 0.78em; their narrow-screen wrapping is unchanged.

Measured result

At a 390px dark-theme viewport, the first Phi chip computes to 20.2176px inside 22.464px prose. Its background box remains 32.0625px high. The longest source path computes to 16.224px inside 20.8px reference text and wraps into line boxes of 332px and 225px.

The page remains exactly 390px wide with no horizontal overflow. The pull quote still sits within the reading column, and documents/format.png remains an untracked reference rather than part of this commit.

Verification

  • python3 scripts/build_site.py
  • python3 scripts/validate_examples.py (1,275 entries, 0 errors, 0 warnings)
  • python3 scripts/test_vocabulary_schema.py (22 tests)
  • python3 scripts/test_name_forms.py (20 tests)
  • python3 scripts/test_content_vocabulary_decisions.py (8 tests)
  • git diff --cached --check
  • Headless Chrome computed-style and geometry probe at 390px in the dark theme
  • Chapter 2 retained its original Git object hash, cff28d6595bce108e9d41f4813c7cdcf6dc41be9.

@dcellison
dcellison merged commit db97e29 into main Jul 23, 2026
1 check passed
@dcellison
dcellison deleted the tune_editorial_code_scale branch July 23, 2026 21:42
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