@shikijs/vitepress-twoslash 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/style-core.css +5 -0
- package/style.css +10 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/vitepress-twoslash",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.5",
|
|
5
5
|
"description": "Enable Twoslash support in VitePress",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"mdast-util-to-hast": "^13.1.0",
|
|
55
55
|
"twoslash-vue": "^0.1.0",
|
|
56
56
|
"vue": "^3.4.15",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
57
|
+
"@shikijs/twoslash": "1.0.0-beta.5",
|
|
58
|
+
"shiki": "1.0.0-beta.5"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "unbuild",
|
package/style-core.css
CHANGED
package/style.css
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
--twoslash-popup-shadow: rgba(0, 0, 0.08) 0px 1px 4px;
|
|
15
15
|
--twoslash-docs-color: #888;
|
|
16
16
|
--twoslash-docs-font: sans-serif;
|
|
17
|
-
--
|
|
18
|
-
--
|
|
17
|
+
--twoslash-code-font: inherit;
|
|
18
|
+
--twoslash-code-font-size: 1em;
|
|
19
19
|
--twoslash-matched-color: inherit;
|
|
20
20
|
--twoslash-unmatched-color: #888;
|
|
21
21
|
--twoslash-cursor-color: #8888;
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.twoslash .twoslash-popup-code {
|
|
103
|
-
font-family: var(--
|
|
104
|
-
font-size: var(--
|
|
103
|
+
font-family: var(--twoslash-code-font);
|
|
104
|
+
font-size: var(--twoslash-code-font-size);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.twoslash .twoslash-popup-docs {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.twoslash .twoslash-popup-docs-tag-name {
|
|
126
|
-
font-family: var(--
|
|
126
|
+
font-family: var(--twoslash-code-font);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/* ===== Error Line ===== */
|
|
@@ -273,6 +273,11 @@
|
|
|
273
273
|
--twoslash-unmatched-color: var(--vp-c-text-2);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
+
.twoslash-error-line,
|
|
277
|
+
.twoslash-tag-line {
|
|
278
|
+
width: max-content;
|
|
279
|
+
}
|
|
280
|
+
|
|
276
281
|
.v-popper--theme-twoslash {
|
|
277
282
|
z-index: calc(var(--vp-z-index-local-nav) - 1);
|
|
278
283
|
}
|