Skip to content

fix(docs): align Foundation and Accelerators titles on the landing#12

Merged
danielmeppiel merged 1 commit intomainfrom
fix/landing-align-titles
May 8, 2026
Merged

fix(docs): align Foundation and Accelerators titles on the landing#12
danielmeppiel merged 1 commit intomainfrom
fix/landing-align-titles

Conversation

@danielmeppiel
Copy link
Copy Markdown
Contributor

Starlight wraps headings in <div class="sl-heading-wrapper"> and the top margin lives on the wrapper, not the inner <h2>. My previous > h2:first-child { margin-top: 0 } selector targeted the wrong element, so each section inherited the wrapper's default margin and the columns drifted.

Fix: reset margin-top on the first child of each section regardless of tag.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Starlight wraps each heading in <div class="sl-heading-wrapper">, and
the top margin lives on the wrapper, not the inner <h2>. The previous
`> h2:first-child { margin-top: 0 }` selector targeted the wrong
element, so each section inherited the wrapper's default top margin and
the columns drifted out of alignment.

Reset margin-top on the first child of each section regardless of tag.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danielmeppiel danielmeppiel merged commit f64518c into main May 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant