Document fluid article width solution for TOC overlap
This commit is contained in:
parent
69bd3337b6
commit
5f3d4e988a
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ The main navigation header now uses ``position: fixed`` so it stays visible when
|
|||
|
||||
On tablets and mobile devices (screens ≤1023px), the table of contents reverts to its inline position within the article content, ensuring usability across all screen sizes. The media queries are structured to unfix positioned elements first, then reposition them, creating smooth visual transitions at breakpoints.
|
||||
|
||||
Article content uses fluid width (``max-width: 660px; width: 100%``) instead of fixed width, allowing it to shrink responsively when the TOC sidebar is present. This prevents overlap at screen widths between 1024px and approximately 1300px, where the fixed header, article content, and TOC sidebar would otherwise compete for space.
|
||||
|
||||
**CSS Color Variables**
|
||||
|
||||
All hardcoded colors were converted to CSS custom properties:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue