@vuepress/theme-default 2.0.0-rc.121 → 2.0.0-rc.122

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,11 +1,18 @@
1
+ /* stylelint-disable-next-line scss/load-partial-extension */
2
+ @use '@vuepress/helper/scss/svg.scss';
3
+
4
+ $arrow-icon: '<svg viewBox="0 0 24 24"><path fill="rgba(0,0,0,0.5)" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>';
5
+ $dark-arrow-icon: '<svg viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.5)" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>';
6
+
1
7
  .arrow {
8
+ @include svg.background-svg($arrow-icon);
9
+
2
10
  display: inline-block;
3
11
  vertical-align: middle;
4
12
 
5
13
  width: 1em;
6
14
  height: 1em;
7
15
 
8
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");
9
16
  background-position: center;
10
17
  background-repeat: no-repeat;
11
18
 
@@ -14,7 +21,7 @@
14
21
  transition: all 0.3s;
15
22
 
16
23
  [data-theme='dark'] & {
17
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");
24
+ @include svg.background-svg($dark-arrow-icon);
18
25
  }
19
26
 
20
27
  &.down {
@@ -1,5 +1,11 @@
1
- // === colors ===
1
+ /* stylelint-disable-next-line scss/load-partial-extension */
2
+ @use '@vuepress/helper/scss/svg.scss';
3
+
4
+ $external-link-icon: '<svg viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"/></svg>';
5
+
2
6
  :root {
7
+ // colors
8
+
3
9
  // accent colors
4
10
  --vp-c-accent: #299764;
5
11
  --vp-c-accent-bg: #3eaf7c;
@@ -75,6 +81,7 @@
75
81
  --vp-t-transform: 0.3s ease;
76
82
 
77
83
  // external-link-icon
78
- --external-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z'/%3E%3C/svg%3E");
84
+ /* stylelint-disable-next-line scss/dollar-variable-no-missing-interpolation */
85
+ --external-link-icon: #{svg.encode-svg($external-link-icon)};
79
86
  --external-link-c-icon: var(--vp-c-text-mute);
80
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.121",
3
+ "version": "2.0.0-rc.122",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -42,27 +42,27 @@
42
42
  "templates"
43
43
  ],
44
44
  "dependencies": {
45
- "@vuepress/helper": "2.0.0-rc.121",
46
- "@vuepress/plugin-active-header-links": "2.0.0-rc.118",
47
- "@vuepress/plugin-back-to-top": "2.0.0-rc.121",
48
- "@vuepress/plugin-copy-code": "2.0.0-rc.121",
49
- "@vuepress/plugin-git": "2.0.0-rc.121",
50
- "@vuepress/plugin-links-check": "2.0.0-rc.121",
51
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.121",
52
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.121",
53
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.121",
54
- "@vuepress/plugin-nprogress": "2.0.0-rc.121",
55
- "@vuepress/plugin-palette": "2.0.0-rc.121",
56
- "@vuepress/plugin-prismjs": "2.0.0-rc.121",
57
- "@vuepress/plugin-seo": "2.0.0-rc.121",
58
- "@vuepress/plugin-sitemap": "2.0.0-rc.121",
59
- "@vuepress/plugin-theme-data": "2.0.0-rc.120",
60
- "@vueuse/core": "^14.1.0",
61
- "vue": "^3.5.25"
45
+ "@vuepress/helper": "2.0.0-rc.122",
46
+ "@vuepress/plugin-active-header-links": "2.0.0-rc.122",
47
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.122",
48
+ "@vuepress/plugin-copy-code": "2.0.0-rc.122",
49
+ "@vuepress/plugin-git": "2.0.0-rc.122",
50
+ "@vuepress/plugin-links-check": "2.0.0-rc.122",
51
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.122",
52
+ "@vuepress/plugin-markdown-tab": "2.0.0-rc.122",
53
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.122",
54
+ "@vuepress/plugin-nprogress": "2.0.0-rc.122",
55
+ "@vuepress/plugin-palette": "2.0.0-rc.122",
56
+ "@vuepress/plugin-prismjs": "2.0.0-rc.122",
57
+ "@vuepress/plugin-seo": "2.0.0-rc.122",
58
+ "@vuepress/plugin-sitemap": "2.0.0-rc.122",
59
+ "@vuepress/plugin-theme-data": "2.0.0-rc.122",
60
+ "@vueuse/core": "^14.2.0",
61
+ "vue": "^3.5.27"
62
62
  },
63
63
  "peerDependencies": {
64
- "sass": "^1.96.0",
65
- "sass-embedded": "^1.96.0",
64
+ "sass": "^1.97.3",
65
+ "sass-embedded": "^1.97.3",
66
66
  "sass-loader": "^16.0.6",
67
67
  "vuepress": "2.0.0-rc.26"
68
68
  },
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "8711ffd5101434c786d865c501141ab04a252846"
83
+ "gitHead": "5dfd2d24f8335f718182701995420907b0a00905"
84
84
  }