hexo-theme-solitude 1.4.7 → 1.5.1

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 (62) hide show
  1. package/CONTRIBUTING.md +16 -3
  2. package/README.md +2 -2
  3. package/README_EN.md +2 -2
  4. package/_config.yml +115 -186
  5. package/languages/en-US.yml +0 -1
  6. package/languages/zh-CN.yml +0 -1
  7. package/languages/zh-TW.yml +0 -1
  8. package/layout/includes/footer.pug +8 -6
  9. package/layout/includes/inject/body.pug +0 -2
  10. package/layout/includes/inject/head.pug +5 -3
  11. package/layout/includes/nav.pug +3 -3
  12. package/layout/includes/sidebar.pug +1 -1
  13. package/layout/includes/widgets/aside/asideInfoCard.pug +4 -3
  14. package/layout/includes/widgets/home/banner.pug +11 -4
  15. package/layout/includes/widgets/home/categoryGroup.pug +12 -8
  16. package/layout/includes/widgets/home/hometop.pug +1 -2
  17. package/layout/includes/widgets/home/postList.pug +2 -2
  18. package/layout/includes/widgets/nav/group.pug +13 -0
  19. package/layout/includes/widgets/nav/menu.pug +20 -16
  20. package/layout/includes/widgets/page/about/award.pug +1 -1
  21. package/layout/includes/widgets/page/equipment/content.pug +1 -1
  22. package/layout/includes/widgets/page/links/linksCard.pug +0 -1
  23. package/layout/includes/widgets/third-party/comments/waline.pug +2 -0
  24. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +2 -2
  25. package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
  26. package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -1
  27. package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
  28. package/layout/index.pug +6 -6
  29. package/package.json +1 -1
  30. package/plugins.yml +0 -5
  31. package/scripts/helper/stylus.js +28 -1
  32. package/source/css/_global/animation.styl +6 -0
  33. package/source/css/_layout/basic.styl +10 -1
  34. package/source/css/_layout/header.styl +5 -5
  35. package/source/css/_layout/index.styl +0 -1
  36. package/source/css/_page/_about/skills.styl +1 -1
  37. package/source/css/_page/_home/category-bar.styl +14 -14
  38. package/source/css/_page/_home/home-top.styl +57 -45
  39. package/source/css/_page/_home/recent-post.styl +1 -1
  40. package/source/css/_page/equipment.styl +3 -2
  41. package/source/css/_page/home.styl +0 -15
  42. package/source/css/_page/links.styl +9 -8
  43. package/source/css/_page/says.styl +1 -2
  44. package/source/css/_page/share.styl +30 -67
  45. package/source/css/_widgets/_aside/flip.styl +3 -6
  46. package/source/css/_widgets/_aside/index.styl +1 -1
  47. package/source/css/_widgets/_aside/info.styl +1 -1
  48. package/source/css/_widgets/_comment/twikoo.styl +4 -6
  49. package/source/css/_widgets/_comment/waline.styl +435 -72
  50. package/source/css/_widgets/_extra/console.styl +2 -1
  51. package/source/css/_widgets/_extra/fullpage.styl +1 -1
  52. package/source/css/_widgets/_mixins/footer.styl +4 -2
  53. package/source/css/_widgets/_post/content.styl +1 -11
  54. package/source/css/_widgets/_post/copyright.styl +2 -2
  55. package/source/css/_widgets/_post/meta.styl +2 -2
  56. package/source/css/_widgets/_post/relatedPost.styl +1 -1
  57. package/source/css/_widgets/_post/tools.styl +1 -1
  58. package/source/css/_widgets/_search/algolia-search.styl +4 -2
  59. package/source/css/_widgets/_tags/note.styl +4 -0
  60. package/source/js/main.js +27 -35
  61. package/source/js/sco-ai.min.js +1 -1
  62. package/layout/includes/widgets/nav/left.pug +0 -10
@@ -1,91 +1,454 @@
1
+ // 用了记得给我的主题点个star喔😍
1
2
  #comment
2
- .wl-sort li
3
- color var(--sco-gray)
3
+ .wl-comment
4
+ position relative
4
5
 
5
- &.active
6
- color var(--sco-main) !important
6
+ .wl-panel
7
+ flex 1
8
+ display flex
9
+ flex-direction column
7
10
 
8
- .wl-comment
9
- .wl-panel
10
- margin 0 !important
11
-
12
- .wl-avatar
13
- margin-right 1rem
14
-
15
- a
16
- img
17
- flex-shrink 0
18
- overflow hidden
19
- text-align center
20
- border-radius 65px
21
-
22
- .wl-footer
23
- .wl-info
24
- button
25
- background-color var(--sco-card-bg)
26
- border var(--style-border-always)
27
- color var(--sco-fontcolor)
28
-
29
- button:hover
30
- background-color var(--sco-main)
31
- border-color var(--sco-main)
32
- color var(--sco-card-bg)
33
-
34
- #wl-edit
35
- font-size 13px
36
- line-height 1.5
37
- margin .75rem .25rem
11
+ .wl-editor
12
+ order 0
13
+ transition all .3s ease 0s
14
+ position relative
15
+ display inline-block
16
+ width 100%
17
+ vertical-align bottom
18
+ font-size 14px
19
+ min-height 8.75em
20
+ background-color var(--sco-card-bg)
21
+ resize vertical
22
+ line-height 1.5
23
+ box-sizing border-box
24
+ background var(--sco-secondbg)
25
+ color var(--sco-fontcolor)
26
+ border-radius 12px
27
+ padding 16px 16px 40px 16px
28
+ border var(--style-border-always)
29
+ box-shadow none
38
30
 
39
- .wl-action
31
+ &:focus
32
+ outline none
33
+ border var(--style-border-hover-always)
34
+ box-shadow var(--sco-shadow-main)
35
+
36
+ .wl-footer
37
+ position relative
38
+ margin 0
39
+ justify-content space-around
40
+
41
+ .wl-emoji-popup
42
+ display none
43
+ position absolute
44
+ left 0
45
+ right 0
46
+ overflow hidden
47
+ max-width 500px
48
+ color #4a4a4a
49
+ top .5rem
50
+ z-index 1000
51
+ border var(--style-border-always)
52
+ border-radius 8px !important
53
+ background-color var(--sco-maskbg)
54
+ backdrop-filter saturate(180%) blur(10px)
55
+ transform translateZ(0)
56
+ animation 0.3s ease 0.1s 1 normal both running donate_effcet
57
+
58
+ button
59
+ font-size 20px
60
+ line-height 19px
61
+ list-style-type none
62
+ padding 5px 10px
63
+ border-radius 5px
64
+ display inline-block
40
65
  transition .3s
66
+ text-align center
67
+
68
+ &.display
69
+ display block
70
+
71
+ .wl-tab-wrapper
72
+ max-height 197px
73
+ padding 10px
74
+ padding-right 0
75
+ overflow auto
76
+ font-size 0
77
+ margin 12px 8px
78
+ min-height 197px
79
+
80
+ .wl-tabs
81
+ margin 0
82
+ padding 0
83
+ font-size 0
84
+ background var(--sco-background)
85
+ padding-left 8px
86
+
87
+
88
+ .wl-actions
89
+ flex 1
90
+ display flex
91
+ align-items center
92
+ position absolute
93
+ top -34px
94
+ left 17px
95
+ transition all .3s ease 0s
96
+
97
+ .wl-action
98
+ display none
99
+ cursor pointer
41
100
 
42
101
  &:hover
43
- color var(--sco-main)
102
+ svg
103
+ opacity .8
104
+
105
+ &:nth-child(2)
106
+ display flex
107
+ margin-right 10px
108
+
109
+ &:nth-child(4)
110
+ display flex
111
+
112
+ .upload
113
+ display none
114
+
115
+ .wl-gif-popup
116
+ display none
117
+
118
+ .wl-info
119
+ position relative
120
+
121
+ .wl-text-number
122
+ color var(--sco-secondtext)
123
+ -webkit-user-select none
124
+ position absolute
125
+ font-size 12px
126
+ bottom 5px
127
+ right 10px
128
+
129
+ .wl-close
130
+ display none
131
+
132
+ .wl-quote
133
+ .wl-card-item
134
+ padding 1rem 0 0
135
+
136
+ .wl-reply-wrapper
137
+ order 2
138
+ width 100%
139
+
140
+ .wl-header
141
+ order 1
142
+ width calc(100% - 5.5rem)
143
+ display flex
144
+ align-items center
145
+ justify-content space-between
146
+ flex-direction row
147
+ margin .5rem 0
148
+ gap .5rem
149
+
150
+ +maxWidth899()
151
+ flex-direction column
152
+
153
+ .wl-header-item
154
+ width calc((100% - 1rem) / 3)
155
+ border-radius 12px
156
+ background var(--sco-secondbg)
157
+ border var(--style-border-always)
158
+ display inline-table
159
+ line-height normal
160
+ font-size 13px
161
+ border-collapse separate
162
+ border-spacing 0
163
+
164
+ +maxWidth899()
165
+ width 100%
166
+
167
+ label
168
+ -webkit-user-select none
169
+ border-radius 10px 0 0 10px
170
+ background-clip padding-box
171
+ padding 0 1rem
172
+ vertical-align middle
173
+ display table-cell
174
+ position relative
175
+ background var(--sco-card-bg)
176
+
177
+ input
178
+ vertical-align middle
179
+ display table-cell
180
+ height 32px
181
+ line-height 32px
182
+ border-radius 12px
183
+ padding 8px
184
+ padding-left 16px
185
+ border-left-width 0
186
+ font-size inherit
187
+ background var(--sco-secondbg)
188
+ border none
189
+ color var(--sco-fontcolor)
190
+
191
+ &:focus
192
+ outline none
193
+ border none
194
+
195
+ .wl-btn
196
+ border-color var(--sco-fontcolor)
197
+ border-radius 12px
198
+ box-shadow var(--sco-shadow-black)
199
+ transition .3s
200
+ width 5rem
201
+ position absolute
202
+ margin-left 0.5rem
203
+ height 34px
204
+ background-color var(--sco-fontcolor)
205
+ border 0 solid var(--sco-main)
206
+ color var(--sco-background)
207
+ top 10px
208
+ right 0
209
+ opacity .2
210
+
211
+ +maxWidth899()
212
+ height 122px
213
+
214
+ &:hover
215
+ background var(--sco-main)
216
+ color var(--sco-white)
217
+
218
+ .wl-power
219
+ padding 0.5em 0
220
+ color var(--sco-gray)
221
+ font-size 0.8em
222
+ text-align end
44
223
 
45
- .wl-meta-head
46
- .wl-count
47
- color var(--sco-gray)
224
+ a
225
+ color var(--sco-fontcolor)
226
+
227
+ .wl-count
228
+ display none
229
+
230
+ .wl-sort
231
+ display flex
232
+ justify-content flex-start
233
+ align-items center
234
+ flex-direction row
235
+ gap 0.5rem
236
+ margin-bottom .5rem
237
+
238
+ li
239
+ cursor pointer
240
+ background var(--sco-secondbg)
241
+ transition 0.3s
242
+ border var(--style-border-always)
243
+ border-radius 8px
48
244
  font-size 14px
49
- font-weight normal
245
+ line-height 1
246
+ padding 8px 16px
247
+ display flex
248
+ justify-content center
249
+ align-items center
250
+ color var(--sco-fontcolor)
50
251
 
51
- .wl-cards
52
- font-size 16px !important
252
+ &:hover
253
+ background var(--sco-main)
254
+ color var(--sco-white)
255
+ transition 0.3s
256
+ border var(--style-border-hover-always)
53
257
 
54
- .wl-comment-actions
55
- button
56
- margin-right 15px
57
- font-size 18px
258
+ &.active
259
+ background var(--sco-lighttext)
260
+ color var(--sco-background)
58
261
 
59
- &:hover
60
- color var(--sco-main)
262
+ .wl-card-item
263
+ display flex
264
+ flex-direction row
265
+ word-break break-all
266
+ margin-top 0
267
+ margin-bottom 0.5rem
268
+ background var(--sco-card-bg)
269
+ transition .3s
270
+ border-radius 12px
271
+ border-top var(--style-border-dashed)
272
+ padding 1rem 1rem 1.5rem
273
+ overflow hidden
61
274
 
62
- .wl-head .wl-nick
63
- font-size 20px !important
64
- color var(--sco-lighttext)
65
- font-weight bolder
275
+ .wl-user
276
+ flex-shrink 0
277
+ text-align center
278
+ box-shadow var(--sco-shadow-border)
279
+ margin-right 16px
280
+ width 32px
281
+ height 32px
282
+ border-radius 32px
283
+ background-color rgba(144, 147, 153, 0.13)
284
+ cursor pointer
285
+ position relative
66
286
 
67
- .wl-meta > span
68
- background var(--sco-gray)
69
- border-radius 5px
70
- color var(--sco-card-bg)
71
- margin-right 5px
287
+ .verified-icon
288
+ position absolute
289
+ bottom -2px
290
+ right -5px
291
+
292
+ img
293
+ border-radius 32px
72
294
 
73
- .wl-user
295
+ &:hover
74
296
  img
75
- flex-shrink 0
76
- height 2.5rem
77
- width 2.5rem
78
- overflow hidden
79
- text-align center
80
- border-radius 2.5rem
81
- border var(--style-border-always)
297
+ transform rotate(360deg)
82
298
 
83
- .wl-empty
84
- font-size 16px
85
- color var(--sco-gray)
299
+ .wl-head
300
+ display flex
301
+ align-items center
302
+
303
+ .wl-nick
304
+ font-weight 700
305
+ color var(--sco-lighttext)
306
+ text-decoration none
307
+ font-size 1rem
308
+ line-height 32px
309
+
310
+ .wl-badge
311
+ color #67c23a
312
+ display inline-block
313
+ padding 0 0.5em
314
+ border-radius 4px
315
+ border 0 solid #e1f3d8
316
+ font-size .5rem
317
+ margin-left 4px
318
+ background-color #c0c23a21
319
+
320
+ .wl-time
321
+ color var(--sco-secondtext)
322
+ font-size .6rem
323
+ margin-left 0.5rem
324
+
325
+ .wl-comment-actions
326
+ display flex
327
+ align-items center
328
+ position absolute
329
+ right 40px
330
+ gap 0.5rem
331
+
332
+ button
333
+ color var(--sco-lighttext)
334
+ -webkit-user-select none
335
+ padding 0 12px 0 12px
336
+ transition .3s
337
+ border-radius 8px
338
+ background-color var(--sco-secondbg)
339
+ border var(--style-border-always)
340
+ display flex
341
+ justify-content center
342
+ align-items center
343
+
344
+ &:hover
345
+ background-color var(--sco-lighttext)
346
+ color var(--sco-card-bg)
86
347
 
87
- [data-waline] a
88
- color var(--sco-fontcolor) !important
348
+ &.wl-like
349
+ +maxWidth768()
350
+ display none
351
+
352
+ .wl-card
353
+ width 100%
354
+ display flex
355
+ flex-direction column
356
+
357
+ .wl-meta
358
+ order 2
359
+ margin .5rem 0
360
+
361
+ span
362
+ background var(--sco-secondbg)
363
+ border var(--style-border-always)
364
+ padding 1px 5px 1px 2px
365
+ border-radius 8px
366
+ margin-right 4px
367
+ color var(--sco-secondtext)
368
+ display inline
369
+ font-size .5rem
370
+ line-height 1
371
+
372
+ .wl-content
373
+ order 1
374
+ margin-top 0.5rem
375
+ overflow auto
376
+ max-height 500px
377
+
378
+ p
379
+ margin 0
380
+
381
+ img
382
+ max-width 300px
383
+ max-height 300px
384
+ vertical-align middle
385
+
386
+ pre
387
+ code
388
+ kbd
389
+ samp
390
+ font-family ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
391
+
392
+ pre
393
+ background var(--sco-secondbg)
394
+ padding .5rem
395
+ margin 0.5rem 0
396
+ overflow auto
397
+ border-radius 0.5em
398
+
399
+ +maxWidth768()
400
+ max-width 90%
401
+
402
+ .wl-quote
403
+ order 3
404
+
405
+ +maxWidth768()
406
+ max-width 90%
407
+
408
+ .wl-operation
409
+ width 100%
410
+
411
+ .wl-btn
412
+ top 0
413
+ margin 0
414
+ width 100%
415
+ position relative
416
+ bottom 52px
417
+ left 0
418
+ cursor pointer
419
+ padding 0.75em
420
+ transition all 0.5s
421
+ font-size 0.75em
422
+ background var(--sco-card-bg)
423
+ color var(--sco-fontcolor)
424
+ border var(--style-border-always)
425
+ box-shadow var(--sco-shadow-border)
426
+ border-radius 12px
427
+ opacity 1
428
+ height auto
429
+ line-height 2
430
+
431
+ &:hover
432
+ background var(--sco-lighttext)
433
+ color var(--sco-card-bg)
434
+
435
+ .wl-loading
436
+ display flex
437
+ justify-content center
438
+ align-items center
439
+
440
+ .wl-emoji
441
+ height 32px
442
+ margin 0 0.2rem
443
+
444
+ .wl-empty
445
+ display flex
446
+ justify-content center
447
+ align-items center
448
+ color var(--sco-lighttext)
89
449
 
90
- .wl-content pre, .wl-content pre[class*=language-]
91
- padding .5rem !important
450
+ #page .wl-cards > .wl-card-item
451
+ padding 1rem 1rem 1.5rem
452
+ border var(--style-border)
453
+ border-top var(--style-border)
454
+ box-shadow var(--sco-shadow-border)
@@ -12,7 +12,7 @@
12
12
  flex-direction column
13
13
  align-items center
14
14
  pointer-events none
15
- -webkit-user-select none
15
+ user-select none
16
16
 
17
17
  &.show
18
18
  opacity 1
@@ -356,6 +356,7 @@
356
356
  height: 150px
357
357
  transition: .3s
358
358
  position: relative
359
+ cursor pointer
359
360
 
360
361
  &:hover
361
362
  background: var(--sco-main)
@@ -1,5 +1,5 @@
1
1
  #loading-box
2
- -webkit-user-select none
2
+ user-select none
3
3
 
4
4
  .loading-bg
5
5
  display flex
@@ -39,6 +39,8 @@
39
39
  .footer-bar-description
40
40
  color var(--sco-secondtext)
41
41
  font-weight 700
42
+ padding: 0 0.5rem
43
+ text-align: center
42
44
 
43
45
  .post & div#sco-footer-bar
44
46
  display flex
@@ -84,7 +86,7 @@
84
86
  margin 0 1rem
85
87
  cursor pointer
86
88
  transition cubic-bezier(0, 0, 0, 1.29) .5s
87
- -webkit-user-select none
89
+ user-select none
88
90
  border-radius 50px
89
91
  overflow hidden
90
92
  +maxWidth768()
@@ -269,4 +271,4 @@
269
271
  font-size: 16px
270
272
 
271
273
  i.scoicon
272
- font-size 16px
274
+ font-size 16px
@@ -51,7 +51,6 @@
51
51
  box-shadow var(--sco-shadow-border)
52
52
 
53
53
  img
54
- cursor zoom-in
55
54
  border-radius 12px
56
55
  object-fit cover
57
56
  display block
@@ -66,16 +65,7 @@
66
65
  padding 0 4px
67
66
  border-radius 4px 4px 0 0
68
67
 
69
- if hexo-config('fancybox')
70
- &.fancybox
71
- border-bottom 0
72
- padding 0
73
- margin auto
74
- display contents
75
- width fit-content
76
- -webkit-user-select none
77
-
78
- &:not(.headerlink):hover
68
+ &:not(.headerlink, .fancybox):hover
79
69
  border 0
80
70
  text-decoration none
81
71
  background var(--sco-main)
@@ -11,7 +11,7 @@
11
11
 
12
12
  +maxWidth768()
13
13
  box-shadow var(--sco-shadow-border)
14
-
14
+ padding: 1rem 1.3rem;
15
15
  .post-copyright__author_group
16
16
  .post-copyright__author_img
17
17
  width 64px
@@ -95,4 +95,4 @@
95
95
  background-color var(--sco-main)
96
96
  color var(--sco-white)
97
97
  cursor pointer
98
- border-radius 4px
98
+ border-radius 4px
@@ -215,7 +215,7 @@
215
215
  margin-top .4rem
216
216
  transition .3s
217
217
  display flex
218
- -webkit-user-select none
218
+ user-select none
219
219
  color var(--light-grey)
220
220
  font-size 95%
221
221
 
@@ -324,7 +324,7 @@
324
324
  text-align left
325
325
  display flex
326
326
  white-space nowrap
327
- -webkit-user-select none
327
+ user-select none
328
328
 
329
329
  +maxWidth768()
330
330
  white-space nowrap
@@ -1,6 +1,6 @@
1
1
  .relatedPosts
2
2
  margin-top: 2rem
3
- -webkit-user-select: none
3
+ user-select none
4
4
 
5
5
  > .relatedPosts-list
6
6
  > div
@@ -5,7 +5,7 @@
5
5
  justify-content center
6
6
  margin-top 8px
7
7
  flex-wrap wrap
8
- -webkit-user-select none
8
+ user-select none
9
9
 
10
10
  .post-tools-left
11
11
  white-space nowrap
@@ -131,7 +131,6 @@
131
131
 
132
132
  a
133
133
  border-radius 4px
134
- background var(--sco-main)
135
134
  color var(--sco-white)
136
135
  cursor pointer
137
136
  display inline-block
@@ -176,4 +175,7 @@
176
175
 
177
176
  &:hover
178
177
  background var(--sco-main)
179
- color var(--sco-white)
178
+ color var(--sco-white)
179
+
180
+ .ais-Pagination-item--selected a
181
+ background var(--sco-main)
@@ -31,6 +31,10 @@ $colors = {
31
31
  &.success:not(.no-icon)::before
32
32
  content: '\e0a4'
33
33
 
34
+ &.success:not(.no-icon)
35
+ p
36
+ color var(--sco-card-bg)
37
+
34
38
  &::before
35
39
  font-family 'scoicon'
36
40