hexo-theme-solitude 1.5.11 → 1.6.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.
Files changed (99) hide show
  1. package/.github/logo.svg +44 -10
  2. package/README.md +22 -2
  3. package/README_zh-cn.md +22 -2
  4. package/README_zh-tw.md +22 -2
  5. package/_config.yml +87 -71
  6. package/layout/includes/footer.pug +1 -1
  7. package/layout/includes/inject/head.pug +1 -2
  8. package/layout/includes/loading.pug +1 -1
  9. package/layout/includes/widgets/home/banner.pug +1 -1
  10. package/layout/includes/widgets/home/categoryGroup.pug +0 -1
  11. package/layout/includes/widgets/home/postList.pug +74 -29
  12. package/layout/includes/widgets/nav/group.pug +1 -1
  13. package/layout/page.pug +1 -1
  14. package/package.json +1 -1
  15. package/plugins.yml +0 -4
  16. package/scripts/event/cdn.js +4 -4
  17. package/scripts/event/merge_config.js +9 -1
  18. package/scripts/event/welcome.js +2 -2
  19. package/scripts/filter/checkThemeConfig.js +2 -2
  20. package/scripts/filter/default.js +4 -2
  21. package/scripts/filter/lazyload.js +18 -5
  22. package/scripts/filter/randomPosts.js +1 -1
  23. package/scripts/helper/stylus.js +8 -14
  24. package/source/css/_global/index.styl +362 -1
  25. package/source/css/_layout/aside.styl +751 -0
  26. package/source/css/_layout/capsule.styl +213 -0
  27. package/source/css/_layout/fullpage.styl +47 -0
  28. package/source/css/_layout/keyboard.styl +60 -0
  29. package/source/css/_layout/pace.styl +40 -0
  30. package/source/css/_layout/rightmenu.styl +79 -0
  31. package/source/css/_layout/universe.styl +18 -0
  32. package/source/css/_page/_home/home-top.styl +1 -3
  33. package/source/css/_page/_home/recent-post.styl +407 -170
  34. package/source/css/_page/douban.styl +111 -109
  35. package/source/css/_page/share.styl +1 -17
  36. package/source/css/{_widgets/_post → _post}/content.styl +0 -3
  37. package/source/css/index.styl +20 -5
  38. package/source/css/third_party/snackbar.min.css +1 -0
  39. package/source/css/{_global/var.styl → var.styl} +7 -1
  40. package/source/img/avatar.png +0 -0
  41. package/source/img/default.png +0 -0
  42. package/source/img/pwa/favicon.ico +0 -0
  43. package/source/img/pwa/favicon_128.ico +0 -0
  44. package/source/img/pwa/favicon_16.ico +0 -0
  45. package/source/img/pwa/favicon_256.ico +0 -0
  46. package/source/img/pwa/favicon_32.ico +0 -0
  47. package/source/js/main.js +1 -0
  48. package/layout/includes/recent-posts.pug +0 -9
  49. package/source/css/_layout/basic.styl +0 -308
  50. package/source/css/_layout/index.styl +0 -125
  51. package/source/css/_widgets/_aside/allinfo.styl +0 -168
  52. package/source/css/_widgets/_aside/flip.styl +0 -67
  53. package/source/css/_widgets/_aside/index.styl +0 -90
  54. package/source/css/_widgets/_aside/info.styl +0 -263
  55. package/source/css/_widgets/_aside/newPost.styl +0 -61
  56. package/source/css/_widgets/_aside/toc.styl +0 -108
  57. package/source/css/_widgets/_aside/welcome.styl +0 -14
  58. package/source/css/_widgets/_extra/fullpage.styl +0 -46
  59. package/source/css/_widgets/_extra/music.styl +0 -218
  60. package/source/css/_widgets/_extra/pace.styl +0 -39
  61. package/source/css/_widgets/_extra/rightmenu.styl +0 -78
  62. package/source/css/_widgets/_mixins/keyboard.styl +0 -59
  63. package/source/css/_widgets/index.styl +0 -56
  64. package/source/img/logo.png +0 -0
  65. /package/source/css/{_widgets/_comment → _comments}/index.styl +0 -0
  66. /package/source/css/{_widgets/_comment → _comments}/twikoo.styl +0 -0
  67. /package/source/css/{_widgets/_comment → _comments}/waline.styl +0 -0
  68. /package/source/css/{_widgets/_mixins → _layout}/article-sort.styl +0 -0
  69. /package/source/css/{_widgets/_extra → _layout}/console.styl +0 -0
  70. /package/source/css/{_widgets/_mixins → _layout}/footer.styl +0 -0
  71. /package/source/css/{_widgets/_mixins → _layout}/other.styl +0 -0
  72. /package/source/css/{_widgets/_mixins → _layout}/sidebar.styl +0 -0
  73. /package/source/css/{_widgets/_post → _post}/commentBarrage.styl +0 -0
  74. /package/source/css/{_widgets/_post → _post}/copyright.styl +0 -0
  75. /package/source/css/{_widgets/_post → _post}/index.styl +0 -0
  76. /package/source/css/{_widgets/_post → _post}/meta.styl +0 -0
  77. /package/source/css/{_widgets/_post → _post}/pagination.styl +0 -0
  78. /package/source/css/{_widgets/_post → _post}/postAI.styl +0 -0
  79. /package/source/css/{_widgets/_post → _post}/relatedPost.styl +0 -0
  80. /package/source/css/{_widgets/_post → _post}/tools.styl +0 -0
  81. /package/source/css/{_widgets/_search → _search}/algolia-search.styl +0 -0
  82. /package/source/css/{_widgets/_search → _search}/local-search.styl +0 -0
  83. /package/source/css/{_widgets/_tags → _tags}/button.styl +0 -0
  84. /package/source/css/{_widgets/_tags → _tags}/checkbox.styl +0 -0
  85. /package/source/css/{_widgets/_tags → _tags}/fold.styl +0 -0
  86. /package/source/css/{_widgets/_tags → _tags}/gallery.styl +0 -0
  87. /package/source/css/{_widgets/_tags → _tags}/index.styl +0 -0
  88. /package/source/css/{_widgets/_tags → _tags}/label.styl +0 -0
  89. /package/source/css/{_widgets/_tags → _tags}/link.styl +0 -0
  90. /package/source/css/{_widgets/_tags → _tags}/media.styl +0 -0
  91. /package/source/css/{_widgets/_tags → _tags}/mermaid.styl +0 -0
  92. /package/source/css/{_widgets/_tags → _tags}/note.styl +0 -0
  93. /package/source/css/{_widgets/_tags → _tags}/span.styl +0 -0
  94. /package/source/css/{_widgets/_tags → _tags}/tabs.styl +0 -0
  95. /package/source/css/{_widgets/_tags → _tags}/timeline.styl +0 -0
  96. /package/source/js/{lately.min.js → third_party/lately.min.js} +0 -0
  97. /package/source/js/{sco-ai.min.js → third_party/sco-ai.min.js} +0 -0
  98. /package/source/js/{universe.min.js → third_party/universe.min.js} +0 -0
  99. /package/source/js/{waterfall.min.js → third_party/waterfall.min.js} +0 -0
@@ -1,6 +1,236 @@
1
- #recent-posts
2
- position relative
3
- +minWidth1300()
1
+ if hexo-config('index_post_list.direction') == "column"
2
+ #recent-posts
3
+ position relative
4
+ +minWidth1300()
5
+ display flex
6
+ flex-wrap wrap
7
+ justify-content space-between
8
+ align-items flex-start
9
+ align-content flex-start
10
+ user-select none
11
+ transition width .3s
12
+
13
+ +maxWidth768()
14
+ padding 0 1rem
15
+
16
+ > .recent-post-item
17
+ box-shadow var(--efu-shadow-light2black)
18
+ display flex
19
+ align-items center
20
+ animation slide-in .6s .4s backwards
21
+ transition all .3s ease 0s
22
+ overflow hidden
23
+ height fit-content
24
+ background var(--efu-card-bg)
25
+ border-radius 12px
26
+ cursor pointer
27
+ border var(--style-border)
28
+ margin 1rem 0 1rem
29
+
30
+ +minWidth1300()
31
+ flex-direction column
32
+ width calc(100% / 2 - .5rem)
33
+ margin-top .25rem
34
+ margin-bottom .75rem
35
+ box-shadow var(--efu-shadow-border)
36
+
37
+ +maxWidth768()
38
+ margin 1.5rem 0
39
+ border-radius 12px
40
+ margin-top 0.5rem
41
+ border var(--style-border-always)
42
+ box-shadow var(--efu-shadow-border)
43
+ display block
44
+ position relative
45
+ clip-path inset(0 0 0 0 round 12px)
46
+
47
+ &:hover
48
+ box-shadow var(--efu-shadow-main)
49
+ border var(--style-border-hover)
50
+
51
+ .post_cover img.post_bg
52
+ transform scale(1.03)
53
+ transition .3s ease-in-out
54
+ filter brightness(.85)
55
+
56
+ .recent-post-info-top .article-title
57
+ color var(--efu-theme)
58
+
59
+ if hexo-config('google_adsense.enable')
60
+ + .google-ads-warp
61
+ iframe
62
+ width: 100% !important
63
+ height: 100% !important
64
+ border: none !important
65
+
66
+ .post_cover
67
+ position relative
68
+ transition 1s
69
+ width 100%
70
+ overflow hidden
71
+ height 100%
72
+
73
+ +minWidth1300()
74
+ height 225px
75
+
76
+ +maxWidth1300()
77
+ width 75%
78
+ display flex
79
+ height 220px
80
+
81
+ +maxWidth768()
82
+ width 100%
83
+ height 170px
84
+ border-radius 5px 8px 0 0
85
+
86
+ a
87
+ min-width 100%
88
+ min-height 100%
89
+
90
+ img.post_bg
91
+ width 100%
92
+ height 100%
93
+ transition all .6s ease 0s
94
+ object-fit cover
95
+
96
+ +maxWidth1300()
97
+ min-width 100%
98
+ -webkit-backface-visibility hidden
99
+ -webkit-transform-style preserve-3d
100
+ min-height 100%
101
+ user-select none
102
+
103
+ +maxWidth768()
104
+ border-radius: 12px 12px 0 0
105
+
106
+ > .recent-post-info
107
+ height 174px
108
+ width 100%
109
+ cursor pointer
110
+ position relative
111
+ padding 0
112
+ display inline-block
113
+ overflow hidden
114
+
115
+ .content
116
+ -webkit-line-clamp 2
117
+ display -webkit-box
118
+ overflow hidden
119
+ -webkit-box-orient vertical
120
+ padding 5px 32px
121
+ color var(--efu-gray)
122
+ font-size 14px
123
+ line-height 1.8
124
+
125
+ span.tags-punctuation
126
+ transition .3s
127
+
128
+ &:hover
129
+ color var(--efu-main)
130
+
131
+ .recent-post-info-top
132
+ position relative
133
+ transition .3s
134
+ padding 0 32px
135
+ width 100%
136
+
137
+ .article-title
138
+ line-height 30px
139
+ margin-top 0
140
+ font-weight 700
141
+ margin-bottom 0
142
+ width 100%
143
+ transition .3s
144
+ font-size 1rem
145
+ -webkit-line-clamp 2
146
+ display -webkit-box
147
+ overflow hidden
148
+ -webkit-box-orient vertical
149
+
150
+ .recent-post-info-top-tips
151
+ display flex
152
+ margin-top 20px
153
+ user-select none
154
+
155
+ > .sticky-warp
156
+ display flex
157
+ position relative
158
+ margin-right 8px
159
+ justify-content center
160
+ align-items center
161
+ font-size 0.5rem
162
+
163
+ i
164
+ font-size .5rem
165
+ margin-right 3px
166
+
167
+ .original
168
+ display flex
169
+ color var(--efu-secondtext)
170
+ font-size .5rem
171
+ position relative
172
+ margin-right 8px
173
+
174
+ .unvisited-post
175
+ display flex
176
+ color var(--efu-secondtext)
177
+ font-size .5rem
178
+ position relative
179
+
180
+ &:visited
181
+ color var(--efu-card-bg)
182
+
183
+ /.article-meta-wrap
184
+ position absolute
185
+ bottom 16px
186
+ transition .3s
187
+ display flex
188
+ flex-direction row
189
+ flex-wrap nowrap
190
+ justify-content space-between
191
+ width 100%
192
+ left 0
193
+ padding 0 32px
194
+ white-space nowrap
195
+ color var(--efu-fontcolor)
196
+ font-size .7rem
197
+
198
+ > .article-meta
199
+ margin 0 8px 0 0
200
+ white-space nowrap
201
+ overflow hidden
202
+ text-overflow ellipsis
203
+ display flex
204
+
205
+ > .article-meta__tags
206
+ margin-right 8px
207
+ padding 0 .2rem 0 0
208
+ color var(--efu-fontcolor)
209
+
210
+ > .post-meta-date
211
+ right 0
212
+ text-align right
213
+
214
+ i
215
+ display none
216
+
217
+ .article-meta__separator
218
+ display none
219
+
220
+ a:hover
221
+ background-color var(--efu-none)
222
+ color var(--efu-lighttext)
223
+ cursor pointer
224
+ border-radius 4px
225
+
226
+ i
227
+ margin 0 .4rem 0 0
228
+
229
+ .sticky
230
+ color var(--efu-fontcolor)
231
+ else if hexo-config('index_post_list.direction') == "row"
232
+ #recent-posts
233
+ position relative
4
234
  display flex
5
235
  flex-wrap wrap
6
236
  justify-content space-between
@@ -9,211 +239,218 @@
9
239
  user-select none
10
240
  transition width .3s
11
241
 
12
- +maxWidth768()
13
- padding 0 1rem
14
-
15
- > .recent-post-item
16
- box-shadow var(--efu-shadow-light2black)
17
- display flex
18
- align-items center
19
- animation slide-in .6s .4s backwards
20
- transition all .3s ease 0s
21
- overflow hidden
22
- height fit-content
23
- background var(--efu-card-bg)
24
- border-radius 12px
25
- cursor pointer
26
- border var(--style-border)
27
- margin 1rem 0 1rem
242
+ +maxWidth768()
243
+ padding 0 1rem
28
244
 
29
- +minWidth1300()
30
- flex-direction column
31
- width calc(100% / 2 - .5rem)
245
+ > .recent-post-item
246
+ display flex
247
+ align-items center
248
+ animation slide-in .6s .4s backwards
249
+ transition all .3s ease 0s
250
+ overflow hidden
251
+ height fit-content
252
+ background var(--efu-card-bg)
253
+ border-radius 12px
254
+ cursor pointer
255
+ border var(--style-border)
256
+ margin 1rem 0 1rem
257
+ flex-direction row
258
+ width 100%
32
259
  margin-top .25rem
33
260
  margin-bottom .75rem
34
261
  box-shadow var(--efu-shadow-border)
35
262
 
36
- +maxWidth768()
37
- margin 1.5rem 0
38
- border-radius 12px
39
- margin-top 0.5rem
40
- border var(--style-border-always)
41
- box-shadow var(--efu-shadow-border)
42
- display block
43
- position relative
44
- clip-path inset(0 0 0 0 round 12px)
45
-
46
- &:hover
47
- box-shadow var(--efu-shadow-main)
48
- border var(--style-border-hover)
49
-
50
- .post_cover img.post_bg
51
- transform scale(1.03)
52
- transition .3s ease-in-out
53
- filter brightness(.85)
54
-
55
- .recent-post-info-top .article-title
56
- color var(--efu-theme)
57
-
58
- if hexo-config('google_adsense.enable')
59
- + .google-ads-warp
60
- iframe
61
- width: 100% !important
62
- height: 100% !important
63
- border: none !important
64
-
65
- .post_cover
66
- position relative
67
- transition 1s
68
- width 100%
69
- overflow hidden
70
- height 100%
263
+ +maxWidth768()
264
+ margin 1.5rem 0
265
+ border-radius 12px
266
+ margin-top 0.5rem
267
+ border var(--style-border-always)
268
+ box-shadow var(--efu-shadow-border)
269
+ flex-direction column
270
+ position relative
271
+ clip-path inset(0 0 0 0 round 12px)
71
272
 
72
- +minWidth1300()
73
- height 225px
273
+ &:hover
274
+ box-shadow var(--efu-shadow-main)
275
+ border var(--style-border-hover)
276
+
277
+ .post_cover img.post_bg
278
+ transform scale(1.03)
279
+ transition .3s ease-in-out
280
+ filter brightness(.85)
281
+
282
+ .recent-post-info-top .article-title
283
+ color var(--efu-theme)
74
284
 
75
- +maxWidth1300()
285
+ if hexo-config('google_adsense.enable')
286
+ + .google-ads-warp
287
+ iframe
288
+ width: 100% !important
289
+ height: 100% !important
290
+ border: none !important
291
+
292
+ .post_cover
293
+ position relative
294
+ transition 1s
295
+ overflow hidden
76
296
  width 75%
77
297
  display flex
78
298
  height 220px
79
299
 
80
- +maxWidth768()
81
- width 100%
82
- height 170px
83
- border-radius 5px 8px 0 0
84
-
85
- a
86
- min-width 100%
87
- min-height 100%
300
+ +maxWidth768()
301
+ width 100%
302
+ height 170px
303
+ border-radius 5px 8px 0 0
304
+ order 1
88
305
 
89
- img.post_bg
90
- width 100%
91
- height 100%
92
- transition all .6s ease 0s
93
- object-fit cover
306
+ a
307
+ min-width 100%
308
+ min-height 100%
94
309
 
95
- +maxWidth1300()
310
+ img.post_bg
311
+ width 100%
312
+ height 100%
313
+ transition all .6s ease 0s
314
+ object-fit cover
96
315
  min-width 100%
97
316
  -webkit-backface-visibility hidden
98
317
  -webkit-transform-style preserve-3d
99
318
  min-height 100%
100
319
  user-select none
101
320
 
102
- +maxWidth768()
103
- border-radius: 12px 12px 0 0
321
+ +maxWidth768()
322
+ border-radius: 12px 12px 0 0
104
323
 
105
- > .recent-post-info
106
- height 174px
107
- width 100%
108
- cursor pointer
109
- position relative
110
- padding 0
111
- display inline-block
112
- overflow hidden
113
-
114
- span.tags-punctuation
115
- transition .3s
116
-
117
- &:hover
118
- color var(--efu-main)
119
-
120
- .recent-post-info-top
121
- position relative
122
- transition .3s
123
- padding 0 32px
324
+ > .recent-post-info
325
+ height 174px
124
326
  width 100%
327
+ cursor pointer
328
+ position relative
329
+ padding 0
330
+ display inline-block
331
+ overflow hidden
332
+ +maxWidth768()
333
+ order 2
125
334
 
126
- .article-title
127
- line-height 30px
128
- margin-top 0
129
- font-weight 700
130
- margin-bottom 0
131
- width 100%
132
- transition .3s
133
- font-size 1rem
134
- -webkit-line-clamp 2
335
+ .content
336
+ -webkit-line-clamp 3
135
337
  display -webkit-box
136
338
  overflow hidden
137
339
  -webkit-box-orient vertical
340
+ padding 5px 32px
341
+ color var(--efu-gray)
342
+ font-size 14px
343
+ line-height 1.8
344
+ +maxWidth768()
345
+ -webkit-line-clamp 2
346
+
347
+ span.tags-punctuation
348
+ transition .3s
138
349
 
139
- .recent-post-info-top-tips
140
- display flex
141
- margin-top 20px
142
- user-select none
350
+ &:hover
351
+ color var(--efu-main)
352
+
353
+ .recent-post-info-top
354
+ position relative
355
+ transition .3s
356
+ padding 0 32px
357
+ width 100%
143
358
 
144
- > .sticky-warp
359
+ .article-title
360
+ line-height 30px
361
+ margin-top 0
362
+ font-weight 700
363
+ margin-bottom 0
364
+ width 100%
365
+ transition .3s
366
+ font-size 1rem
367
+ -webkit-line-clamp 2
368
+ display -webkit-box
369
+ overflow hidden
370
+ -webkit-box-orient vertical
371
+
372
+ .recent-post-info-top-tips
145
373
  display flex
146
- position relative
147
- margin-right 8px
148
- justify-content center
149
- align-items center
150
- font-size 0.5rem
374
+ user-select none
375
+
376
+ +maxWidth768()
377
+ margin-top 20px
378
+
379
+ > .sticky-warp
380
+ display flex
381
+ position relative
382
+ margin-right 8px
383
+ justify-content center
384
+ align-items center
385
+ font-size 0.5rem
386
+
387
+ i
388
+ font-size .5rem
389
+ margin-right 3px
390
+
391
+ .original
392
+ display flex
393
+ color var(--efu-secondtext)
394
+ font-size .5rem
395
+ position relative
396
+ margin-right 8px
151
397
 
152
- i
398
+ .unvisited-post
399
+ display flex
400
+ color var(--efu-secondtext)
153
401
  font-size .5rem
154
- margin-right 3px
402
+ position relative
155
403
 
156
- .original
157
- display flex
158
- color var(--efu-secondtext)
159
- font-size .5rem
160
- position relative
161
- margin-right 8px
404
+ &:visited
405
+ color var(--efu-card-bg)
162
406
 
163
- .unvisited-post
407
+ /.article-meta-wrap
408
+ position absolute
409
+ bottom 0
410
+ transition .3s
411
+ display flex
412
+ flex-direction row
413
+ flex-wrap nowrap
414
+ justify-content space-between
415
+ width 100%
416
+ left 0
417
+ padding 0 32px
418
+ white-space nowrap
419
+ color var(--efu-fontcolor)
420
+ font-size .7rem
421
+ +maxWidth768()
422
+ bottom 16px
423
+
424
+ > .article-meta
425
+ margin 0 8px 0 0
426
+ white-space nowrap
427
+ overflow hidden
428
+ text-overflow ellipsis
164
429
  display flex
165
- color var(--efu-secondtext)
166
- font-size .5rem
167
- position relative
168
-
169
- &:visited
170
- color var(--efu-card-bg)
171
430
 
172
- /.article-meta-wrap
173
- position absolute
174
- bottom 16px
175
- transition .3s
176
- display flex
177
- flex-direction row
178
- flex-wrap nowrap
179
- justify-content space-between
180
- width 100%
181
- left 0
182
- padding 0 32px
183
- white-space nowrap
184
- color var(--efu-fontcolor)
185
- font-size .7rem
186
-
187
- > .article-meta
188
- margin 0 8px 0 0
189
- white-space nowrap
190
- overflow hidden
191
- text-overflow ellipsis
192
- display flex
431
+ > .article-meta__tags
432
+ margin-right 8px
433
+ padding 0 .2rem 0 0
434
+ color var(--efu-fontcolor)
193
435
 
194
- > .article-meta__tags
195
- margin-right 8px
196
- padding 0 .2rem 0 0
197
- color var(--efu-fontcolor)
436
+ > .post-meta-date
437
+ right 0
438
+ text-align right
198
439
 
199
- > .post-meta-date
200
- right 0
201
- text-align right
440
+ i
441
+ display none
202
442
 
203
- i
443
+ .article-meta__separator
204
444
  display none
205
445
 
206
- .article-meta__separator
207
- display none
446
+ a:hover
447
+ background-color var(--efu-none)
448
+ color var(--efu-lighttext)
449
+ cursor pointer
450
+ border-radius 4px
208
451
 
209
- a:hover
210
- background-color var(--efu-none)
211
- color var(--efu-lighttext)
212
- cursor pointer
213
- border-radius 4px
214
-
215
- i
216
- margin 0 .4rem 0 0
452
+ i
453
+ margin 0 .4rem 0 0
217
454
 
218
- .sticky
219
- color var(--efu-fontcolor)
455
+ .sticky
456
+ color var(--efu-fontcolor)