hexo-theme-particlex 2.6.7 → 2.6.9
Sign up to get free protection for your applications and to get access to all the features.
- package/layout/card.ejs +2 -2
- package/layout/import.ejs +10 -10
- package/layout/layout.ejs +4 -6
- package/layout/menu.ejs +6 -6
- package/package.json +1 -1
- package/source/css/main.css +27 -23
- package/source/js/main.js +2 -1
package/layout/card.ejs
CHANGED
package/layout/import.ejs
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
<script src="https://cdn.staticfile.org/vue/3.
|
2
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.
|
1
|
+
<script src="https://cdn.staticfile.org/vue/3.3.4/vue.global.prod.min.js"></script>
|
2
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" />
|
3
3
|
<link rel="stylesheet" href="<%- url_for("/css/fonts.min.css") %>" />
|
4
4
|
<script> const mixins = {}; </script>
|
5
5
|
<% if (theme.polyfill.enable) { %>
|
6
6
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=<%- theme.polyfill.features %>"></script>
|
7
7
|
<% } %>
|
8
8
|
<% if (theme.highlight.enable) { %>
|
9
|
-
<script src="https://cdn.staticfile.org/highlight.js/11.
|
9
|
+
<script src="https://cdn.staticfile.org/highlight.js/11.8.0/highlight.min.js"></script>
|
10
10
|
<script src="https://cdn.staticfile.org/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
|
11
11
|
<link
|
12
12
|
rel="stylesheet"
|
13
|
-
href="https://cdn.staticfile.org/highlight.js/11.
|
13
|
+
href="https://cdn.staticfile.org/highlight.js/11.8.0/styles/<%- theme.highlight.style %>.min.css"
|
14
14
|
/>
|
15
15
|
<script src="<%- url_for("/js/lib/highlight.js") %>"></script>
|
16
16
|
<% } %>
|
17
17
|
<% if (theme.math.enable) { %>
|
18
|
-
<script src="https://cdn.staticfile.org/KaTeX/0.16.
|
19
|
-
<script src="https://cdn.staticfile.org/KaTeX/0.16.
|
20
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.16.
|
18
|
+
<script src="https://cdn.staticfile.org/KaTeX/0.16.8/katex.min.js"></script>
|
19
|
+
<script src="https://cdn.staticfile.org/KaTeX/0.16.8/contrib/auto-render.min.js"></script>
|
20
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.16.8/katex.min.css" />
|
21
21
|
<script src="<%- url_for("/js/lib/math.js") %>"></script>
|
22
22
|
<% } %>
|
23
23
|
<% if (theme.preview.enable) { %>
|
@@ -36,9 +36,9 @@
|
|
36
36
|
<link rel="stylesheet" href="https://cdn.staticfile.org/gitalk/1.8.0/gitalk.min.css" />
|
37
37
|
<% } %>
|
38
38
|
<% if (theme.waline.enable) { %>
|
39
|
-
<script src="https://cdn.staticfile.org/waline/2.
|
40
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.
|
41
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.
|
39
|
+
<script src="https://cdn.staticfile.org/waline/2.15.5/waline.min.js"></script>
|
40
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.15.5/waline.min.css" />
|
41
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.15.5/waline-meta.min.css" />
|
42
42
|
<% } %>
|
43
43
|
<% if (theme.twikoo.enable) { %>
|
44
44
|
<script src="https://cdn.staticfile.org/twikoo/1.6.16/twikoo.all.min.js"></script>
|
package/layout/layout.ejs
CHANGED
@@ -36,12 +36,10 @@
|
|
36
36
|
</div>
|
37
37
|
</transition>
|
38
38
|
<%- partial("menu") %>
|
39
|
-
<
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
</div>
|
44
|
-
</transition>
|
39
|
+
<div id="main" :class="loading ? 'into-enter-from': 'into-enter-active'">
|
40
|
+
<%- partial(type) %>
|
41
|
+
<%- partial("footer") %>
|
42
|
+
</div>
|
45
43
|
<% if (theme.preview.enable) { %>
|
46
44
|
<transition name="fade">
|
47
45
|
<div id="preview" ref="preview" v-show="previewShow">
|
package/layout/menu.ejs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<
|
2
|
-
<
|
1
|
+
<div id="menu" :class="{ hidden: hiddenMenu, 'menu-color': menuColor}">
|
2
|
+
<nav id="desktop-menu">
|
3
3
|
<a class="title" href="<%- config.root %>">
|
4
4
|
<span><%= config.title.toUpperCase() %></span>
|
5
5
|
</a>
|
@@ -9,8 +9,8 @@
|
|
9
9
|
<span> <%= key %></span>
|
10
10
|
</a>
|
11
11
|
<% }); %>
|
12
|
-
</
|
13
|
-
<
|
12
|
+
</nav>
|
13
|
+
<nav id="mobile-menu">
|
14
14
|
<div class="title" @click="showMenuItems = !showMenuItems">
|
15
15
|
<i class="fa-solid fa-bars fa-fw"></i>
|
16
16
|
<span> <%= config.title.toUpperCase() %></span>
|
@@ -29,8 +29,8 @@
|
|
29
29
|
<% }); %>
|
30
30
|
</div>
|
31
31
|
</transition>
|
32
|
-
</
|
33
|
-
</
|
32
|
+
</nav>
|
33
|
+
</div>
|
34
34
|
<transition name="fade">
|
35
35
|
<div id="menu-curtain" @click="showMenuItems = !showMenuItems" v-show="showMenuItems"></div>
|
36
36
|
</transition>
|
package/package.json
CHANGED
package/source/css/main.css
CHANGED
@@ -42,10 +42,6 @@
|
|
42
42
|
#archives h3 {
|
43
43
|
margin: 10px 0;
|
44
44
|
}
|
45
|
-
#card-div {
|
46
|
-
position: sticky;
|
47
|
-
top: 80px;
|
48
|
-
}
|
49
45
|
#crypto {
|
50
46
|
margin: 50px 0;
|
51
47
|
}
|
@@ -85,16 +81,26 @@
|
|
85
81
|
#home-card {
|
86
82
|
width: 300px;
|
87
83
|
}
|
88
|
-
#home-card
|
84
|
+
#home-card #card-style {
|
89
85
|
background: #fff;
|
90
86
|
border: none;
|
91
87
|
border-radius: 10px;
|
92
88
|
box-shadow: 0 0 20px #d9d9d980;
|
93
|
-
|
89
|
+
display: flex;
|
90
|
+
flex-direction: column;
|
91
|
+
height: 60vh;
|
92
|
+
justify-content: center;
|
93
|
+
overflow: auto;
|
94
|
+
position: sticky;
|
94
95
|
text-align: center;
|
96
|
+
top: 20vh;
|
95
97
|
width: 300px;
|
96
98
|
}
|
97
|
-
#home-card
|
99
|
+
#home-card #card-div {
|
100
|
+
overflow: auto;
|
101
|
+
padding: 25px 0;
|
102
|
+
}
|
103
|
+
#home-card #card-div .avatar {
|
98
104
|
border: #f1f1f1 solid 3px;
|
99
105
|
border-radius: 50%;
|
100
106
|
height: 140px;
|
@@ -102,50 +108,50 @@
|
|
102
108
|
text-align: center;
|
103
109
|
width: 140px;
|
104
110
|
}
|
105
|
-
#home-card
|
111
|
+
#home-card #card-div .avatar img {
|
106
112
|
border-radius: 50%;
|
107
113
|
height: 100%;
|
108
114
|
width: 100%;
|
109
115
|
}
|
110
|
-
#home-card
|
116
|
+
#home-card #card-div .avatar:hover img {
|
111
117
|
transform: rotate(360deg);
|
112
118
|
}
|
113
|
-
#home-card
|
119
|
+
#home-card #card-div .description {
|
114
120
|
margin: 20px auto;
|
115
121
|
width: 85%;
|
116
122
|
}
|
117
|
-
#home-card
|
123
|
+
#home-card #card-div .friend-links .friend-link {
|
118
124
|
margin-bottom: 5px;
|
119
125
|
}
|
120
|
-
#home-card
|
126
|
+
#home-card #card-div .friend-links a {
|
121
127
|
border-radius: 5px;
|
122
128
|
color: #5c6b72;
|
123
129
|
display: block;
|
124
130
|
padding: 8px 0;
|
125
131
|
}
|
126
|
-
#home-card
|
132
|
+
#home-card #card-div .icon-links .icon-link {
|
127
133
|
margin: 5px;
|
128
134
|
}
|
129
|
-
#home-card
|
135
|
+
#home-card #card-div .icon-links a {
|
130
136
|
border-radius: 5px;
|
131
137
|
color: #5c6b72;
|
132
138
|
font-size: 18px;
|
133
139
|
padding: 5px;
|
134
140
|
}
|
135
|
-
#home-card
|
136
|
-
#home-card
|
141
|
+
#home-card #card-div .icon-links a:hover,
|
142
|
+
#home-card #card-div .friend-links a:hover,
|
137
143
|
#home-posts .page-current .page-num:hover {
|
138
144
|
background: #66afef;
|
139
145
|
color: #fff;
|
140
146
|
}
|
141
|
-
#home-card
|
142
|
-
#home-card
|
147
|
+
#home-card #card-div .icon-links,
|
148
|
+
#home-card #card-div .friend-links {
|
143
149
|
border-top: #cdcdcd solid 1px;
|
144
150
|
margin: 10px auto;
|
145
151
|
padding-top: 10px;
|
146
152
|
width: 85%;
|
147
153
|
}
|
148
|
-
#home-card
|
154
|
+
#home-card #card-div .name {
|
149
155
|
font-size: 16px;
|
150
156
|
font-weight: bold;
|
151
157
|
margin: 20px auto;
|
@@ -570,12 +576,10 @@ body::-webkit-scrollbar-track {
|
|
570
576
|
.input:hover {
|
571
577
|
background: #fff;
|
572
578
|
}
|
573
|
-
.into-enter-active
|
574
|
-
.into-leave-active {
|
579
|
+
.into-enter-active {
|
575
580
|
transition: opacity 0.5s, transform 0.5s;
|
576
581
|
}
|
577
|
-
.into-enter-from
|
578
|
-
.into-leave-to {
|
582
|
+
.into-enter-from {
|
579
583
|
opacity: 0;
|
580
584
|
transform: scale(1.1);
|
581
585
|
}
|
package/source/js/main.js
CHANGED
@@ -32,9 +32,10 @@ const app = Vue.createApp({
|
|
32
32
|
this.showMenuItems = false;
|
33
33
|
} else this.hiddenMenu = false;
|
34
34
|
if (wrap) {
|
35
|
-
wrap.style.top = -Math.min(newScrollTop / 5, 80) + "px";
|
36
35
|
if (newScrollTop <= window.innerHeight - 100) this.menuColor = true;
|
37
36
|
else this.menuColor = false;
|
37
|
+
if (newScrollTop <= 400) wrap.style.top = "-" + newScrollTop / 5 + "px";
|
38
|
+
else wrap.style.top = "-80px";
|
38
39
|
}
|
39
40
|
this.scrollTop = newScrollTop;
|
40
41
|
},
|