Skip to content

Commit 6e859f2

Browse files
authored
Docs UI improvements (#248)
- [x] fixed a hover gap on hash links - [x] added active state to hashes <img width="193" height="138" alt="Screenshot 2026-03-10 at 11 43 33 AM" src="https://github.com/user-attachments/assets/9486b395-0848-45ef-a0f9-ee37a0c858f5" /> - [x] fixed misaligned table on landing - [x] allow overflow-x for it to be viewable on mobile <img width="333" alt="Screenshot 2026-03-10 at 11 44 13 AM" src="https://github.com/user-attachments/assets/bb805496-5a56-4ded-8c29-85125409edbc" /> - [x] sticky ToC for all docs pages on desktop <img width="333" alt="Screenshot 2026-03-10 at 11 45 21 AM" src="https://github.com/user-attachments/assets/9ff5bac5-5e1f-4dd8-a47c-8a978f25c493" /> - [x] and mobile <img width="333" alt="Screenshot 2026-03-10 at 11 45 52 AM" src="https://github.com/user-attachments/assets/71810977-56ec-452a-b154-bf03b46bfe17" /> - [x] added direction-aware view-transitions (desktop only, with reduced motion preference) https://github.com/user-attachments/assets/b6411336-6896-4a4c-b103-eac387febf26 - updated hero layout on mobile - [x] added shimmer effect to some hero section elements - [x] cool laser https://github.com/user-attachments/assets/c34f8b31-1f28-430e-a198-25f7aba39f09
1 parent e251fb6 commit 6e859f2

10 files changed

Lines changed: 2911 additions & 539 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<div class="docs-page-shell">
2+
<div class="docs-page-intro">
3+
<slot name="intro" />
4+
</div>
5+
<slot name="toc" />
6+
<div class="docs-page-content">
7+
<slot />
8+
</div>
9+
</div>
10+
11+
<style is:global>
12+
.docs-page-shell {
13+
position: relative;
14+
}
15+
16+
.docs-page-content {
17+
min-width: 0;
18+
}
19+
20+
@media (max-width: 1379px) {
21+
.docs-page-content :is(h2, h3, h4) {
22+
scroll-margin-top: 8rem;
23+
}
24+
}
25+
</style>

0 commit comments

Comments
 (0)