fix(web): compact prev/next links on docs pages

Starlight's pagination cards use a 2xl title, a shadow and 1rem padding,
which outweighs the page content above them. Shrink them to a small label
over a base-size title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ep2qFFvuFEnBvLpoLxxdEi
This commit is contained in:
hermes 2026-10-15 06:35:10 +00:00
commit a047112737

View file

@ -40,3 +40,22 @@
.sl-markdown-content code:not(:where(.not-content *)) { .sl-markdown-content code:not(:where(.not-content *)) {
font-size: 0.875em; font-size: 0.875em;
} }
/* Prev/next links: Starlight's are card-sized with a 2xl title; keep them compact. */
.pagination-links {
gap: 0.75rem;
}
.pagination-links > a {
padding: 0.625rem 0.875rem;
box-shadow: none;
font-size: var(--sl-text-xs);
color: var(--sl-color-gray-3);
line-height: 1.4;
}
.pagination-links .link-title {
font-size: var(--sl-text-base);
font-weight: 600;
}
.pagination-links svg {
--sl-icon-size: 1rem !important;
}