From 080391bff6aed33d94401c7d4898d127a5282f9a Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Tue, 17 Dec 2024 17:37:05 +0100 Subject: [PATCH] Avoid page breaks inside tabs and asides --- packages/starlight/style/print.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/starlight/style/print.css b/packages/starlight/style/print.css index fc8ff5628ea..a09fb09b369 100644 --- a/packages/starlight/style/print.css +++ b/packages/starlight/style/print.css @@ -108,6 +108,16 @@ background-color: transparent !important; } + /* user-components/Aside.astro */ + .starlight-aside { + break-inside: avoid; + } + + /* user-components/Tabs.astro */ + starlight-tabs { + break-inside: avoid; + } + /* layout/PageFrame.astro */ .page > header { position: relative !important;