Skip to content

Commit 050a833

Browse files
committed
docs: hero layout/alignment from docs-kit (centered); logo spacing
1 parent 182f0fc commit 050a833

2 files changed

Lines changed: 5 additions & 29 deletions

File tree

site/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/styles/overrides.css

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,7 @@
1919
}
2020
*/
2121

22-
/* ===========================================================================
23-
* Home hero: center everything.
24-
* Starlight switches the hero to a two-column grid with start-aligned copy at
25-
* ≥50rem (logo right, text left). Force a single centered column so the logo
26-
* stacks on top of a centered tagline + actions at every width.
27-
*
28-
* NB: Starlight scopes its hero rules with :where() (zero specificity), so a
29-
* bare `.hero` would only TIE and lose on source order. The `body` prefix
30-
* raises specificity just enough to win deterministically.
31-
* =========================================================================== */
32-
body .hero {
33-
grid-template-columns: 100%;
34-
justify-items: center;
35-
}
36-
body .hero > .hero-html,
37-
body .hero > img {
38-
order: 0; /* keep the logo above the copy (Starlight sends it right) */
39-
margin-inline: auto;
40-
}
41-
body .hero .stack {
42-
text-align: center;
43-
}
44-
body .hero .copy {
45-
align-items: center;
46-
}
47-
body .hero .actions {
48-
justify-content: center;
49-
}
22+
/* Home hero layout (single-column stack, logo spacing) and centered alignment
23+
* now come from @onury/docs-kit. To left-align instead, set in :root above:
24+
* --oy-hero-align: start;
25+
*/

0 commit comments

Comments
 (0)