Skip to content

Commit b4107fd

Browse files
JusterZhuclaude
andauthored
fix: widen doc content area and narrow TOC to prevent sidebar overlap (#109)
- Increase content column from 75% to 80% of container width - Reduce TOC column from 25% to 20% to push it further right - Add overflow-x: auto to content area to prevent wide tables/code from bleeding into the TOC column - Add left border + padding on TOC for visual separation Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 244520c commit b4107fd

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

website/src/css/custom.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,31 @@
602602
TOC (right sidebar)
603603
════════════════════════════════════════════════════════════════ */
604604

605+
/* ── Push TOC further right, give main content more room ── */
606+
@media (min-width: 997px) {
607+
/* Widen content column from 75% → 80% */
608+
[class*="docMainContainer"] [class*="docItemCol"] {
609+
max-width: 80% !important;
610+
}
611+
612+
/* Narrow TOC column from 25% → 20% */
613+
[class*="docMainContainer"] .col--3 {
614+
--ifm-col-width: calc(20%);
615+
}
616+
617+
/* Prevent wide content (tables, code) from bleeding into TOC */
618+
[class*="docItemCol"] .markdown {
619+
overflow-x: auto;
620+
}
621+
622+
/* Visual separation between content and TOC */
623+
.table-of-contents {
624+
padding-left: 1rem;
625+
margin-left: 0.25rem;
626+
border-left: 1px solid var(--ifm-color-emphasis-200);
627+
}
628+
}
629+
605630
.table-of-contents__link {
606631
font-size: 0.85rem;
607632
transition: color 0.15s;

0 commit comments

Comments
 (0)