Skip to content

Commit 772755a

Browse files
committed
style: add emojis to sidebar section headers in CSS
1 parent 7a9b83c commit 772755a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/.vitepress/theme/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,14 @@
110110
.VPDoc .custom-block.caution .custom-block-title::before {
111111
content: "⚠️";
112112
}
113+
114+
/* Sidebar section header emojis */
115+
.VPSidebarItem:has(a[href*="/api/"]) > .item > .text::before {
116+
content: "🧬 ";
117+
}
118+
.VPSidebarItem:has(a[href*="/reference/"]) > .item > .text::before {
119+
content: "📖 ";
120+
}
121+
.VPSidebarItem:has(a[href*="/tutorials/"]) > .item > .text::before {
122+
content: "🎓 ";
123+
}

0 commit comments

Comments
 (0)