docs: stop the docs font size from scaling up on wide screens - #10914
Merged
Merged
Conversation
Material for MkDocs raises the root font size to 137.5% above 1600px and 150% above 2000px. The body type is sized in rem, so it rode that scaling and reached 18px on large monitors, making it difficult to read. Pinning the root at 125% from the lower threshold up holds body text at 15px at every width.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues remain.
Review effort: Lite
Findings: None
What changed in this PR
Pins Material for MkDocs’ root font size at 125% on wide screens, keeping body text at 15px.
Changes:
- Adds a wide-screen CSS override to prevent font scaling.
| File | Description |
|---|---|
docs/stylesheets/extra.css |
Adds the wide-screen root font-size override. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Pinning the root at 125% held body text at 15px on every screen, which reads as too small on a 2000px display. Raising the cap to 133.333% lets the type step up once at 1600px and then hold at 16px, so the widest monitors get readable text without the run-up to 18px.
kirangadhave
approved these changes
Sep 18, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Material for MkDocs raises the root font size to 137.5% above 1600px and 150% above 2000px. The body type is sized in rem, so it rode that scaling and reached 18px on large monitors, making it difficult to read. This PR pins the root at 133.3% from the lower threshold up.