hexo-theme-solitude 1.5.6 → 1.5.8
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/layout/includes/inject/head.pug +1 -1
- package/layout/includes/page/says.pug +1 -1
- package/layout/includes/widgets/page/about/award.pug +1 -1
- package/layout/includes/widgets/third-party/music.pug +1 -1
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +2 -1
- package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -1
- package/package.json +1 -1
- package/source/css/_global/function.styl +20 -20
- package/source/css/_page/_about/author.styl +14 -16
- package/source/css/_page/_home/home-top.styl +4 -4
- package/source/css/_page/links.styl +10 -18
- package/source/css/_page/music.styl +18 -6
- package/source/js/music.js +1 -0
- package/source/js/search/local.js +3 -0
- package/source/js/utils.js +1 -1
@@ -78,7 +78,7 @@ script.
|
|
78
78
|
)(window)
|
79
79
|
|
80
80
|
console.log(
|
81
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.5.
|
81
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.5.8",
|
82
82
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
83
83
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
84
84
|
"border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
|
@@ -24,7 +24,7 @@ if theme.says.enable
|
|
24
24
|
|
25
25
|
if item.aplayer
|
26
26
|
.bber-music
|
27
|
-
meting-js(server=item.aplayer.server type="song" id=item.aplayer.id mutex="true" preload="none" theme="var(--
|
27
|
+
meting-js(server=item.aplayer.server type="song" id=item.aplayer.id mutex="true" preload="none" theme="var(--efu-main)" data-lrctype="0")
|
28
28
|
|
29
29
|
if item.video
|
30
30
|
.bber-video
|
@@ -14,7 +14,7 @@ if site.data.about.rewardList
|
|
14
14
|
.reward-list-item
|
15
15
|
.reward-list-item-name= reward.name
|
16
16
|
.reward-list-bottom-group
|
17
|
-
.reward-list-item-money(style=(reward.vip ? "background: var(--
|
17
|
+
.reward-list-item-money(style=(reward.vip ? "background: var(--efu-vip);color: var(--efu-white)" : ""))
|
18
18
|
if reward.icon
|
19
19
|
i.solitude(class=reward.icon)
|
20
20
|
| ¥ #{reward.money}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
div.needEndHide#nav-music(onclick="sco.musicToggle()")
|
2
2
|
div#nav-music-hoverTips=__('music.hit')
|
3
|
-
meting-js(id=theme.capsule.id, server=theme.capsule.server, type="playlist", mutex="true", preload="none", data-lrctype="0", order="random", theme="var(--
|
3
|
+
meting-js(id=theme.capsule.id, server=theme.capsule.server, type="playlist", mutex="true", preload="none", data-lrctype="0", order="random", theme="var(--efu-main)")
|
@@ -34,6 +34,7 @@ script.
|
|
34
34
|
}))
|
35
35
|
generateHtml(twikooArray)
|
36
36
|
}).catch(function (err) {
|
37
|
+
console.error(err)
|
37
38
|
$dom.innerHTML = "无法获取评论,请确认相关配置是否正确"
|
38
39
|
})
|
39
40
|
}
|
@@ -56,7 +57,7 @@ script.
|
|
56
57
|
`).join('') : '没有评论'
|
57
58
|
window.lazyLoadInstance && window.lazyLoadInstance.update()
|
58
59
|
window.pjax && window.pjax.refresh($dom)
|
59
|
-
changeTimeFormat()
|
60
|
+
utils && utils.changeTimeFormat()
|
60
61
|
}
|
61
62
|
|
62
63
|
const newestCommentInit = () => {
|
package/package.json
CHANGED
@@ -18,6 +18,10 @@ minWidth798()
|
|
18
18
|
@media screen and (min-width: 798px)
|
19
19
|
{block}
|
20
20
|
|
21
|
+
maxHeight800()
|
22
|
+
@media screen and (max-height: 800px)
|
23
|
+
{block}
|
24
|
+
|
21
25
|
maxWidth899()
|
22
26
|
@media screen and (max-width: 899px)
|
23
27
|
{block}
|
@@ -34,20 +38,20 @@ minWidth900()
|
|
34
38
|
@media screen and (min-width: 900px)
|
35
39
|
{block}
|
36
40
|
|
37
|
-
|
38
|
-
@media screen and (
|
41
|
+
minWidth901()
|
42
|
+
@media screen and (min-width: 901px)
|
39
43
|
{block}
|
40
44
|
|
41
|
-
|
42
|
-
@media screen and (
|
45
|
+
maxWidth1000()
|
46
|
+
@media screen and (max-width: 1000px)
|
43
47
|
{block}
|
44
48
|
|
45
|
-
|
46
|
-
@media screen and (
|
49
|
+
minWidth1000()
|
50
|
+
@media screen and (min-width: 1000px)
|
47
51
|
{block}
|
48
52
|
|
49
|
-
|
50
|
-
@media screen and (
|
53
|
+
maxWidth1024()
|
54
|
+
@media screen and (max-width: 1024px)
|
51
55
|
{block}
|
52
56
|
|
53
57
|
maxWidth1200()
|
@@ -62,26 +66,22 @@ minWidth1201()
|
|
62
66
|
@media screen and (min-width: 1201px)
|
63
67
|
{block}
|
64
68
|
|
65
|
-
|
66
|
-
@media screen and (max-width:
|
69
|
+
maxWidth1300()
|
70
|
+
@media screen and (max-width: 1300px)
|
67
71
|
{block}
|
68
72
|
|
69
|
-
|
70
|
-
@media screen and (
|
73
|
+
minWidth1300()
|
74
|
+
@media screen and (min-width: 1300px)
|
71
75
|
{block}
|
72
76
|
|
73
|
-
|
74
|
-
@media screen and (
|
77
|
+
maxWidth1400()
|
78
|
+
@media screen and (max-width: 1400px)
|
75
79
|
{block}
|
76
80
|
|
77
|
-
|
78
|
-
@media screen and (min-width:
|
81
|
+
minWidth1400()
|
82
|
+
@media screen and (min-width: 1400px)
|
79
83
|
{block}
|
80
84
|
|
81
85
|
minWidth2000()
|
82
86
|
@media screen and (min-width: 2000px)
|
83
|
-
{block}
|
84
|
-
|
85
|
-
maxHeight800()
|
86
|
-
@media screen and (max-height: 800px)
|
87
87
|
{block}
|
@@ -65,23 +65,8 @@
|
|
65
65
|
&:hover
|
66
66
|
transform scale(1.1)
|
67
67
|
|
68
|
-
+maxWidth768()
|
69
|
-
width 120px
|
70
|
-
height 120px
|
71
|
-
|
72
|
-
&::before
|
73
|
-
bottom -5px
|
74
|
-
right -5px
|
75
|
-
|
76
|
-
img
|
77
|
-
border-radius 200px
|
78
|
-
|
79
68
|
&::before
|
80
69
|
content ''
|
81
|
-
-webkit-transition 1s
|
82
|
-
-moz-transition 1s
|
83
|
-
-o-transition 1s
|
84
|
-
-ms-transition 1s
|
85
70
|
transition 1s
|
86
71
|
width 30px
|
87
72
|
height 30px
|
@@ -91,4 +76,17 @@
|
|
91
76
|
border 5px solid var(--efu-background)
|
92
77
|
bottom 5px
|
93
78
|
right 10px
|
94
|
-
z-index 2
|
79
|
+
z-index 2
|
80
|
+
|
81
|
+
+maxWidth768()
|
82
|
+
width 120px
|
83
|
+
height 120px
|
84
|
+
|
85
|
+
&::before
|
86
|
+
bottom -2px
|
87
|
+
right -2px
|
88
|
+
width 20px
|
89
|
+
height 20px
|
90
|
+
|
91
|
+
img
|
92
|
+
border-radius 200px
|
@@ -21,9 +21,9 @@
|
|
21
21
|
display none
|
22
22
|
|
23
23
|
/ #bannerGroup
|
24
|
-
display
|
24
|
+
display none
|
25
25
|
|
26
|
-
+
|
26
|
+
+minWidth1201()
|
27
27
|
width calc(50% - .25rem)
|
28
28
|
margin-right .5rem
|
29
29
|
height calc(328px + .5rem)
|
@@ -50,7 +50,7 @@
|
|
50
50
|
flex-direction column
|
51
51
|
justify-content space-between
|
52
52
|
min-width 200px
|
53
|
-
+
|
53
|
+
+minWidth1201()
|
54
54
|
display none
|
55
55
|
+maxWidth768()
|
56
56
|
min-width 130px
|
@@ -216,7 +216,7 @@
|
|
216
216
|
.todayCard
|
217
217
|
display none
|
218
218
|
|
219
|
-
+
|
219
|
+
+minWidth1201()
|
220
220
|
position absolute
|
221
221
|
width 100%
|
222
222
|
z-index 3
|
@@ -4,13 +4,6 @@
|
|
4
4
|
.flink#article-container
|
5
5
|
margin-top 1rem
|
6
6
|
|
7
|
-
#friendlink_checkboxs input
|
8
|
-
margin-right 4px
|
9
|
-
|
10
|
-
h2
|
11
|
-
margin-top 0.5rem
|
12
|
-
margin-bottom 0
|
13
|
-
|
14
7
|
.flink-desc
|
15
8
|
margin 0
|
16
9
|
color var(--efu-secondtext)
|
@@ -35,7 +28,7 @@
|
|
35
28
|
top 0
|
36
29
|
width 100px
|
37
30
|
height 50px
|
38
|
-
background-image -webkit-linear-gradient(0deg,
|
31
|
+
background-image -webkit-linear-gradient(0deg,rgba(255,255,255,0),rgba(255,255,255,.5),rgba(255,255,255,0))
|
39
32
|
animation light_tag 4s both infinite
|
40
33
|
|
41
34
|
&.vip
|
@@ -48,13 +41,14 @@
|
|
48
41
|
padding 20px 0
|
49
42
|
display flex
|
50
43
|
flex-wrap wrap
|
51
|
-
-webkit-box-pack start
|
52
44
|
justify-content flex-start
|
53
45
|
margin -8px
|
54
|
-
-webkit-box-align stretch
|
55
46
|
align-items stretch
|
56
47
|
|
57
48
|
.site-card
|
49
|
+
margin 8px
|
50
|
+
display block
|
51
|
+
line-height 1.4
|
58
52
|
border var(--style-border)
|
59
53
|
border-radius 12px
|
60
54
|
transition .3s
|
@@ -65,9 +59,6 @@
|
|
65
59
|
width calc(100% / 7 - 16px)
|
66
60
|
background var(--efu-card-bg)
|
67
61
|
box-shadow var(--efu-shadow-border)
|
68
|
-
margin 8px
|
69
|
-
display block
|
70
|
-
line-height 1.4
|
71
62
|
|
72
63
|
+maxWidth1200()
|
73
64
|
width calc(20% - 16px)
|
@@ -82,6 +73,7 @@
|
|
82
73
|
width calc(50% - 16px)
|
83
74
|
|
84
75
|
.img
|
76
|
+
-webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
|
85
77
|
border-radius 0
|
86
78
|
height 120px
|
87
79
|
width 100%
|
@@ -89,6 +81,7 @@
|
|
89
81
|
border none
|
90
82
|
padding 0
|
91
83
|
transition all .3s ease 0s
|
84
|
+
background #f6f6f6
|
92
85
|
overflow hidden
|
93
86
|
|
94
87
|
img
|
@@ -159,16 +152,15 @@
|
|
159
152
|
left: -60px
|
160
153
|
|
161
154
|
.img
|
162
|
-
height 80px
|
163
155
|
transform scale(1.1)
|
164
156
|
filter brightness(.3)
|
165
157
|
border-radius 12px
|
166
158
|
background var(--efu-lighttext)
|
159
|
+
+minWidth768()
|
160
|
+
height 80px
|
167
161
|
|
168
|
-
|
169
|
-
|
170
|
-
transform scale(1.1)
|
171
|
-
filter brightness(.3)
|
162
|
+
img
|
163
|
+
transform scale(1.1)
|
172
164
|
|
173
165
|
a
|
174
166
|
color var(--efu-white)
|
@@ -53,7 +53,10 @@ body[data-type=music]
|
|
53
53
|
|
54
54
|
.aplayer-body
|
55
55
|
width 70%
|
56
|
-
height
|
56
|
+
height 85vh
|
57
|
+
|
58
|
+
+maxWidth1200()
|
59
|
+
height 80vh
|
57
60
|
|
58
61
|
+maxWidth798()
|
59
62
|
width 100%
|
@@ -67,7 +70,10 @@ body[data-type=music]
|
|
67
70
|
height 75vh
|
68
71
|
|
69
72
|
ol
|
70
|
-
max-height
|
73
|
+
max-height 85vh !important
|
74
|
+
|
75
|
+
+maxWidth1200()
|
76
|
+
max-height 80vh !important
|
71
77
|
|
72
78
|
+maxWidth798()
|
73
79
|
max-height 100%!important
|
@@ -93,9 +99,10 @@ body[data-type=music]
|
|
93
99
|
display flex
|
94
100
|
flex-direction column
|
95
101
|
opacity 1
|
102
|
+
transition none
|
96
103
|
|
97
104
|
+maxWidth798()
|
98
|
-
background
|
105
|
+
background var(--efu-main)
|
99
106
|
padding 5px 20px
|
100
107
|
border-radius 10px
|
101
108
|
height 52px
|
@@ -168,10 +175,14 @@ body[data-type=music]
|
|
168
175
|
|
169
176
|
.aplayer-list-index
|
170
177
|
line-height 32px
|
178
|
+
opacity 0.6
|
171
179
|
|
172
180
|
&::-webkit-scrollbar-thumb
|
173
181
|
background-color var(--efu-white-op)
|
174
182
|
|
183
|
+
.aplayer-list
|
184
|
+
transition none
|
185
|
+
|
175
186
|
.aplayer-pic
|
176
187
|
float none
|
177
188
|
width 60px
|
@@ -194,7 +205,7 @@ body[data-type=music]
|
|
194
205
|
+maxWidth798()
|
195
206
|
display flex
|
196
207
|
position fixed
|
197
|
-
top
|
208
|
+
top 83vh
|
198
209
|
left 0
|
199
210
|
margin 0
|
200
211
|
margin-left 32px
|
@@ -268,10 +279,10 @@ body[data-type=music]
|
|
268
279
|
opacity 1
|
269
280
|
transition all 0.3s cubic-bezier(0.56, 0.17, 0.22, 0.76), text-shadow 8s 4s ease-in
|
270
281
|
height fit-content !important
|
271
|
-
text-shadow
|
282
|
+
text-shadow 0 4px 4px #ffffff94
|
272
283
|
|
273
284
|
&:first-child
|
274
|
-
text-shadow
|
285
|
+
text-shadow 0 4px 4px #ffffff00
|
275
286
|
|
276
287
|
.aplayer-controller
|
277
288
|
position fixed
|
@@ -418,6 +429,7 @@ body[data-type=music]
|
|
418
429
|
padding 15px 0
|
419
430
|
max-width 100%
|
420
431
|
height 75vh
|
432
|
+
transition all .3s
|
421
433
|
|
422
434
|
&.aplayer-list-hide
|
423
435
|
bottom -100% !important
|
package/source/js/music.js
CHANGED
package/source/js/utils.js
CHANGED
@@ -70,7 +70,7 @@ const utils = {
|
|
70
70
|
snackbarShow: (text, showAction, duration) => {
|
71
71
|
const sa = (typeof showAction !== 'undefined') ? showAction : false
|
72
72
|
const dur = (typeof duration !== 'undefined') ? duration : 5000
|
73
|
-
document.styleSheets[0].addRule(':root', '--
|
73
|
+
document.styleSheets[0].addRule(':root', '--efu-snackbar-time:' + dur + 'ms!important')
|
74
74
|
Snackbar.show({
|
75
75
|
text: text, showAction: sa, duration: dur, pos: 'top-center'
|
76
76
|
})
|