Conversation
- Increase content max-width to 850px for better line lengths - Reduce base font size to 15px to improve scannability - Refine heading weights (500) and sizes (h1: 2.2em, h2: 1.75em, h3: 1.4em) - Reduce heading margins to improve content flow These changes address feedback regarding narrow page width, large font size, and disruptive headings using standard VitePress theme variables.
- Increase content max-width to 900px for a wider feel - Reduce base font size to 15px to improve information density - Expand total container to 1200px to better fit content and sidebar - Optimize heading sizes and margins for better reading flow - Adjust line-height to 1.6 for improved skimming speed
…port - Increased content width to 900px (standard) and 1100px (2K+). - Reduced base font size to 15px for improved skimming. - Optimized heading sizes and margins to enhance reading flow. - Implemented a 3-column CSS grid layout to center main content on large screens while keeping the aside menu on the right.
- Set base font size to 15px for improved skimming. - Increased content max-width to 1000px (1064px including padding) for better wide-screen utilization. - Adjusted heading margins and removed h2 border-bottom to enhance reading flow. - Optimized selectors in style.css to override hardcoded VitePress defaults maintainably.
- Increase content max-width to 1064px (1000px text area) for better screen utilization. - Reduce base font-size to 15px (scoped to .vp-doc) to improve skimmability while preserving homepage hero styling. - Refine heading flow by removing h2 bottom borders and optimizing vertical margins. - Maintain site-wide max-width at 1440px to ensure navigation grouping on wide screens. - Implement overrides using high-specificity selectors to avoid !important flags.
- Increase content max-width to 1064px (1000px text area) using robust selectors. - Reduce doc font-size to 0.9375rem (scoped to .vp-doc) for accessibility and skimming. - Optimize vertical flow with sibling margins and association-based heading spacing. - Remove h2 borders and excessive nested list gaps to improve reading flow. - Group custom theme variables in :root for better maintainability.
…mentation - Increase content max-width to 1064px (1000px text area) using robust selectors scoped to #VPContent. - Reduce doc font-size to 0.9375rem (scoped to .vp-doc) for improved skimming and accessibility. - Scope heading typography (h1-h6) to .vp-doc and homepage containers to avoid site-wide side effects. - Namespace .VPDocAside styles under #VPContent to ensure they only affect documentation pages. - Refine vertical flow with sibling margins and association-based heading spacing. - Group custom theme variables in :root for better maintainability.
- Increase content max-width to 1064px (1000px text area) scoped to #VPContent. - Reduce documentation font-size to 0.9375rem for improved skimming and accessibility. - Update Aside outline font sizes to rem units (0.6875rem and 0.8125rem) for better scaling. - Scope layout width constraints: 1440px for docs, 2400px for home on ultra-wide screens. - Scope heading typography (h1-h6) to .vp-doc and homepage containers. - Refine vertical flow with association-based heading margins and sibling spacing. - Group all custom theme variables in :root for maintainability.
Contributor
Reviewer's GuideRefines VitePress documentation layout and typography by narrowing doc font size, restructuring heading and body spacing, widening the doc content width while constraining it on ultra-wide screens, and restyling the "On this page" aside and hero/feature headings for better readability and visual hierarchy. State diagram for responsive documentation layout breakpointsstateDiagram-v2
direction LR
[*] --> viewport_lt_960
state viewport_lt_960 {
[*] --> mobile_layout
mobile_layout: VPDoc_content_width_default
mobile_layout: VPDoc_container_width_default
}
viewport_lt_960 --> viewport_960_to_1439: viewport_width_ge_960
viewport_960_to_1439 --> viewport_ge_1440: viewport_width_ge_1440
state viewport_960_to_1439 {
[*] --> doc_with_sidebar
doc_with_sidebar: VPDoc_has_sidebar_true
doc_with_sidebar: content_max_width_mume_doc_max_width
doc_with_sidebar: container_max_width_mume_doc_container_max_width
doc_with_sidebar --> doc_without_sidebar: toggle_sidebar_off
state doc_without_sidebar {
[*] --> doc_without_sidebar_inner
doc_without_sidebar_inner: VPDoc_has_sidebar_false
doc_without_sidebar_inner: content_max_width_mume_doc_max_width
doc_without_sidebar_inner: container_max_width_mume_doc_container_max_width
}
doc_without_sidebar --> doc_with_sidebar: toggle_sidebar_on
}
state viewport_ge_1440 {
[*] --> ultra_wide_home_or_other
ultra_wide_home_or_other: root_vp_layout_max_width_2400
ultra_wide_home_or_other --> ultra_wide_doc
state ultra_wide_doc {
[*] --> doc_layout_constrained
doc_layout_constrained: VPDoc_vp_layout_max_width_1440
doc_layout_constrained: content_max_width_mume_doc_max_width
doc_layout_constrained: container_max_width_mume_doc_container_max_width
}
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Description
Optimizing Vitepress Layout and Typography Improvements
Related Issue
Checklist
::: details Spoiler) as defined in the Contributing Guide.docker compose up --build wiki(ornpm run docs:build) and verified changes locally.docs/guides.md,docs/classes.md) if a major new page was added.Summary by Sourcery
Optimize VitePress documentation layout and typography for improved readability and skimmability across screen sizes.
Enhancements: