Skip to content

Commit 7e26a89

Browse files
committed
docs: add vitepress sidebar icons
1 parent 761ab9c commit 7e26a89

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

.vitepress/theme/style.css

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,82 @@
11
/* 文档站主题扩展 */
22

3+
.VPSidebar .VPSidebarItem.level-0 > .item > .text,
4+
.VPSidebar .VPSidebarItem.level-1.is-link .text {
5+
display: flex;
6+
align-items: center;
7+
gap: 8px;
8+
}
9+
10+
.VPSidebar .VPSidebarItem.level-0 > .item > .text::before,
11+
.VPSidebar .VPSidebarItem.level-1.is-link .text::before {
12+
display: inline-flex;
13+
flex: 0 0 auto;
14+
align-items: center;
15+
justify-content: center;
16+
width: 18px;
17+
height: 18px;
18+
font-size: 15px;
19+
line-height: 1;
20+
}
21+
22+
.VPSidebar .VPSidebarItem.level-1.is-link .text::before {
23+
content: '📄';
24+
opacity: 0.72;
25+
font-size: 13px;
26+
}
27+
28+
.VPSidebar .group:nth-of-type(1) .VPSidebarItem.level-0 > .item > .text::before {
29+
content: '🚀';
30+
}
31+
32+
.VPSidebar .group:nth-of-type(2) .VPSidebarItem.level-0 > .item > .text::before {
33+
content: '📝';
34+
}
35+
36+
.VPSidebar .group:nth-of-type(3) .VPSidebarItem.level-0 > .item > .text::before {
37+
content: '📚';
38+
}
39+
40+
.VPSidebar .group:nth-of-type(4) .VPSidebarItem.level-0 > .item > .text::before {
41+
content: '☁️';
42+
}
43+
44+
.VPSidebar .group:nth-of-type(5) .VPSidebarItem.level-0 > .item > .text::before {
45+
content: '🧩';
46+
}
47+
48+
.VPSidebar .group:nth-of-type(6) .VPSidebarItem.level-0 > .item > .text::before {
49+
content: '⚙️';
50+
}
51+
52+
.VPSidebar .group:nth-of-type(7) .VPSidebarItem.level-0 > .item > .text::before {
53+
content: '🎨';
54+
}
55+
56+
.VPSidebar .group:nth-of-type(8) .VPSidebarItem.level-0 > .item > .text::before {
57+
content: '📊';
58+
}
59+
60+
.VPSidebar .group:nth-of-type(9) .VPSidebarItem.level-0 > .item > .text::before {
61+
content: '💬';
62+
}
63+
64+
.VPSidebar .group:nth-of-type(10) .VPSidebarItem.level-0 > .item > .text::before {
65+
content: '🔌';
66+
}
67+
68+
.VPSidebar .group:nth-of-type(11) .VPSidebarItem.level-0 > .item > .text::before {
69+
content: '🛠️';
70+
}
71+
72+
.VPSidebar .group:nth-of-type(12) .VPSidebarItem.level-0 > .item > .text::before {
73+
content: '📈';
74+
}
75+
76+
.VPSidebar .group:nth-of-type(13) .VPSidebarItem.level-0 > .item > .text::before {
77+
content: '🛟';
78+
}
79+
380
.VPSidebar a.nn-unread-leaf,
481
.VPSidebarNav a.nn-unread-leaf,
582
aside a.nn-unread-leaf,

0 commit comments

Comments
 (0)