-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Fix/remove homepage padding #1286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -108,6 +108,18 @@ body:has(#main-content) { | |||||
| --sl-color-bg-nav: transparent; | ||||||
| } | ||||||
|
|
||||||
| /* Remove header border and Starlight padding/borders above the custom content. | ||||||
| Hero section (and its background grid) touches the header seamlessly, | ||||||
| completely eliminating any 'bar' or gap between them. */ | ||||||
| body:has(#main-content) header.header { | ||||||
| border-bottom: none !important; | ||||||
| } | ||||||
|
|
||||||
| body:has(#main-content) .content-panel { | ||||||
|
||||||
| body:has(#main-content) .content-panel { | |
| .content-panel:has(#main-content) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These overrides are scoped to
body:has(#main-content), but#main-contentis used across multiple splash pages (e.g.,/agents,/skills, etc.), not just the homepage. If the intent is truly homepage-only (per PR title/description), consider narrowing the selector to a homepage-specific marker (e.g.,body:has(#main-content):has(section.hero)or a body/class set only onindex.astro) to avoid unintended layout changes on other splash pages.