@vuepress/theme-default 2.0.0-rc.43 → 2.0.0-rc.44
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/lib/client/components/VPPageNav.vue +1 -1
- package/lib/client/components/global/Badge.vue +6 -6
- package/lib/client/styles/code-group.scss +1 -1
- package/lib/client/styles/normalize.scss +0 -63
- package/lib/client/styles/vars-dark.scss +2 -2
- package/lib/client/styles/vars.scss +8 -8
- package/lib/node/defaultTheme.js +0 -3
- package/package.json +20 -20
|
@@ -60,18 +60,18 @@ defineSlots<{
|
|
|
60
60
|
background-color var(--vp-t-color);
|
|
61
61
|
|
|
62
62
|
&.tip {
|
|
63
|
-
background-color: var(--c-
|
|
64
|
-
color: var(--c-
|
|
63
|
+
background-color: var(--badge-c-tip);
|
|
64
|
+
color: var(--badge-c-tip-text);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&.warning {
|
|
68
|
-
background-color: var(--c-
|
|
69
|
-
color: var(--c-
|
|
68
|
+
background-color: var(--badge-c-warning);
|
|
69
|
+
color: var(--badge-c-warning-text);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&.danger {
|
|
73
|
-
background-color: var(--c-
|
|
74
|
-
color: var(--c-
|
|
73
|
+
background-color: var(--badge-c-danger);
|
|
74
|
+
color: var(--badge-c-danger-text);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
// update the vertical align for the badge in toc
|
|
@@ -1,70 +1,7 @@
|
|
|
1
|
-
html,
|
|
2
1
|
body {
|
|
3
|
-
background-color: var(--vp-c-bg);
|
|
4
|
-
accent-color: var(--vp-c-accent);
|
|
5
|
-
transition: background-color var(--vp-t-color);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
[data-theme='dark'] {
|
|
9
|
-
color-scheme: dark;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
body {
|
|
13
|
-
color: var(--vp-c-text);
|
|
14
|
-
font-size: 1rem;
|
|
15
2
|
font-family: var(--font-family);
|
|
16
3
|
}
|
|
17
4
|
|
|
18
|
-
h2 {
|
|
19
|
-
border-color: var(--vp-c-gutter);
|
|
20
|
-
transition: border-color var(--vp-t-color);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
a {
|
|
24
|
-
color: var(--vp-c-accent);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
5
|
code {
|
|
28
6
|
font-family: var(--code-font-family);
|
|
29
|
-
|
|
30
|
-
:not(pre) > & {
|
|
31
|
-
background-color: var(--vp-c-grey-soft);
|
|
32
|
-
color: var(--vp-c-text-mute);
|
|
33
|
-
transition: background-color var(--vp-t-color);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
p a & {
|
|
37
|
-
color: var(--vp-c-accent);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
kbd {
|
|
42
|
-
border-color: var(--vp-c-border-hard);
|
|
43
|
-
transition: border-color var(--vp-t-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
blockquote {
|
|
47
|
-
border-color: var(--vp-c-border-hard);
|
|
48
|
-
color: var(--vp-c-text-mute);
|
|
49
|
-
transition: border-color var(--vp-t-color);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
hr {
|
|
53
|
-
border-color: var(--vp-c-gutter);
|
|
54
|
-
transition: border-color var(--vp-t-color);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
table {
|
|
58
|
-
transition: border-color var(--vp-t-color);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
tbody tr:nth-child(odd) {
|
|
62
|
-
background-color: var(--vp-c-bg-alt);
|
|
63
|
-
transition: background-color var(--vp-t-color);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
th,
|
|
67
|
-
td {
|
|
68
|
-
border-color: var(--vp-c-border-hard);
|
|
69
|
-
transition: border-color var(--vp-t-color);
|
|
70
7
|
}
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
--vp-c-shadow: rgb(0 0 0 / 15%);
|
|
27
27
|
|
|
28
28
|
// control colors
|
|
29
|
-
--vp-c-control:
|
|
30
|
-
--vp-c-control-hover:
|
|
29
|
+
--vp-c-control: rgb(142 150 170 / 10%);
|
|
30
|
+
--vp-c-control-hover: rgb(142 150 170 / 16%);
|
|
31
31
|
--vp-c-control-disabled: #eaeaea;
|
|
32
32
|
|
|
33
33
|
// layout colors
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
--vp-c-code-tab-active: var(--vp-c-accent);
|
|
41
41
|
|
|
42
42
|
// badge colors
|
|
43
|
-
--c-
|
|
44
|
-
--c-
|
|
45
|
-
--c-
|
|
46
|
-
--c-
|
|
47
|
-
--c-
|
|
48
|
-
--c-
|
|
43
|
+
--badge-c-tip: var(--vp-c-green-soft);
|
|
44
|
+
--badge-c-tip-text: var(--vp-c-green-text);
|
|
45
|
+
--badge-c-warning: var(--vp-c-yellow-soft);
|
|
46
|
+
--badge-c-warning-text: var(--vp-c-yellow-text);
|
|
47
|
+
--badge-c-danger: var(--vp-c-red-soft);
|
|
48
|
+
--badge-c-danger-text: var(--vp-c-red-text);
|
|
49
49
|
|
|
50
50
|
// font vars
|
|
51
51
|
--font-family: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', roboto, oxygen,
|
package/lib/node/defaultTheme.js
CHANGED
|
@@ -47,11 +47,9 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
|
|
|
47
47
|
css: {
|
|
48
48
|
preprocessorOptions: {
|
|
49
49
|
sass: {
|
|
50
|
-
api: 'modern-compiler',
|
|
51
50
|
silenceDeprecations: ['mixed-decls'],
|
|
52
51
|
},
|
|
53
52
|
scss: {
|
|
54
|
-
api: 'modern-compiler',
|
|
55
53
|
silenceDeprecations: ['mixed-decls'],
|
|
56
54
|
},
|
|
57
55
|
},
|
|
@@ -65,7 +63,6 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
|
|
|
65
63
|
...options,
|
|
66
64
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
67
65
|
sassOptions: {
|
|
68
|
-
api: 'modern-compiler',
|
|
69
66
|
silenceDeprecations: ['mixed-decls'],
|
|
70
67
|
...options.sassOptions,
|
|
71
68
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.44",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -37,27 +37,27 @@
|
|
|
37
37
|
"templates"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
41
|
-
"@vuepress/plugin-active-header-links": "2.0.0-rc.
|
|
42
|
-
"@vuepress/plugin-back-to-top": "2.0.0-rc.
|
|
43
|
-
"@vuepress/plugin-copy-code": "2.0.0-rc.
|
|
44
|
-
"@vuepress/plugin-git": "2.0.0-rc.
|
|
45
|
-
"@vuepress/plugin-links-check": "2.0.0-rc.
|
|
40
|
+
"@vuepress/helper": "2.0.0-rc.44",
|
|
41
|
+
"@vuepress/plugin-active-header-links": "2.0.0-rc.44",
|
|
42
|
+
"@vuepress/plugin-back-to-top": "2.0.0-rc.44",
|
|
43
|
+
"@vuepress/plugin-copy-code": "2.0.0-rc.44",
|
|
44
|
+
"@vuepress/plugin-git": "2.0.0-rc.44",
|
|
45
|
+
"@vuepress/plugin-links-check": "2.0.0-rc.44",
|
|
46
46
|
"@vuepress/plugin-markdown-container": "2.0.0-rc.43",
|
|
47
|
-
"@vuepress/plugin-markdown-hint": "2.0.0-rc.
|
|
48
|
-
"@vuepress/plugin-medium-zoom": "2.0.0-rc.
|
|
49
|
-
"@vuepress/plugin-nprogress": "2.0.0-rc.
|
|
50
|
-
"@vuepress/plugin-palette": "2.0.0-rc.
|
|
51
|
-
"@vuepress/plugin-prismjs": "2.0.0-rc.
|
|
52
|
-
"@vuepress/plugin-seo": "2.0.0-rc.
|
|
53
|
-
"@vuepress/plugin-sitemap": "2.0.0-rc.
|
|
54
|
-
"@vuepress/plugin-theme-data": "2.0.0-rc.
|
|
55
|
-
"@vueuse/core": "^11.0
|
|
56
|
-
"vue": "^3.5.
|
|
47
|
+
"@vuepress/plugin-markdown-hint": "2.0.0-rc.44",
|
|
48
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-rc.44",
|
|
49
|
+
"@vuepress/plugin-nprogress": "2.0.0-rc.44",
|
|
50
|
+
"@vuepress/plugin-palette": "2.0.0-rc.44",
|
|
51
|
+
"@vuepress/plugin-prismjs": "2.0.0-rc.44",
|
|
52
|
+
"@vuepress/plugin-seo": "2.0.0-rc.44",
|
|
53
|
+
"@vuepress/plugin-sitemap": "2.0.0-rc.44",
|
|
54
|
+
"@vuepress/plugin-theme-data": "2.0.0-rc.44",
|
|
55
|
+
"@vueuse/core": "^11.1.0",
|
|
56
|
+
"vue": "^3.5.6"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"sass": "^1.
|
|
60
|
-
"sass-embedded": "^1.
|
|
59
|
+
"sass": "^1.79.0",
|
|
60
|
+
"sass-embedded": "^1.79.0",
|
|
61
61
|
"sass-loader": "^16.0.1",
|
|
62
62
|
"vuepress": "2.0.0-rc.15"
|
|
63
63
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "e450489799bbfbdd015ec52255576144185eb64f"
|
|
79
79
|
}
|