@vuepress/theme-default 2.0.0-beta.56 → 2.0.0-beta.57
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/styles/code.scss +8 -4
- package/package.json +15 -15
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
@import '_variables';
|
|
2
2
|
|
|
3
|
+
// Safari only support integer pixel value for line-height
|
|
4
|
+
// the original font-size is 16px, 1.375 will make line-height be 22px
|
|
5
|
+
$line-height: 1.375;
|
|
6
|
+
|
|
3
7
|
// ===============================
|
|
4
8
|
// Forked and modified from prismjs/themes/prism-tomorrow.css
|
|
5
9
|
|
|
@@ -124,7 +128,7 @@ pre[class*='language-'] {
|
|
|
124
128
|
.theme-default-content {
|
|
125
129
|
pre,
|
|
126
130
|
pre[class*='language-'] {
|
|
127
|
-
line-height:
|
|
131
|
+
line-height: $line-height;
|
|
128
132
|
padding: 1.3rem 1.5rem;
|
|
129
133
|
margin: 0.85rem 0;
|
|
130
134
|
border-radius: 6px;
|
|
@@ -176,7 +180,7 @@ div[class*='language-'] {
|
|
|
176
180
|
top: 0;
|
|
177
181
|
left: 0;
|
|
178
182
|
width: 100%;
|
|
179
|
-
line-height:
|
|
183
|
+
line-height: $line-height;
|
|
180
184
|
|
|
181
185
|
.highlight-line {
|
|
182
186
|
background-color: var(--code-hl-bg-color);
|
|
@@ -218,14 +222,14 @@ div[class*='language-'] {
|
|
|
218
222
|
text-align: center;
|
|
219
223
|
color: var(--code-ln-color);
|
|
220
224
|
padding-top: 1.25rem;
|
|
221
|
-
line-height:
|
|
225
|
+
line-height: $line-height;
|
|
222
226
|
counter-reset: line-number;
|
|
223
227
|
|
|
224
228
|
.line-number {
|
|
225
229
|
position: relative;
|
|
226
230
|
z-index: 3;
|
|
227
231
|
user-select: none;
|
|
228
|
-
height:
|
|
232
|
+
height: #{$line-height}em;
|
|
229
233
|
|
|
230
234
|
&::before {
|
|
231
235
|
counter-increment: line-number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.57",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"sass": "^1.56.2",
|
|
41
41
|
"vue": "^3.2.45",
|
|
42
42
|
"vue-router": "^4.1.6",
|
|
43
|
-
"@vuepress/client": "2.0.0-beta.
|
|
44
|
-
"@vuepress/core": "2.0.0-beta.
|
|
45
|
-
"@vuepress/plugin-
|
|
46
|
-
"@vuepress/plugin-active-header-links": "2.0.0-beta.
|
|
47
|
-
"@vuepress/plugin-container": "2.0.0-beta.
|
|
48
|
-
"@vuepress/plugin-
|
|
49
|
-
"@vuepress/plugin-git": "2.0.0-beta.
|
|
50
|
-
"@vuepress/plugin-
|
|
51
|
-
"@vuepress/plugin-
|
|
52
|
-
"@vuepress/plugin-palette": "2.0.0-beta.
|
|
53
|
-
"@vuepress/
|
|
54
|
-
"@vuepress/
|
|
55
|
-
"@vuepress/
|
|
56
|
-
"@vuepress/
|
|
43
|
+
"@vuepress/client": "2.0.0-beta.57",
|
|
44
|
+
"@vuepress/core": "2.0.0-beta.57",
|
|
45
|
+
"@vuepress/plugin-external-link-icon": "2.0.0-beta.57",
|
|
46
|
+
"@vuepress/plugin-active-header-links": "2.0.0-beta.57",
|
|
47
|
+
"@vuepress/plugin-container": "2.0.0-beta.57",
|
|
48
|
+
"@vuepress/plugin-back-to-top": "2.0.0-beta.57",
|
|
49
|
+
"@vuepress/plugin-git": "2.0.0-beta.57",
|
|
50
|
+
"@vuepress/plugin-nprogress": "2.0.0-beta.57",
|
|
51
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-beta.57",
|
|
52
|
+
"@vuepress/plugin-palette": "2.0.0-beta.57",
|
|
53
|
+
"@vuepress/shared": "2.0.0-beta.57",
|
|
54
|
+
"@vuepress/plugin-prismjs": "2.0.0-beta.57",
|
|
55
|
+
"@vuepress/utils": "2.0.0-beta.57",
|
|
56
|
+
"@vuepress/plugin-theme-data": "2.0.0-beta.57"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"sass-loader": "^13.0.2"
|