@varlet/cli 1.26.2 → 1.26.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.3",
|
|
4
4
|
"description": "cli of varlet",
|
|
5
5
|
"bin": {
|
|
6
6
|
"varlet-cli": "./lib/index.js"
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@babel/helper-plugin-utils": "^7.14.5",
|
|
34
34
|
"@babel/preset-env": "^7.14.8",
|
|
35
35
|
"@babel/preset-typescript": "^7.14.5",
|
|
36
|
-
"@varlet/icons": "1.26.
|
|
37
|
-
"@varlet/markdown-vite-plugin": "1.26.
|
|
38
|
-
"@varlet/touch-emulator": "1.26.
|
|
36
|
+
"@varlet/icons": "1.26.3",
|
|
37
|
+
"@varlet/markdown-vite-plugin": "1.26.3",
|
|
38
|
+
"@varlet/touch-emulator": "1.26.3",
|
|
39
39
|
"@vitejs/plugin-vue": "2.2.0",
|
|
40
40
|
"@vitejs/plugin-vue-jsx": "1.3.5",
|
|
41
41
|
"@vue/babel-plugin-jsx": "1.1.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@types/semver": "^7.3.9"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@varlet/touch-emulator": "1.26.
|
|
78
|
+
"@varlet/touch-emulator": "1.26.3",
|
|
79
79
|
"@vue/test-utils": "^2.0.0-rc.6",
|
|
80
80
|
"clipboard": "^2.0.6",
|
|
81
81
|
"live-server": "^1.2.1",
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
margin-top: 16px;
|
|
3
3
|
margin-bottom: 4px;
|
|
4
4
|
position: relative;
|
|
5
|
+
border: thin solid var(--site-config-color-hl-border);
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
transition: border .25s;
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
.var-site-code-example__toolbar {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
5
14
|
|
|
6
15
|
&__toolbar {
|
|
7
16
|
display: flex;
|
|
@@ -10,9 +19,11 @@
|
|
|
10
19
|
z-index: 1;
|
|
11
20
|
right: 10px;
|
|
12
21
|
top: 10px;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
transition: .25s all;
|
|
13
24
|
|
|
14
25
|
button {
|
|
15
|
-
color:
|
|
26
|
+
color: var(--site-config-color-hl-code) !important;
|
|
16
27
|
}
|
|
17
28
|
}
|
|
18
29
|
|
package/site/pc/App.vue
CHANGED
|
@@ -129,14 +129,50 @@ export default defineComponent({
|
|
|
129
129
|
|
|
130
130
|
<style>
|
|
131
131
|
.hljs {
|
|
132
|
-
background:
|
|
132
|
+
background: var(--site-config-color-hl-background) !important;
|
|
133
133
|
padding: 0 !important;
|
|
134
|
-
|
|
134
|
+
transition: all .25s
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.hljs code {
|
|
138
138
|
line-height: 31px;
|
|
139
139
|
}
|
|
140
|
+
|
|
141
|
+
.hljs-comment, .hljs-meta, .hljs-quote {
|
|
142
|
+
color: var(--site-config-color-hl-group-a)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.hljs-keyword, .hljs-name, .hljs-selector-tag, .hljs-tag {
|
|
146
|
+
color: var(--site-config-color-hl-group-b)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.hljs-attribute, .hljs-selector-id {
|
|
150
|
+
color: var(--site-config-color-hl-group-c)
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.hljs-addition, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-string {
|
|
154
|
+
color: var(--site-config-color-hl-group-d)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.hljs-subst {
|
|
158
|
+
color: var(--site-config-color-hl-group-e)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.hljs-link, .hljs-regexp {
|
|
162
|
+
color: var(--site-config-color-hl-group-f)
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.hljs-doctag, .hljs-section, .hljs-title, .hljs-type {
|
|
166
|
+
color: var(--site-config-color-hl-group-g)
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.hljs-bullet, .hljs-literal, .hljs-symbol, .hljs-template-variable, .hljs-variable {
|
|
170
|
+
color: var(--site-config-color-hl-group-h)
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.hljs-deletion, .hljs-number {
|
|
174
|
+
color: var(--site-config-color-hl-group-i)
|
|
175
|
+
}
|
|
140
176
|
</style>
|
|
141
177
|
|
|
142
178
|
<style lang="less">
|
|
@@ -306,7 +342,7 @@ iframe {
|
|
|
306
342
|
font-family: Consolas, Monaco, monospace;
|
|
307
343
|
white-space: pre-wrap;
|
|
308
344
|
word-wrap: break-word;
|
|
309
|
-
color:
|
|
345
|
+
color: var(--site-config-color-hl-code);
|
|
310
346
|
}
|
|
311
347
|
|
|
312
348
|
p code,
|
package/varlet.default.config.js
CHANGED
|
@@ -80,6 +80,18 @@ module.exports = {
|
|
|
80
80
|
'color-pc-language-active-background': '#edf5ff',
|
|
81
81
|
'color-mobile-language-active': '#3a7afe',
|
|
82
82
|
'color-mobile-language-active-background': '#edf5ff',
|
|
83
|
+
'color-hl-background': '#fafafa',
|
|
84
|
+
'color-hl-code': '#58727e',
|
|
85
|
+
'color-hl-border': '#f3f3f3',
|
|
86
|
+
'color-hl-group-a': '#7c7c7c',
|
|
87
|
+
'color-hl-group-b': '#2196f3',
|
|
88
|
+
'color-hl-group-c': '#ff9422',
|
|
89
|
+
'color-hl-group-d': '#58c193',
|
|
90
|
+
'color-hl-group-e': '#ff9422',
|
|
91
|
+
'color-hl-group-f': '#ff9422',
|
|
92
|
+
'color-hl-group-g': '#ff9422',
|
|
93
|
+
'color-hl-group-h': '#06a6e9',
|
|
94
|
+
'color-hl-group-i': '#f23733',
|
|
83
95
|
},
|
|
84
96
|
darkThemes: {
|
|
85
97
|
'color-body': '#121212',
|
|
@@ -90,9 +102,9 @@ module.exports = {
|
|
|
90
102
|
'color-border': '#333',
|
|
91
103
|
'color-shadow': '#121212',
|
|
92
104
|
'color-introduce-border': '#555',
|
|
93
|
-
'color-primary': '#
|
|
94
|
-
'color-link': '#
|
|
95
|
-
'color-type': '#
|
|
105
|
+
'color-primary': '#96cbfe',
|
|
106
|
+
'color-link': '#A8FFC4',
|
|
107
|
+
'color-type': '#A8FFC4',
|
|
96
108
|
'color-progress': '#5580f8',
|
|
97
109
|
'color-progress-track': '#202020',
|
|
98
110
|
'color-side-bar': '#4a7afe',
|
|
@@ -104,5 +116,17 @@ module.exports = {
|
|
|
104
116
|
'color-pc-language-active-background': '#4a7afe20',
|
|
105
117
|
'color-mobile-language-active': '#4a7afe',
|
|
106
118
|
'color-mobile-language-active-background': '#4a7afe20',
|
|
119
|
+
'color-hl-background': '#272727',
|
|
120
|
+
'color-hl-code': '#fff',
|
|
121
|
+
'color-hl-border': '#272727',
|
|
122
|
+
'color-hl-group-a': '#7c7c7c',
|
|
123
|
+
'color-hl-group-b': '#96cbfe',
|
|
124
|
+
'color-hl-group-c': '#ff7b1e',
|
|
125
|
+
'color-hl-group-d': '#A8FFC4',
|
|
126
|
+
'color-hl-group-e': '#ff7b1e',
|
|
127
|
+
'color-hl-group-f': '#ff7b1e',
|
|
128
|
+
'color-hl-group-g': '#ff7b1e',
|
|
129
|
+
'color-hl-group-h': '#14a6e9',
|
|
130
|
+
'color-hl-group-i': '#ed4648',
|
|
107
131
|
},
|
|
108
132
|
}
|