Skip to content

Update from code changes: Document sidebar and content width CSS variables - #7680

Open
mintlify[bot] wants to merge 3 commits into
mainfrom
mintlify/a8e5dc92
Open

mintlify[bot] wants to merge 3 commits into
mainfrom
mintlify/a8e5dc92

Conversation

@mintlify

@mintlify mintlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Sites can now resize the desktop layout with two CSS variables. --sidebar-width sets the sidebar width, and the content area, header, and footer adjust to match. --content-width sets the maximum width of the text column on default-mode pages. When neither variable is set, every theme looks the same as before.

Changes

  • Added a "Change the sidebar width" section to the custom CSS page. It includes an example and a table of each theme's default width.
  • Noted that in Palm the variable only sets the expanded sidebar's width.
  • Added a "Change the content width" section. It includes an example and a table of each theme's default width. It also notes that the column stops at the space beside the sidebar and table of contents, and that wide, center, custom, and frame modes are unaffected.

Update history

  • Documented the --sidebar-width CSS variable.
  • Documented the --content-width CSS variable.

Note

Low Risk
Documentation-only updates to the custom CSS page; no runtime or product code changes.

Overview
Extends Custom scripts with two CSS customization guides on customize/custom-scripts.mdx.

Change the sidebar width documents --sidebar-width for desktop: layout (content, header, footer) follows the variable so sites need not hand-tune #sidebar. It includes a :root example, per-theme default widths, and a Palm note that only the expanded sidebar respects the variable.

Change the content width documents --content-width for the default page mode text column max width, with behavior when space is limited, theme default table, and an explicit exclusion for wide, center, custom, and frame page modes.

Reviewed by Cursor Bugbot for commit d2da91c. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
mintlify 🟢 Ready View Preview Oct 3, 2026, 4:47 PM

@mintlify mintlify Bot changed the title Update from code changes: Document sidebar width CSS variable Update from code changes: Document sidebar and content width CSS variables Oct 3, 2026
@mintlify

mintlify Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Update from code changes updated this PR.

Added content width section showing --content-width usage and theme defaults

Source PRs

This branch was successfully deployed

1 active deployment
staging — d2da91c3 Deployed Oct 3, 2026 by mintlify[bot]
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.

0 participants