@vuepress/theme-default 2.0.0-rc.65 → 2.0.0-rc.68

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.
@@ -9,7 +9,7 @@ import { Content } from 'vuepress/client'
9
9
  <main class="vp-home">
10
10
  <VPHomeHero />
11
11
  <VPHomeFeatures />
12
- <div class="theme-default-content" vp-content>
12
+ <div vp-content>
13
13
  <Content />
14
14
  </div>
15
15
  <VPHomeFooter />
@@ -30,7 +30,7 @@ import { Content } from 'vuepress/client'
30
30
  padding-left: 1.5rem;
31
31
  }
32
32
 
33
- .theme-default-content {
33
+ [vp-content] {
34
34
  margin: 0;
35
35
  padding: 0;
36
36
  }
@@ -19,7 +19,7 @@ setupHeaders()
19
19
  <main class="vp-page">
20
20
  <slot name="top" />
21
21
 
22
- <div class="theme-default-content" vp-content>
22
+ <div vp-content>
23
23
  <slot name="content-top" />
24
24
 
25
25
  <Content />
@@ -61,7 +61,7 @@ setupHeaders()
61
61
  padding-left: 0;
62
62
  }
63
63
 
64
- .theme-default-content {
64
+ [vp-content] {
65
65
  @include mixins.content-wrapper;
66
66
 
67
67
  & {
@@ -1,6 +1,6 @@
1
1
  import { useThemeLocaleData } from '@theme/useThemeData';
2
- import { usePreferredDark, useStorage } from '@vueuse/core';
3
- import { computed, inject, onMounted, onUnmounted, provide, watch } from 'vue';
2
+ import { usePreferredDark, useStorage, watchImmediate } from '@vueuse/core';
3
+ import { computed, inject, onMounted, onUnmounted, provide } from 'vue';
4
4
  export const darkModeSymbol = Symbol(__VUEPRESS_DEV__ ? 'darkMode' : '');
5
5
  const applyDarkmodeToHTML = (isDarkMode) => {
6
6
  const update = (value = isDarkMode.value) => {
@@ -10,7 +10,7 @@ const applyDarkmodeToHTML = (isDarkMode) => {
10
10
  el.dataset.theme = value ? 'dark' : 'light';
11
11
  };
12
12
  onMounted(() => {
13
- watch(isDarkMode, update, { immediate: true });
13
+ watchImmediate(isDarkMode, update);
14
14
  });
15
15
  onUnmounted(() => {
16
16
  update();
@@ -189,7 +189,7 @@ const onBeforeLeave = scrollPromise.pending
189
189
  }
190
190
 
191
191
  // adjust heading margin and padding;
192
- .theme-default-content {
192
+ [vp-content] {
193
193
  h1,
194
194
  h2,
195
195
  h3,
@@ -15,7 +15,7 @@ const homeText = themeLocale.value.backToHome ?? 'Back to home'
15
15
  <template>
16
16
  <div class="vp-theme-container" vp-container>
17
17
  <main class="page">
18
- <div class="theme-default-content" vp-content>
18
+ <div vp-content>
19
19
  <h1>404</h1>
20
20
 
21
21
  <blockquote>{{ getMsg() }}</blockquote>
@@ -1,6 +1,6 @@
1
1
  @use '../variables' as *;
2
2
 
3
- .theme-default-content {
3
+ [vp-content] {
4
4
  h1,
5
5
  h2,
6
6
  h3,
@@ -25,7 +25,7 @@
25
25
  @include external-link-icon;
26
26
  }
27
27
 
28
- .theme-default-content {
28
+ [vp-content] {
29
29
  a[href*="://"],
30
30
  a[target=_blank] {
31
31
  &:not(.no-external-link-icon) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.65",
3
+ "version": "2.0.0-rc.68",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -37,29 +37,29 @@
37
37
  "templates"
38
38
  ],
39
39
  "dependencies": {
40
- "@vuepress/helper": "2.0.0-rc.65",
41
- "@vuepress/plugin-active-header-links": "2.0.0-rc.63",
42
- "@vuepress/plugin-back-to-top": "2.0.0-rc.65",
43
- "@vuepress/plugin-copy-code": "2.0.0-rc.65",
44
- "@vuepress/plugin-git": "2.0.0-rc.62",
45
- "@vuepress/plugin-links-check": "2.0.0-rc.65",
46
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.65",
47
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.65",
48
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.65",
49
- "@vuepress/plugin-nprogress": "2.0.0-rc.65",
50
- "@vuepress/plugin-palette": "2.0.0-rc.65",
51
- "@vuepress/plugin-prismjs": "2.0.0-rc.65",
52
- "@vuepress/plugin-seo": "2.0.0-rc.65",
53
- "@vuepress/plugin-sitemap": "2.0.0-rc.65",
54
- "@vuepress/plugin-theme-data": "2.0.0-rc.64",
55
- "@vueuse/core": "^12.0.0",
40
+ "@vuepress/helper": "2.0.0-rc.68",
41
+ "@vuepress/plugin-active-header-links": "2.0.0-rc.68",
42
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.68",
43
+ "@vuepress/plugin-copy-code": "2.0.0-rc.68",
44
+ "@vuepress/plugin-git": "2.0.0-rc.68",
45
+ "@vuepress/plugin-links-check": "2.0.0-rc.68",
46
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.68",
47
+ "@vuepress/plugin-markdown-tab": "2.0.0-rc.68",
48
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.68",
49
+ "@vuepress/plugin-nprogress": "2.0.0-rc.68",
50
+ "@vuepress/plugin-palette": "2.0.0-rc.68",
51
+ "@vuepress/plugin-prismjs": "2.0.0-rc.68",
52
+ "@vuepress/plugin-seo": "2.0.0-rc.68",
53
+ "@vuepress/plugin-sitemap": "2.0.0-rc.68",
54
+ "@vuepress/plugin-theme-data": "2.0.0-rc.66",
55
+ "@vueuse/core": "^12.2.0",
56
56
  "vue": "^3.5.13"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "sass": "^1.80.3",
60
60
  "sass-embedded": "^1.80.3",
61
61
  "sass-loader": "^16.0.2",
62
- "vuepress": "2.0.0-rc.18"
62
+ "vuepress": "2.0.0-rc.19"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "sass": {
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "41bf5132d2cffceb5b10a71f615da8470293a255"
78
+ "gitHead": "c8388100e54251c026b8039fd25f62c807bd3d23"
79
79
  }