From ea310bd6c9079579a6572e5a1fc0d17ac5f24244 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Tue, 30 May 2023 19:40:15 +0200 Subject: Use wider content width on splash page --- packages/starlight/index.astro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/starlight/index.astro b/packages/starlight/index.astro index b906a80c..acbfdc1c 100644 --- a/packages/starlight/index.astro +++ b/packages/starlight/index.astro @@ -57,6 +57,9 @@ const hasToC = Boolean(tocConfig); html:not([data-has-toc]) { --sl-mobile-toc-height: 0rem; } + html:not([data-has-sidebar]) { + --sl-content-width: 67.5rem; + } /* Add scroll padding to ensure anchor headings aren't obscured by nav */ html { /* Additional padding is needed to account for the mobile TOC */ -- cgit