Skip to content

Commit 01d6021

Browse files
committed
fix(website): remove gap between header and hero section on homepage
1 parent 333222f commit 01d6021

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

website/src/styles/starlight-overrides.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@ body:has(#main-content) header.header {
113113
border-bottom: none !important;
114114
}
115115

116+
/* Remove all Starlight padding/margins above the content on the home page
117+
This ensures the hero section's grid background touches the header seamlessly,
118+
eliminating the untextured gap (solid bar) underneath the header. */
119+
body:has(#main-content) .main-pane,
120+
body:has(#main-content) main,
121+
body:has(#main-content) .content-panel,
122+
body:has(#main-content) .sl-container,
123+
body:has(#main-content) .sl-markdown-content {
124+
padding-top: 0 !important;
125+
margin-top: 0 !important;
126+
}
127+
116128
/* ── Hide Starlight's built-in theme selector (dropdown) ─── */
117129
/* We use our own custom ThemeToggle component instead */
118130
starlight-theme-select {

0 commit comments

Comments
 (0)