valaxy-theme-hairy 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
package/components/HairyBody.vue
CHANGED
@@ -11,7 +11,7 @@ const showWaline = computed(() => route.path.includes('/posts/') || fr.value.wal
|
|
11
11
|
<template>
|
12
12
|
<div class="HairyBody min-h-49vh relative">
|
13
13
|
<div class="mx-auto breakpoint flex z-1 relative">
|
14
|
-
<div class="relative flex-1 pt-2">
|
14
|
+
<div class="relative flex-1 pt-2 w-0">
|
15
15
|
<slot />
|
16
16
|
<HairyWaline v-if="showWaline" />
|
17
17
|
</div>
|
@@ -45,7 +45,7 @@ const footerIcon = computed(() => themeConfig.value.footer.icon)
|
|
45
45
|
<span class="mx-2">|</span>
|
46
46
|
<span v-if="config.comment.waline" class="flex items-center">
|
47
47
|
<div class="i-ri-eye-fill mr-1" />
|
48
|
-
<span class="waline-pageview-count" data-path="/"
|
48
|
+
<span class="waline-pageview-count" data-path="/">1</span>
|
49
49
|
</span>
|
50
50
|
</div>
|
51
51
|
|
package/layouts/post.vue
CHANGED
@@ -35,7 +35,7 @@ const displayTag = (tag: string) => {
|
|
35
35
|
<div class="border-t border-gray-200 dark:border-gray-600"></div>
|
36
36
|
<div class="flex items-center justify-end mt-2">
|
37
37
|
<div class="i-ri-eye-fill mr-2" />
|
38
|
-
阅读次数 <span class="waline-pageview-count mx-2"
|
38
|
+
阅读次数 <span class="waline-pageview-count mx-2">1</span> 次
|
39
39
|
</div>
|
40
40
|
</div>
|
41
41
|
<template #body-slide>
|
package/modules/loading.scss
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
.hy-loading {
|
2
|
-
position:
|
2
|
+
position: fixed;
|
3
3
|
top: 0;
|
4
4
|
left: 0;
|
5
|
+
bottom: 0;
|
6
|
+
right: 0;
|
5
7
|
z-index: 100;
|
6
|
-
|
7
|
-
height: 100%;
|
8
|
+
|
8
9
|
background: #eee;
|
9
10
|
|
10
11
|
transition: opacity 0.5s;
|
@@ -14,10 +15,10 @@
|
|
14
15
|
height: 50px;
|
15
16
|
position: fixed;
|
16
17
|
top: 50%;
|
17
|
-
|
18
|
-
margin-left: -50px;
|
18
|
+
margin: auto;
|
19
19
|
margin-top: -50px;
|
20
|
-
|
20
|
+
left: 0;
|
21
|
+
right: 0;
|
21
22
|
}
|
22
23
|
|
23
24
|
#preloader {
|
package/modules/loading.ts
CHANGED
@@ -30,6 +30,8 @@ function showFullLoading() {
|
|
30
30
|
el = createElement()
|
31
31
|
el.style.opacity = '0'
|
32
32
|
document.body.appendChild(el)
|
33
|
+
document.body.style.overflow = 'hidden'
|
34
|
+
|
33
35
|
setTimeout(() => el.style.opacity = '1')
|
34
36
|
isLoading.value = true
|
35
37
|
}
|
@@ -38,6 +40,7 @@ function hideFullLoading() {
|
|
38
40
|
if (!el)
|
39
41
|
return
|
40
42
|
el.style.opacity = '0'
|
43
|
+
document.body.style.overflow = ''
|
41
44
|
setTimeout(() => {
|
42
45
|
isLoading.value = true
|
43
46
|
el.remove()
|
package/package.json
CHANGED
package/styles/markdown.scss
CHANGED
@@ -48,6 +48,16 @@ html.dark {
|
|
48
48
|
max-width: calc(100vw - 56px);
|
49
49
|
}
|
50
50
|
|
51
|
+
.markdown-body div[class*=language-] {
|
52
|
+
width: 100%;
|
53
|
+
}
|
54
|
+
|
55
|
+
@media screen and (max-width: 640px) {
|
56
|
+
.markdown-body div[class*=language-] {
|
57
|
+
margin: auto;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
51
61
|
|
52
62
|
.prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *))::before,
|
53
63
|
.prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *))::after {
|
@@ -63,6 +73,10 @@ html.dark {
|
|
63
73
|
--un-prose-borders: var(--hy-c-primary);
|
64
74
|
}
|
65
75
|
|
76
|
+
.markdown-body div[class*=language-] pre {
|
77
|
+
max-width: none;
|
78
|
+
}
|
79
|
+
|
66
80
|
.prose :where(blockquote):not(:where(.not-prose, .not-prose *)) {
|
67
81
|
background: rgba(200, 200, 200, 0.1);
|
68
82
|
@apply py-1px;
|