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

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.
@@ -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;
@@ -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,6 +66,9 @@
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;
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.45",
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",
40
+ "@vuepress/helper": "2.0.0-rc.45",
41
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",
42
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.45",
43
+ "@vuepress/plugin-copy-code": "2.0.0-rc.45",
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.45",
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",
47
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.45",
48
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.45",
49
+ "@vuepress/plugin-nprogress": "2.0.0-rc.45",
50
+ "@vuepress/plugin-palette": "2.0.0-rc.45",
51
+ "@vuepress/plugin-prismjs": "2.0.0-rc.45",
52
+ "@vuepress/plugin-seo": "2.0.0-rc.45",
53
+ "@vuepress/plugin-sitemap": "2.0.0-rc.45",
54
54
  "@vuepress/plugin-theme-data": "2.0.0-rc.44",
55
55
  "@vueuse/core": "^11.1.0",
56
56
  "vue": "^3.5.6"
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": "a59c8252483e4549f1d78e12d23e867651303e93"
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,