hexo-theme-solitude 1.9.3 → 1.10.0
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/_config.yml +8 -0
- package/layout/includes/footer.pug +12 -11
- package/layout/includes/inject/head.pug +2 -2
- package/package.json +1 -1
- package/source/css/_layout/footer.styl +27 -28
- package/source/css/_page/_home/category-bar.styl +16 -1
- package/source/css/_page/music.styl +54 -71
- package/source/css/_tags/mermaid.styl +4 -1
- package/source/js/main.js +1 -1
- package/source/js/music.js +1 -0
package/_config.yml
CHANGED
@@ -383,6 +383,14 @@ post:
|
|
383
383
|
mode: local # local:本地取色 / api:img2color取色 : local: local color / api: img2color color
|
384
384
|
api: https://api.qjqq.cn/api/Imgcolor?img= # api地址 / api address
|
385
385
|
time: 43200000 # api取色间隔(毫秒),默认为12小时 / api color interval (milliseconds), default is 12 hours
|
386
|
+
# footer
|
387
|
+
footer:
|
388
|
+
enable: true
|
389
|
+
desc: 来自 Efu 的文章 # 介绍文字
|
390
|
+
button: # 跳转按钮
|
391
|
+
enable: true
|
392
|
+
name: 了解更多
|
393
|
+
url: /about/
|
386
394
|
|
387
395
|
# -------------------------
|
388
396
|
# 自定义主题
|
@@ -1,13 +1,15 @@
|
|
1
|
-
|
2
|
-
div
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
if theme.post.footer.enable && is_post()
|
2
|
+
div#st-footer-bar
|
3
|
+
div.footer-logo
|
4
|
+
if theme.site.name.class === 'i_class'
|
5
|
+
i.solitude(class=theme.site.name.custom)
|
6
|
+
else if theme.site.name.class === 'img'
|
7
|
+
img.solitude.nolazyload(src=url_for(theme.site.name.custom))
|
8
|
+
else if theme.site.name.class === 'text'
|
9
|
+
span= theme.site.name.custom
|
10
|
+
div.footer-bar-description=theme.post.footer.desc
|
11
|
+
if theme.post.footer.button.enable
|
12
|
+
a.footer-bar-link(href=url_for(theme.post.footer.button.url))= theme.post.footer.button.name
|
11
13
|
div#footer_deal
|
12
14
|
- var leftInfo = theme.footer && theme.footer.information && theme.footer.information.left || {}
|
13
15
|
- var rightInfo = theme.footer && theme.footer.information && theme.footer.information.right || {}
|
@@ -52,7 +54,6 @@ div#footer-bar
|
|
52
54
|
div.copyright © #{moment(theme.aside.siteinfo.runtime).year()} - #{new Date().getFullYear()} By
|
53
55
|
a.footer-bar-link(href=url_for("/"))= config.author
|
54
56
|
div.footer-bar-right
|
55
|
-
a.footer-bar-link(href="https://github.com/valor-x/hexo-theme-solitude" title=__('footer.theme'))= __('footer.theme')
|
56
57
|
each item in theme.footer.links
|
57
58
|
a.footer-bar-link(href=url_for(item.url), alt=item.name)!= item.name
|
58
59
|
a.footer-bar-link.cc(href=url_for(theme.footer.license), aria-label = 'copyright')
|
@@ -27,10 +27,10 @@ include ../head/pwa.pug
|
|
27
27
|
|
28
28
|
script.
|
29
29
|
console.log(
|
30
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.
|
30
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.10.0",
|
31
31
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
32
32
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
33
|
-
"padding: 5px 10px;color:white;background:#0084ff;",
|
33
|
+
"padding: 5px 10px;color:white;background:#0084ff;border-radius:0 5px 5px 0",
|
34
34
|
)
|
35
35
|
|
36
36
|
if theme.extends.head
|
package/package.json
CHANGED
@@ -15,38 +15,37 @@
|
|
15
15
|
content ''
|
16
16
|
z-index -1
|
17
17
|
|
18
|
-
div#st-footer-bar
|
19
|
-
display none
|
20
|
-
|
21
|
-
a.footer-bar-link
|
22
|
-
padding 4px 16px
|
23
|
-
background var(--efu-secondbg)
|
24
|
-
border-radius 20px
|
25
|
-
margin-top 8px
|
26
|
-
font-size 14px
|
27
|
-
cursor pointer
|
28
|
-
border var(--style-border-always)
|
29
18
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
19
|
+
if hexo-config('post.footer.enable')
|
20
|
+
div#st-footer-bar
|
21
|
+
display flex
|
22
|
+
flex-direction column
|
23
|
+
align-items center
|
24
|
+
margin-top 16px
|
25
|
+
|
26
|
+
a.footer-bar-link
|
27
|
+
padding 4px 16px
|
28
|
+
background var(--efu-secondbg)
|
29
|
+
border-radius 20px
|
30
|
+
margin-top 8px
|
31
|
+
font-size 14px
|
32
|
+
cursor pointer
|
33
|
+
border var(--style-border-always)
|
35
34
|
|
36
|
-
|
37
|
-
|
35
|
+
&:hover
|
36
|
+
background var(--efu-main)
|
37
|
+
color var(--efu-white)
|
38
|
+
transform scale(1.1)
|
39
|
+
border-color var(--efu-main)
|
38
40
|
|
39
|
-
|
40
|
-
|
41
|
-
font-weight 700
|
42
|
-
padding: 0 0.5rem
|
43
|
-
text-align: center
|
41
|
+
.footer-logo
|
42
|
+
font-size 24px
|
44
43
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
44
|
+
.footer-bar-description
|
45
|
+
color var(--efu-secondtext)
|
46
|
+
font-weight 700
|
47
|
+
padding: 0 0.5rem
|
48
|
+
text-align: center
|
50
49
|
|
51
50
|
#footer_deal
|
52
51
|
justify-content center
|
@@ -74,4 +74,19 @@
|
|
74
74
|
|
75
75
|
a
|
76
76
|
background var(--efu-theme)
|
77
|
-
color var(--efu-white)
|
77
|
+
color var(--efu-white)
|
78
|
+
|
79
|
+
.category-bar-next
|
80
|
+
margin-left 8px
|
81
|
+
cursor pointer
|
82
|
+
height 30px
|
83
|
+
width 30px
|
84
|
+
display flex
|
85
|
+
border-radius 8px
|
86
|
+
align-items center
|
87
|
+
justify-content center
|
88
|
+
transition .3s
|
89
|
+
@media (hover: hover)
|
90
|
+
.category-bar-next:hover
|
91
|
+
backgroundvar(--efu-secondbg)
|
92
|
+
color var(--efu-lighttext)
|
@@ -1,8 +1,10 @@
|
|
1
1
|
body[data-type=music]
|
2
2
|
#page-header #nav a
|
3
3
|
color var(--efu-white)
|
4
|
+
|
4
5
|
#page-header.not-top-img #nav .back-home-button
|
5
6
|
color var(--efu-white)
|
7
|
+
|
6
8
|
.page
|
7
9
|
.layout#content-inner
|
8
10
|
background none
|
@@ -51,12 +53,9 @@ body[data-type=music]
|
|
51
53
|
justify-content space-between
|
52
54
|
overflow visible
|
53
55
|
|
54
|
-
.aplayer-body
|
56
|
+
.aplayer-body
|
55
57
|
width 70%
|
56
|
-
height
|
57
|
-
|
58
|
-
+maxWidth1200()
|
59
|
-
height 80vh
|
58
|
+
height 75vh
|
60
59
|
|
61
60
|
+maxWidth798()
|
62
61
|
width 100%
|
@@ -67,20 +66,12 @@ body[data-type=music]
|
|
67
66
|
left 0
|
68
67
|
right 0
|
69
68
|
top 0
|
70
|
-
height
|
69
|
+
height calc(var(--vh) - 230px)
|
71
70
|
|
72
71
|
ol
|
73
|
-
max-height
|
72
|
+
max-height calc(var(--vh) - 170px)!important
|
74
73
|
|
75
|
-
|
76
|
-
max-height 80vh !important
|
77
|
-
|
78
|
-
+maxWidth798()
|
79
|
-
max-height 100%!important
|
80
|
-
padding-right 3px
|
81
|
-
padding-left 8px
|
82
|
-
|
83
|
-
& > li
|
74
|
+
& > li
|
84
75
|
font-size 14px
|
85
76
|
opacity 0.6
|
86
77
|
border-top none
|
@@ -88,11 +79,11 @@ body[data-type=music]
|
|
88
79
|
+maxWidth798()
|
89
80
|
display flex
|
90
81
|
|
91
|
-
&:hover
|
82
|
+
&:hover
|
92
83
|
background var(--efu-black-op)
|
93
84
|
border-radius 6px
|
94
85
|
|
95
|
-
&.aplayer-list-light
|
86
|
+
&.aplayer-list-light
|
96
87
|
background var(--efu-black-op)
|
97
88
|
border-radius 6px
|
98
89
|
height 60px
|
@@ -108,10 +99,10 @@ body[data-type=music]
|
|
108
99
|
height 52px
|
109
100
|
justify-content center
|
110
101
|
|
111
|
-
.aplayer-list-index
|
102
|
+
.aplayer-list-index
|
112
103
|
display none
|
113
104
|
|
114
|
-
.aplayer-list-title
|
105
|
+
.aplayer-list-title
|
115
106
|
font-size 20px
|
116
107
|
line-height 20px
|
117
108
|
margin-top 8px
|
@@ -123,39 +114,38 @@ body[data-type=music]
|
|
123
114
|
+maxWidth798()
|
124
115
|
margin-top 4px
|
125
116
|
|
126
|
-
.aplayer-list-cur
|
117
|
+
.aplayer-list-cur
|
127
118
|
display none
|
128
119
|
|
129
120
|
span
|
130
121
|
+maxWidth798()
|
131
122
|
color #fff
|
132
123
|
|
133
|
-
&.aplayer-list-author
|
124
|
+
&.aplayer-list-author
|
134
125
|
max-width 100%
|
135
126
|
|
136
127
|
+maxWidth798()
|
137
128
|
margin-left 0
|
138
129
|
right 15px
|
139
130
|
|
140
|
-
span
|
131
|
+
span
|
141
132
|
color var(--efu-white)
|
142
133
|
|
143
134
|
+maxWidth798()
|
144
135
|
color var(--efu-black)
|
145
136
|
|
146
|
-
&.aplayer-list-title
|
137
|
+
&.aplayer-list-title
|
147
138
|
line-height 32px
|
148
139
|
|
149
140
|
+maxWidth798()
|
150
141
|
max-width 55%
|
151
|
-
width auto
|
152
142
|
display -webkit-box
|
153
143
|
-webkit-line-clamp 1
|
154
144
|
overflow hidden
|
155
145
|
-webkit-box-orient vertical
|
156
146
|
width 30%
|
157
147
|
|
158
|
-
&.aplayer-list-author
|
148
|
+
&.aplayer-list-author
|
159
149
|
opacity 0.6
|
160
150
|
overflow hidden
|
161
151
|
text-overflow ellipsis
|
@@ -173,17 +163,17 @@ body[data-type=music]
|
|
173
163
|
-webkit-box-orient vertical
|
174
164
|
margin-left auto
|
175
165
|
|
176
|
-
.aplayer-list-index
|
166
|
+
.aplayer-list-index
|
177
167
|
line-height 32px
|
178
168
|
opacity 0.6
|
179
169
|
|
180
|
-
&::-webkit-scrollbar-thumb
|
170
|
+
&::-webkit-scrollbar-thumb
|
181
171
|
background-color var(--efu-white-op)
|
182
172
|
|
183
173
|
.aplayer-list
|
184
174
|
transition none
|
185
175
|
|
186
|
-
.aplayer-pic
|
176
|
+
.aplayer-pic
|
187
177
|
float none
|
188
178
|
width 60px
|
189
179
|
height 60px
|
@@ -195,17 +185,17 @@ body[data-type=music]
|
|
195
185
|
z-index 999
|
196
186
|
display none
|
197
187
|
|
198
|
-
.aplayer-info
|
188
|
+
.aplayer-info
|
199
189
|
margin 0 20px 0 20px
|
200
190
|
border-bottom none
|
201
191
|
|
202
|
-
.aplayer-music
|
192
|
+
.aplayer-music
|
203
193
|
display none
|
204
194
|
|
205
195
|
+maxWidth798()
|
206
196
|
display flex
|
207
197
|
position fixed
|
208
|
-
top
|
198
|
+
top calc(var(--vh) - 178px)
|
209
199
|
left 0
|
210
200
|
margin 0
|
211
201
|
margin-left 32px
|
@@ -238,29 +228,22 @@ body[data-type=music]
|
|
238
228
|
line-height 1
|
239
229
|
color #fff
|
240
230
|
|
241
|
-
.aplayer-lrc
|
231
|
+
.aplayer-lrc
|
242
232
|
padding-top 24%
|
243
|
-
height
|
244
|
-
|
245
|
-
+maxWidth798()
|
246
|
-
margin-top 0
|
247
|
-
height auto
|
248
|
-
min-height 100%
|
249
|
-
mask-image linear-gradient(to bottom, #000, #000, #000, #000, #0000, #0000)
|
250
|
-
padding-top 100px
|
233
|
+
height var(--vh)
|
251
234
|
|
252
235
|
&:hover
|
253
236
|
p
|
254
237
|
filter blur(0px)
|
255
238
|
|
256
|
-
p
|
239
|
+
p
|
257
240
|
font-size 36px
|
258
241
|
line-height 44px !important
|
259
242
|
height 44px !important
|
260
243
|
margin-bottom 36px !important
|
261
244
|
color #fff
|
262
245
|
font-weight bold
|
263
|
-
text-align
|
246
|
+
text-align left
|
264
247
|
filter blur(2px)
|
265
248
|
opacity 0.3
|
266
249
|
transition all 0.9s cubic-bezier(0.56, 0.17, 0.22, 0.76)
|
@@ -274,17 +257,17 @@ body[data-type=music]
|
|
274
257
|
line-height 42px
|
275
258
|
height 42px
|
276
259
|
|
277
|
-
&.aplayer-lrc-current
|
260
|
+
&.aplayer-lrc-current
|
278
261
|
filter blur(0px)
|
279
262
|
opacity 1
|
280
263
|
transition all 0.3s cubic-bezier(0.56, 0.17, 0.22, 0.76), text-shadow 8s 4s ease-in
|
281
264
|
height fit-content !important
|
282
265
|
text-shadow 0 4px 4px #ffffff94
|
283
266
|
|
284
|
-
&:first-child
|
267
|
+
&:first-child
|
285
268
|
text-shadow 0 4px 4px #ffffff00
|
286
269
|
|
287
|
-
.aplayer-controller
|
270
|
+
.aplayer-controller
|
288
271
|
position fixed
|
289
272
|
max-width 1400px
|
290
273
|
margin auto
|
@@ -299,21 +282,21 @@ body[data-type=music]
|
|
299
282
|
width 100%
|
300
283
|
bottom 120px
|
301
284
|
|
302
|
-
.aplayer-bar-wrap
|
285
|
+
.aplayer-bar-wrap
|
303
286
|
margin 0 160px 0 150px
|
304
287
|
|
305
288
|
+maxWidth798()
|
306
289
|
margin 0 32px
|
307
290
|
|
308
|
-
.aplayer-played
|
291
|
+
.aplayer-played
|
309
292
|
background var(--efu-white) !important
|
310
293
|
|
311
|
-
.aplayer-thumb
|
294
|
+
.aplayer-thumb
|
312
295
|
-webkit-transform none
|
313
296
|
transform none
|
314
297
|
background #fff !important
|
315
298
|
|
316
|
-
.aplayer-time
|
299
|
+
.aplayer-time
|
317
300
|
position absolute
|
318
301
|
width 100%
|
319
302
|
bottom 26px
|
@@ -325,16 +308,16 @@ body[data-type=music]
|
|
325
308
|
bottom -40px
|
326
309
|
align-items center
|
327
310
|
|
328
|
-
.aplayer-icon
|
311
|
+
.aplayer-icon
|
329
312
|
width 1.8rem
|
330
313
|
height 1.8rem
|
331
314
|
margin-left 16px
|
332
315
|
|
333
|
-
path
|
316
|
+
path
|
334
317
|
fill var(--efu-white)
|
335
318
|
opacity 0.8
|
336
319
|
|
337
|
-
.aplayer-time-inner
|
320
|
+
.aplayer-time-inner
|
338
321
|
margin-right 18px
|
339
322
|
margin-top -8px
|
340
323
|
|
@@ -343,7 +326,7 @@ body[data-type=music]
|
|
343
326
|
width 100%
|
344
327
|
margin-right 4px
|
345
328
|
margin-top -60px
|
346
|
-
|
329
|
+
|
347
330
|
.aplayer-dtime
|
348
331
|
position absolute
|
349
332
|
right 30px
|
@@ -352,7 +335,7 @@ body[data-type=music]
|
|
352
335
|
position absolute
|
353
336
|
left 44px
|
354
337
|
|
355
|
-
.aplayer-icon-back
|
338
|
+
.aplayer-icon-back
|
356
339
|
position absolute
|
357
340
|
left 0
|
358
341
|
display inline
|
@@ -361,7 +344,7 @@ body[data-type=music]
|
|
361
344
|
margin auto
|
362
345
|
right 110px
|
363
346
|
|
364
|
-
.aplayer-icon-play
|
347
|
+
.aplayer-icon-play
|
365
348
|
position absolute
|
366
349
|
left 40px
|
367
350
|
display inline
|
@@ -373,7 +356,7 @@ body[data-type=music]
|
|
373
356
|
width 56px
|
374
357
|
height 56px
|
375
358
|
|
376
|
-
.aplayer-icon-forward
|
359
|
+
.aplayer-icon-forward
|
377
360
|
position absolute
|
378
361
|
left 80px
|
379
362
|
display inline
|
@@ -399,7 +382,7 @@ body[data-type=music]
|
|
399
382
|
height 24px
|
400
383
|
opacity 0.4
|
401
384
|
|
402
|
-
.aplayer-icon-menu
|
385
|
+
.aplayer-icon-menu
|
403
386
|
display none
|
404
387
|
|
405
388
|
+maxWidth798()
|
@@ -411,7 +394,7 @@ body[data-type=music]
|
|
411
394
|
height 24px
|
412
395
|
opacity 0.4
|
413
396
|
|
414
|
-
.aplayer-list
|
397
|
+
.aplayer-list
|
415
398
|
width 40%
|
416
399
|
max-width 480px
|
417
400
|
max-height none !important
|
@@ -422,7 +405,7 @@ body[data-type=music]
|
|
422
405
|
position fixed
|
423
406
|
z-index 1002
|
424
407
|
width 100%
|
425
|
-
bottom
|
408
|
+
bottom 0
|
426
409
|
left 0
|
427
410
|
background var(--efu-white)
|
428
411
|
border-radius 16px 16px 0 0
|
@@ -440,10 +423,10 @@ body[data-type=music]
|
|
440
423
|
overflow inherit
|
441
424
|
|
442
425
|
&:after,
|
443
|
-
&:before
|
426
|
+
&:before
|
444
427
|
display none
|
445
428
|
|
446
|
-
.aplayer-lrc-contents
|
429
|
+
.aplayer-lrc-contents
|
447
430
|
width 90%
|
448
431
|
margin-left auto
|
449
432
|
transition all .5s cubic-bezier(0.49, 0.21, 0.22, 0.84)
|
@@ -452,28 +435,28 @@ body[data-type=music]
|
|
452
435
|
+maxWidth798()
|
453
436
|
width 100%
|
454
437
|
|
455
|
-
.aplayer-info
|
456
|
-
.aplayer-controller
|
457
|
-
.aplayer-bar-wrap
|
458
|
-
.aplayer-bar
|
438
|
+
.aplayer-info
|
439
|
+
.aplayer-controller
|
440
|
+
.aplayer-bar-wrap
|
441
|
+
.aplayer-bar
|
459
442
|
height 8px
|
460
443
|
border-radius 8px
|
461
444
|
background var(--efu-white-op)
|
462
445
|
|
463
|
-
.aplayer-loaded
|
446
|
+
.aplayer-loaded
|
464
447
|
background var(--efu-white-op)
|
465
448
|
height 8px
|
466
449
|
border-radius 8px
|
467
450
|
|
468
|
-
.aplayer-played
|
451
|
+
.aplayer-played
|
469
452
|
height 8px
|
470
453
|
border-radius 8px
|
471
454
|
|
472
|
-
.aplayer-thumb
|
455
|
+
.aplayer-thumb
|
473
456
|
height 16px
|
474
457
|
width 16px
|
475
458
|
|
476
|
-
.aplayer-time
|
459
|
+
.aplayer-time
|
477
460
|
color var(--efu-white)
|
478
461
|
|
479
462
|
|
@@ -499,7 +482,7 @@ body[data-type=music]
|
|
499
482
|
|
500
483
|
.aplayer-icon-volume-down
|
501
484
|
display block
|
502
|
-
|
485
|
+
|
503
486
|
+maxWidth798()
|
504
487
|
display none
|
505
488
|
|
package/source/js/main.js
CHANGED
package/source/js/music.js
CHANGED