Skip to content

Commit e22c41e

Browse files
Filmbostock
andauthored
upgrade vitepress to 1.0.0-rc.12 (#1844)
* upgrade vitepress to 1.0.0-rc.10 * brand color fixes * 1.0.0-rc.12 * upgrade dependencies * recompute brand colors * fix observable promo button --------- Co-authored-by: Mike Bostock <[email protected]>
1 parent 5208841 commit e22c41e

File tree

6 files changed

+288
-408
lines changed

6 files changed

+288
-408
lines changed

docs/.vitepress/theme/CustomFooter.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040

4141
<style>
4242
43-
footer a:hover {
44-
text-decoration: underline;
45-
}
46-
4743
.has-sidebar ~ footer {
4844
display: none;
4945
}

docs/.vitepress/theme/ObservablePromo.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ a.button {
6666
display: inline-block;
6767
border: 1px solid transparent;
6868
text-align: center;
69+
text-decoration: none;
6970
font-weight: 600;
7071
white-space: nowrap;
7172
background-color: var(--vp-c-neutral);
@@ -75,10 +76,12 @@ a.button {
7576
line-height: 38px;
7677
font-size: 14px;
7778
margin: 0 24px;
79+
opacity: 0.9;
7880
}
7981
8082
a.button:hover {
81-
text-decoration: none;;
83+
opacity: 1;
84+
color: var(--vp-c-neutral-inverse);
8285
}
8386
8487
@media (min-width: 640px) {

docs/.vitepress/theme/custom.css

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1+
:root {
2+
--vp-c-purple-1: #7135be;
3+
--vp-c-purple-2: #7f42cd;
4+
--vp-c-purple-3: #9555e2;
5+
--vp-c-purple-soft: rgba(155, 91, 233, 0.14);
6+
}
7+
8+
.dark {
9+
--vp-c-purple-1: #db96ff;
10+
--vp-c-purple-2: #9a5ae8;
11+
--vp-c-purple-3: #884ad6;
12+
--vp-c-purple-soft: rgba(155, 91, 233, 0.16);
13+
}
14+
115
:root {
216
--vp-c-blue: #0092ff;
317
--vp-c-purple: #a463f2;
4-
--vp-c-brand-lighter: #d893ff;
5-
--vp-c-brand-light: #be7bff;
6-
--vp-c-brand: var(--vp-c-purple);
7-
--vp-c-brand-dark: #8a4cd8;
8-
--vp-c-brand-darker: #7135be;
18+
--vp-c-brand-1: var(--vp-c-purple-1);
19+
--vp-c-brand-2: var(--vp-c-purple-2);
20+
--vp-c-brand-3: var(--vp-c-purple-3);
21+
--vp-c-brand-soft: var(--vp-c-purple-soft);
922
--vp-font-family-base: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
1023
}
1124

@@ -48,6 +61,10 @@
4861
letter-spacing: -0.01em;
4962
}
5063

64+
.vp-doc .plot a {
65+
text-decoration: none;
66+
}
67+
5168
.vp-doc .plot a:hover {
5269
text-decoration: initial;
5370
}
@@ -100,6 +117,7 @@ a.plot-fork {
100117
margin-left: 8px;
101118
margin-top: 18px;
102119
color: var(--vp-c-text-2);
120+
text-decoration: none;
103121
}
104122

105123
a.plot-fork::after {

docs/index.md

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
"topojson-client": "^3.1.0",
7575
"ts-morph": "^19.0.0",
7676
"typescript": "^5.0.2",
77-
"vite": "4.4.7",
78-
"vitepress": "1.0.0-beta.7"
77+
"vite": "^4.4.9",
78+
"vitepress": "^1.0.0-rc.12"
7979
},
8080
"c8": {
8181
"all": true,

0 commit comments

Comments
 (0)