@vuepress/theme-default 2.0.0-beta.56 → 2.0.0-beta.58

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.
@@ -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: 1.4;
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: 1.4;
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: 1.4;
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: 1.4em;
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.56",
3
+ "version": "2.0.0-beta.58",
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.56",
44
- "@vuepress/core": "2.0.0-beta.56",
45
- "@vuepress/plugin-back-to-top": "2.0.0-beta.56",
46
- "@vuepress/plugin-active-header-links": "2.0.0-beta.56",
47
- "@vuepress/plugin-container": "2.0.0-beta.56",
48
- "@vuepress/plugin-external-link-icon": "2.0.0-beta.56",
49
- "@vuepress/plugin-git": "2.0.0-beta.56",
50
- "@vuepress/plugin-medium-zoom": "2.0.0-beta.56",
51
- "@vuepress/plugin-nprogress": "2.0.0-beta.56",
52
- "@vuepress/plugin-palette": "2.0.0-beta.56",
53
- "@vuepress/plugin-prismjs": "2.0.0-beta.56",
54
- "@vuepress/shared": "2.0.0-beta.56",
55
- "@vuepress/plugin-theme-data": "2.0.0-beta.56",
56
- "@vuepress/utils": "2.0.0-beta.56"
43
+ "@vuepress/client": "2.0.0-beta.58",
44
+ "@vuepress/core": "2.0.0-beta.58",
45
+ "@vuepress/plugin-active-header-links": "2.0.0-beta.58",
46
+ "@vuepress/plugin-container": "2.0.0-beta.58",
47
+ "@vuepress/plugin-back-to-top": "2.0.0-beta.58",
48
+ "@vuepress/plugin-git": "2.0.0-beta.58",
49
+ "@vuepress/plugin-external-link-icon": "2.0.0-beta.58",
50
+ "@vuepress/plugin-nprogress": "2.0.0-beta.58",
51
+ "@vuepress/plugin-medium-zoom": "2.0.0-beta.58",
52
+ "@vuepress/plugin-prismjs": "2.0.0-beta.58",
53
+ "@vuepress/plugin-palette": "2.0.0-beta.58",
54
+ "@vuepress/plugin-theme-data": "2.0.0-beta.58",
55
+ "@vuepress/shared": "2.0.0-beta.58",
56
+ "@vuepress/utils": "2.0.0-beta.58"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "sass-loader": "^13.0.2"