@sugarat/theme 0.2.19 → 0.2.21

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.
package/node.js CHANGED
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(node_exports);
39
39
  // src/utils/node/mdPlugins.ts
40
40
  var import_module = require("module");
41
41
 
42
- // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.40_vue@3.3.4/node_modules/vitepress-plugin-tabs/dist/index.js
42
+ // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.43_vue@3.3.4/node_modules/vitepress-plugin-tabs/dist/index.js
43
43
  var tabsMarker = "=tabs";
44
44
  var tabsMarkerLen = tabsMarker.length;
45
45
  var ruleBlockTabs = (state, startLine, endLine, silent) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/theme",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "author": "sugar",
6
6
  "license": "MIT",
@@ -45,20 +45,18 @@
45
45
  "swiper": "^11.0.5",
46
46
  "vitepress-markdown-timeline": "^1.2.1",
47
47
  "vitepress-plugin-mermaid": "2.0.13",
48
- "vitepress-plugin-pagefind": "0.2.10",
48
+ "vitepress-plugin-pagefind": "0.2.11",
49
49
  "vitepress-plugin-rss": "0.2.1",
50
50
  "vitepress-plugin-tabs": "0.2.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@documate/documate": "^0.2.1",
54
- "@documate/vue": "^0.3.1",
55
53
  "@element-plus/icons-vue": "^2.1.0",
56
54
  "element-plus": "^2.3.4",
57
55
  "javascript-stringify": "^2.1.0",
58
56
  "pagefind": "1.0.3",
59
57
  "sass": "^1.56.1",
60
58
  "typescript": "^4.8.2",
61
- "vitepress": "1.0.0-rc.40",
59
+ "vitepress": "1.0.0-rc.43",
62
60
  "vue": "^3.3.4"
63
61
  },
64
62
  "scripts": {
@@ -68,7 +66,6 @@
68
66
  "build": "npm run build:node && npm run build:docs",
69
67
  "build:docs": "vitepress build docs",
70
68
  "build:node": "npx tsup",
71
- "serve": "vitepress serve docs",
72
- "documate:upload": "documate upload"
69
+ "serve": "vitepress serve docs"
73
70
  }
74
71
  }
@@ -353,6 +353,9 @@ function handleSelect(target: any) {
353
353
  justify-content: center;
354
354
  padding: 6px;
355
355
  box-sizing: border-box;
356
+ border: 1px solid transparent;
357
+ border-radius: 6px;
358
+ transition: .2s border;
356
359
 
357
360
  .metaKey {
358
361
  margin-left: 10px;
@@ -21,6 +21,7 @@ html.dark {
21
21
  --badge-font-color: #bdc3cc;
22
22
  --description-font-color: #9facba;
23
23
  }
24
+
24
25
  .VPHome {
25
26
  &::before {
26
27
  content: "";
@@ -32,15 +33,33 @@ html.dark {
32
33
  background-repeat: repeat;
33
34
  min-height: 100%;
34
35
  }
35
- min-height: calc(100vh - var(--vp-nav-height));
36
+
37
+ min-height: 100vh;
36
38
  background: radial-gradient(ellipse, rgba(var(--bg-gradient-home), 1) 0%, rgba(var(--bg-gradient-home), 0) 700%);
37
39
  }
38
40
 
41
+ // 样式重写
42
+ .VPHome {
43
+ margin-bottom: 0 !important;
44
+ padding-bottom: 96px;
45
+ }
46
+
47
+ @media (min-width: 768px) {
48
+ .VPHome {
49
+ padding-bottom: 128px;
50
+ }
51
+ }
52
+
39
53
  @media screen and (min-width: 960px) {
40
54
  #VPContent.is-home.VPContent {
41
55
  padding-top: 0;
56
+
42
57
  .VPHome {
43
58
  min-height: 100vh;
59
+
60
+ .VPHero>.container {
61
+ padding-top: var(--vp-nav-height);
62
+ }
44
63
  }
45
64
  }
46
65
  }
@@ -55,18 +74,22 @@ html.dark {
55
74
  flex-wrap: wrap;
56
75
  justify-content: center;
57
76
  }
77
+
58
78
  // .el-pagination > * {
59
79
  // margin-bottom: 10px !important;
60
80
  // }
61
81
 
62
82
  @media screen and (min-width: 768px) and (max-width: 1200px) {
83
+
63
84
  .VPNavBarMenuGroup .button span.text,
64
85
  .VPNavBarMenuLink {
65
86
  font-size: 12px !important;
66
87
  }
88
+
67
89
  .VPNavBar {
68
90
  height: auto !important;
69
91
  }
92
+
70
93
  .VPNavBarMenu.menu {
71
94
  flex-wrap: wrap;
72
95
  }
@@ -122,6 +145,7 @@ html.dark {
122
145
  main .vp-doc a {
123
146
  text-decoration: none;
124
147
  }
148
+
125
149
  main .vp-doc a:hover {
126
150
  text-decoration: underline dotted;
127
151
  }
@@ -168,4 +192,4 @@ span.svg-icon {
168
192
  font-weight: bold;
169
193
  background-color: var(--vp-c-brand-1);
170
194
  }
171
- }
195
+ }