valaxy-theme-yun 0.14.58 → 0.14.60
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.
@@ -2,7 +2,7 @@
|
|
2
2
|
import { computed } from 'vue'
|
3
3
|
import { useBackToTop } from 'valaxy'
|
4
4
|
|
5
|
-
const { show, percentage } = useBackToTop({ offset: 100 })
|
5
|
+
const { show, percentage, backToTop } = useBackToTop({ offset: 100 })
|
6
6
|
|
7
7
|
const radius = 48
|
8
8
|
const circumference = 2 * radius * Math.PI
|
@@ -15,7 +15,7 @@ const strokeOffset = computed(() => {
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<template>
|
18
|
-
<a href="#" class="back-to-top yun-icon-btn" :class="show && 'show'">
|
18
|
+
<a href="#" class="back-to-top yun-icon-btn" :class="show && 'show'" @click="backToTop">
|
19
19
|
<div w="8" h="8" i-ri-arrow-up-s-line />
|
20
20
|
<svg class="progress-circle-container" viewBox="0 0 100 100">
|
21
21
|
<circle :stroke-dasharray="`${circumference} ${circumference}`" :stroke-dashoffset="strokeOffset" class="progress-circle" cx="50" cy="50" :r="radius" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.60",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -19,12 +19,12 @@
|
|
19
19
|
"dependencies": {
|
20
20
|
"@explosions/fireworks": "^0.0.2",
|
21
21
|
"@iconify-json/ant-design": "^1.1.10",
|
22
|
-
"@iconify-json/simple-icons": "^1.1.
|
22
|
+
"@iconify-json/simple-icons": "^1.1.70",
|
23
23
|
"animejs": "^3.2.1"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/animejs": "^3.1.7",
|
27
|
-
"valaxy": "0.14.
|
27
|
+
"valaxy": "0.14.60",
|
28
28
|
"valaxy-addon-waline": "0.1.0"
|
29
29
|
}
|
30
30
|
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
--c-toc-link: var(--va-c-text-light);
|
6
6
|
}
|
7
7
|
|
8
|
-
|
8
|
+
.dark {
|
9
9
|
.markdown-body {
|
10
10
|
--c-toc-link: var(--va-c-text-dark);
|
11
11
|
}
|
@@ -39,9 +39,22 @@ html.dark {
|
|
39
39
|
|
40
40
|
img {
|
41
41
|
margin: 0.5rem auto;
|
42
|
+
height: auto;
|
42
43
|
}
|
43
44
|
|
44
45
|
p {
|
45
46
|
overflow: unset;
|
46
47
|
}
|
48
|
+
|
49
|
+
// alone image
|
50
|
+
figure {
|
51
|
+
|
52
|
+
figcaption {
|
53
|
+
text-align: center;
|
54
|
+
font-size: 0.8rem;
|
55
|
+
color: var(--va-c-text-2);
|
56
|
+
|
57
|
+
margin-bottom: 1rem;
|
58
|
+
}
|
59
|
+
}
|
47
60
|
}
|