Skip to content

Commit

Permalink
Remove unused data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker committed Jul 5, 2024
1 parent cd30c8c commit 6b0682a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/starlight/components/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ const pagefindEnabled =
html:not([data-has-sidebar]) {
--sl-content-width: 67.5rem;
}
@media (prefers-reduced-motion: no-preference) {
html:not([data-no-smooth-scroll]) {
scroll-behavior: smooth;
}
}
/* Add scroll padding to ensure anchor headings aren't obscured by nav */
html {
/* Additional padding is needed to account for the mobile TOC */
scroll-padding-top: calc(1.5rem + var(--sl-nav-height) + var(--sl-mobile-toc-height));
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
main {
padding-bottom: 3vh;
}
Expand Down

0 comments on commit 6b0682a

Please sign in to comment.