@vuepress/theme-default 2.0.0-rc.44 → 2.0.0-rc.46

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.
@@ -20,7 +20,7 @@ defineSlots<{
20
20
 
21
21
  const SearchBox = hasGlobalComponent('SearchBox')
22
22
  ? resolveComponent('SearchBox')
23
- : null
23
+ : (): null => null
24
24
 
25
25
  const themeLocale = useThemeLocaleData()
26
26
 
@@ -97,7 +97,7 @@ useEventListener('keydown', (event): void => {
97
97
  border-radius: 0.25rem;
98
98
 
99
99
  &:hover {
100
- background: var(--vp-c-control-hover);
100
+ background: var(--vp-c-control);
101
101
  }
102
102
 
103
103
  .hint {
@@ -49,39 +49,53 @@ defineSlots<{
49
49
  padding: 0 6px;
50
50
  border-radius: 3px;
51
51
 
52
- color: var(--vp-c-accent-text);
52
+ background: var(--vp-c-accent-soft);
53
+ color: var(--vp-c-accent);
53
54
 
54
- font-weight: 600;
55
55
  font-size: 14px;
56
56
  line-height: 18px;
57
57
 
58
58
  transition:
59
- color var(--vp-t-color),
60
- background-color var(--vp-t-color);
59
+ background var(--vp-t-color),
60
+ color var(--vp-t-color);
61
+
62
+ & + & {
63
+ margin-inline-start: 5px;
64
+ }
61
65
 
62
66
  &.tip {
63
- background-color: var(--badge-c-tip);
67
+ background: var(--badge-c-tip-bg);
64
68
  color: var(--badge-c-tip-text);
65
69
  }
66
70
 
67
71
  &.warning {
68
- background-color: var(--badge-c-warning);
72
+ background: var(--badge-c-warning-bg);
69
73
  color: var(--badge-c-warning-text);
70
74
  }
71
75
 
72
76
  &.danger {
73
- background-color: var(--badge-c-danger);
77
+ background: var(--badge-c-danger-bg);
74
78
  color: var(--badge-c-danger-text);
75
79
  }
76
80
 
81
+ &.important {
82
+ background: var(--badge-c-important-bg);
83
+ color: var(--badge-c-important-text);
84
+ }
85
+
86
+ &.info {
87
+ background: var(--badge-c-info-bg);
88
+ color: var(--badge-c-info-text);
89
+ }
90
+
91
+ &.note {
92
+ background: var(--badge-c-note-bg);
93
+ color: var(--badge-c-note-text);
94
+ }
95
+
77
96
  // update the vertical align for the badge in toc
78
97
  .table-of-contents & {
79
98
  vertical-align: middle;
80
99
  }
81
-
82
- // avoid extra space between badges
83
- & + & {
84
- margin-left: 5px;
85
- }
86
100
  }
87
101
  </style>
@@ -7,9 +7,9 @@
7
7
  h4,
8
8
  h5,
9
9
  h6 {
10
- margin-top: calc(0.5rem - var(--navbar-height));
10
+ margin-top: calc(0.5rem - var(--header-offset));
11
11
  margin-bottom: 0;
12
- padding-top: calc(1rem + var(--navbar-height));
12
+ padding-top: calc(1rem + var(--header-offset));
13
13
 
14
14
  &:first-child {
15
15
  margin-bottom: 1rem;
@@ -16,9 +16,9 @@
16
16
  --vp-c-text-subtle: rgb(235 235 245 / 38%);
17
17
 
18
18
  // border colors
19
- --vp-c-gutter: #373f4c;
20
- --vp-c-border: #3e4c5a;
21
- --vp-c-border-hard: #405064;
19
+ --vp-c-gutter: #000;
20
+ --vp-c-border: #3c3f44;
21
+ --vp-c-border-hard: #45484e;
22
22
 
23
23
  // shadow color
24
24
  --vp-c-shadow: rgb(0 0 0 / 30%);
@@ -18,9 +18,9 @@
18
18
  --vp-c-text-subtle: rgb(60 60 67 / 56%);
19
19
 
20
20
  // border colors
21
- --vp-c-gutter: #eaecef;
22
- --vp-c-border: #d7d9da;
23
- --vp-c-border-hard: #d1d4d7;
21
+ --vp-c-gutter: #e2e2e3;
22
+ --vp-c-border: #c2c2c4;
23
+ --vp-c-border-hard: #b8b8ba;
24
24
 
25
25
  // shadow colors
26
26
  --vp-c-shadow: rgb(0 0 0 / 15%);
@@ -40,12 +40,18 @@
40
40
  --vp-c-code-tab-active: var(--vp-c-accent);
41
41
 
42
42
  // badge colors
43
- --badge-c-tip: var(--vp-c-green-soft);
44
43
  --badge-c-tip-text: var(--vp-c-green-text);
45
- --badge-c-warning: var(--vp-c-yellow-soft);
44
+ --badge-c-tip-bg: var(--vp-c-green-soft);
46
45
  --badge-c-warning-text: var(--vp-c-yellow-text);
47
- --badge-c-danger: var(--vp-c-red-soft);
46
+ --badge-c-warning-bg: var(--vp-c-yellow-soft);
48
47
  --badge-c-danger-text: var(--vp-c-red-text);
48
+ --badge-c-danger-bg: var(--vp-c-red-soft);
49
+ --badge-c-important-text: var(--vp-c-purple-text);
50
+ --badge-c-important-bg: var(--vp-c-purple-soft);
51
+ --badge-c-info-text: var(--vp-c-indigo-text);
52
+ --badge-c-info-bg: var(--vp-c-indigo-soft);
53
+ --badge-c-note-text: var(--vp-c-grey-text);
54
+ --badge-c-note-bg: var(--vp-c-grey-soft);
49
55
 
50
56
  // font vars
51
57
  --font-family: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', roboto, oxygen,
@@ -60,11 +66,14 @@
60
66
  --content-width: 740px;
61
67
  --homepage-width: 960px;
62
68
 
69
+ // header offset
70
+ --header-offset: var(--navbar-height);
71
+
63
72
  // transition vars
64
73
  --vp-t-color: 0.3s ease;
65
74
  --vp-t-transform: 0.3s ease;
66
75
 
67
76
  // external-link-icon
68
- --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");
77
+ --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");
69
78
  --external-link-c-icon: var(--vp-c-text-mute);
70
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.44",
3
+ "version": "2.0.0-rc.46",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -37,27 +37,27 @@
37
37
  "templates"
38
38
  ],
39
39
  "dependencies": {
40
- "@vuepress/helper": "2.0.0-rc.44",
41
- "@vuepress/plugin-active-header-links": "2.0.0-rc.44",
42
- "@vuepress/plugin-back-to-top": "2.0.0-rc.44",
43
- "@vuepress/plugin-copy-code": "2.0.0-rc.44",
40
+ "@vuepress/helper": "2.0.0-rc.46",
41
+ "@vuepress/plugin-active-header-links": "2.0.0-rc.46",
42
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.46",
43
+ "@vuepress/plugin-copy-code": "2.0.0-rc.46",
44
44
  "@vuepress/plugin-git": "2.0.0-rc.44",
45
- "@vuepress/plugin-links-check": "2.0.0-rc.44",
45
+ "@vuepress/plugin-links-check": "2.0.0-rc.46",
46
46
  "@vuepress/plugin-markdown-container": "2.0.0-rc.43",
47
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.44",
48
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.44",
49
- "@vuepress/plugin-nprogress": "2.0.0-rc.44",
50
- "@vuepress/plugin-palette": "2.0.0-rc.44",
51
- "@vuepress/plugin-prismjs": "2.0.0-rc.44",
52
- "@vuepress/plugin-seo": "2.0.0-rc.44",
53
- "@vuepress/plugin-sitemap": "2.0.0-rc.44",
54
- "@vuepress/plugin-theme-data": "2.0.0-rc.44",
47
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.46",
48
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.46",
49
+ "@vuepress/plugin-nprogress": "2.0.0-rc.46",
50
+ "@vuepress/plugin-palette": "2.0.0-rc.46",
51
+ "@vuepress/plugin-prismjs": "2.0.0-rc.46",
52
+ "@vuepress/plugin-seo": "2.0.0-rc.46",
53
+ "@vuepress/plugin-sitemap": "2.0.0-rc.46",
54
+ "@vuepress/plugin-theme-data": "2.0.0-rc.46",
55
55
  "@vueuse/core": "^11.1.0",
56
- "vue": "^3.5.6"
56
+ "vue": "^3.5.7"
57
57
  },
58
58
  "peerDependencies": {
59
- "sass": "^1.79.0",
60
- "sass-embedded": "^1.79.0",
59
+ "sass": "^1.79.2",
60
+ "sass-embedded": "^1.79.2",
61
61
  "sass-loader": "^16.0.1",
62
62
  "vuepress": "2.0.0-rc.15"
63
63
  },
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "e450489799bbfbdd015ec52255576144185eb64f"
78
+ "gitHead": "e585a3bdde3be56078b2637154d03527fc94aacc"
79
79
  }
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  [data-theme='dark'] {
13
- --vp-c-bg: #22272e;
13
+ --vp-c-bg: #1b1b1f;
14
14
  }
15
15
 
16
16
  html,