diff --git a/src/css/custom.css b/src/css/custom.css index 02ac18d6..9f302cb9 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -851,11 +851,18 @@ article h4 { display: none !important; } -/* Force center all documentation content */ +/* Fix docs centering - properly center content like Bun docs */ +main[class*="docMainContainer"] [class*="container"] { + max-width: 100% !important; + padding-left: 2rem !important; + padding-right: 2rem !important; +} + .col:not(.col--3) { - max-width: 1000px !important; + max-width: 800px !important; margin-left: auto !important; margin-right: auto !important; + float: none !important; } /* Force section overview to center - using stable attribute selector */ @@ -1060,7 +1067,7 @@ nav.pagination-nav .pagination-nav__link *:last-child { article, .markdown { - max-width: 100% !important; + max-width: 800px !important; padding-left: 2rem !important; padding-right: 2rem !important; }