Skip to content

Commit 9e3b62c

Browse files
brabojclaude
andcommitted
fix: make mobile ToC sticky so it stays visible while scrolling
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cfff787 commit 9e3b62c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

astro-site/src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ a:hover {
595595
border: 1px solid var(--color-border);
596596
border-radius: 4px;
597597
padding: 0;
598+
position: sticky;
599+
top: 0;
600+
z-index: 10;
601+
background: var(--color-bg);
598602
}
599603

600604
.mobile-toc summary {

0 commit comments

Comments
 (0)