summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Swithinbank2023-05-30 19:40:15 +0200
committerChris Swithinbank2023-05-30 19:40:15 +0200
commitea310bd6c9079579a6572e5a1fc0d17ac5f24244 (patch)
tree9b8e4d85296536123448b4ed6267d81b1c15cba1
parentd162b2fc0795248fa89d45f2e5d4207126a59256 (diff)
downloadIT.starlight-ea310bd6c9079579a6572e5a1fc0d17ac5f24244.tar.gz
IT.starlight-ea310bd6c9079579a6572e5a1fc0d17ac5f24244.tar.bz2
IT.starlight-ea310bd6c9079579a6572e5a1fc0d17ac5f24244.zip
Use wider content width on splash page
-rw-r--r--packages/starlight/index.astro3
1 files changed, 3 insertions, 0 deletions
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 */