Skip to content

Commit c41e654

Browse files
committed
docs: update theme
1 parent 31bba8f commit c41e654

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,48 @@
44
--vp-c-brand-2: #3d3b3b;
55
--vp-c-brand-3: #8b8585;
66
--vp-c-brand-soft: rgba(114, 109, 109, 0.14);
7+
--vp-c-bg-soft: #f2efef;
8+
9+
--vp-sidebar-bg-color: var(--vp-c-bg);
10+
--vp-button-brand-active-bg: var(--vp-c-brand-3);
11+
--vp-button-alt-bg: var(--vp-c-bg-soft);
12+
--vp-button-alt-hover-bg: var(--vp-c-bg-soft);
13+
--vp-button-alt-active-bg: var(--vp-c-bg-soft);
14+
}
15+
16+
.vp-doc div[class*='language-'] {
17+
outline: 1px solid var(--vp-c-brand-soft);
18+
outline-offset: 4px;
19+
margin: 4px;
20+
}
21+
22+
.VPFeature {
23+
outline: 1px solid var(--vp-c-brand-soft);
24+
outline-offset: 4px;
25+
margin: 4px;
26+
}
27+
28+
.VPButton {
29+
border: 1px solid var(--vp-c-brand-3);
30+
}
31+
32+
.VPNavBarTitle .title {
33+
border-bottom: 0;
34+
}
35+
36+
.VPFooter {
37+
border-top: 0 !important;
38+
}
39+
40+
.divider {
41+
display: none;
42+
}
43+
44+
.vp-doc .custom-block {
45+
outline: 1px solid var(--vp-c-brand-soft);
46+
outline-offset: 4px;
47+
margin: 24px 4px;
48+
padding: 8px;
749
}
850

951
.dark {
@@ -12,4 +54,11 @@
1254
--vp-c-brand-3: #8a8585;
1355
--vp-c-brand-soft: rgba(115, 110, 110, 0.14);
1456
--vp-c-bg: #121212;
57+
--vp-c-bg-soft: #2f2e2e;
58+
59+
--vp-sidebar-bg-color: var(--vp-c-bg);
60+
--vp-button-brand-active-bg: var(--vp-c-brand-3);
61+
--vp-button-alt-bg: var(--vp-c-bg-soft);
62+
--vp-button-alt-hover-bg: var(--vp-c-bg-soft);
63+
--vp-button-alt-active-bg: var(--vp-c-bg-soft);
1564
}

0 commit comments

Comments
 (0)