hexo-theme-solitude 1.5.10 → 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 (104) 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 +89 -73
  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 +211 -0
  18. package/scripts/event/welcome.js +2 -2
  19. package/scripts/filter/checkThemeConfig.js +2 -2
  20. package/scripts/filter/default.js +7 -5
  21. package/scripts/filter/lazyload.js +18 -5
  22. package/scripts/filter/randomPosts.js +1 -1
  23. package/scripts/helper/stylus.js +9 -15
  24. package/source/css/_global/index.styl +362 -1
  25. package/source/css/_highlight/color.styl +111 -45
  26. package/source/css/_highlight/prismjs/diff.styl +80 -184
  27. package/source/css/_highlight/prismjs/index.styl +2 -0
  28. package/source/css/_highlight/prismjs/line-number.styl +0 -3
  29. package/source/css/_layout/aside.styl +751 -0
  30. package/source/css/_layout/capsule.styl +213 -0
  31. package/source/css/_layout/fullpage.styl +47 -0
  32. package/source/css/_layout/keyboard.styl +60 -0
  33. package/source/css/_layout/pace.styl +40 -0
  34. package/source/css/_layout/rightmenu.styl +79 -0
  35. package/source/css/_layout/universe.styl +18 -0
  36. package/source/css/_page/_home/home-top.styl +1 -3
  37. package/source/css/_page/_home/recent-post.styl +407 -170
  38. package/source/css/_page/douban.styl +111 -109
  39. package/source/css/_page/share.styl +1 -17
  40. package/source/css/{_widgets/_post → _post}/content.styl +0 -3
  41. package/source/css/index.styl +20 -5
  42. package/source/css/third_party/snackbar.min.css +1 -0
  43. package/source/css/{_global/var.styl → var.styl} +11 -7
  44. package/source/img/avatar.png +0 -0
  45. package/source/img/default.png +0 -0
  46. package/source/img/happy-sticker.png +0 -0
  47. package/source/img/pwa/favicon.ico +0 -0
  48. package/source/img/pwa/favicon_128.ico +0 -0
  49. package/source/img/pwa/favicon_16.ico +0 -0
  50. package/source/img/pwa/favicon_256.ico +0 -0
  51. package/source/img/pwa/favicon_32.ico +0 -0
  52. package/source/js/main.js +1 -0
  53. package/layout/includes/recent-posts.pug +0 -9
  54. package/source/css/_layout/basic.styl +0 -308
  55. package/source/css/_layout/index.styl +0 -125
  56. package/source/css/_widgets/_aside/allinfo.styl +0 -168
  57. package/source/css/_widgets/_aside/flip.styl +0 -67
  58. package/source/css/_widgets/_aside/index.styl +0 -90
  59. package/source/css/_widgets/_aside/info.styl +0 -263
  60. package/source/css/_widgets/_aside/newPost.styl +0 -61
  61. package/source/css/_widgets/_aside/toc.styl +0 -108
  62. package/source/css/_widgets/_aside/welcome.styl +0 -14
  63. package/source/css/_widgets/_extra/fullpage.styl +0 -46
  64. package/source/css/_widgets/_extra/music.styl +0 -218
  65. package/source/css/_widgets/_extra/pace.styl +0 -39
  66. package/source/css/_widgets/_extra/rightmenu.styl +0 -78
  67. package/source/css/_widgets/_mixins/keyboard.styl +0 -59
  68. package/source/css/_widgets/index.styl +0 -56
  69. package/source/img/logo.png +0 -0
  70. /package/source/css/{_widgets/_comment → _comments}/index.styl +0 -0
  71. /package/source/css/{_widgets/_comment → _comments}/twikoo.styl +0 -0
  72. /package/source/css/{_widgets/_comment → _comments}/waline.styl +0 -0
  73. /package/source/css/{_widgets/_mixins → _layout}/article-sort.styl +0 -0
  74. /package/source/css/{_widgets/_extra → _layout}/console.styl +0 -0
  75. /package/source/css/{_widgets/_mixins → _layout}/footer.styl +0 -0
  76. /package/source/css/{_widgets/_mixins → _layout}/other.styl +0 -0
  77. /package/source/css/{_widgets/_mixins → _layout}/sidebar.styl +0 -0
  78. /package/source/css/{_widgets/_post → _post}/commentBarrage.styl +0 -0
  79. /package/source/css/{_widgets/_post → _post}/copyright.styl +0 -0
  80. /package/source/css/{_widgets/_post → _post}/index.styl +0 -0
  81. /package/source/css/{_widgets/_post → _post}/meta.styl +0 -0
  82. /package/source/css/{_widgets/_post → _post}/pagination.styl +0 -0
  83. /package/source/css/{_widgets/_post → _post}/postAI.styl +0 -0
  84. /package/source/css/{_widgets/_post → _post}/relatedPost.styl +0 -0
  85. /package/source/css/{_widgets/_post → _post}/tools.styl +0 -0
  86. /package/source/css/{_widgets/_search → _search}/algolia-search.styl +0 -0
  87. /package/source/css/{_widgets/_search → _search}/local-search.styl +0 -0
  88. /package/source/css/{_widgets/_tags → _tags}/button.styl +0 -0
  89. /package/source/css/{_widgets/_tags → _tags}/checkbox.styl +0 -0
  90. /package/source/css/{_widgets/_tags → _tags}/fold.styl +0 -0
  91. /package/source/css/{_widgets/_tags → _tags}/gallery.styl +0 -0
  92. /package/source/css/{_widgets/_tags → _tags}/index.styl +0 -0
  93. /package/source/css/{_widgets/_tags → _tags}/label.styl +0 -0
  94. /package/source/css/{_widgets/_tags → _tags}/link.styl +0 -0
  95. /package/source/css/{_widgets/_tags → _tags}/media.styl +0 -0
  96. /package/source/css/{_widgets/_tags → _tags}/mermaid.styl +0 -0
  97. /package/source/css/{_widgets/_tags → _tags}/note.styl +0 -0
  98. /package/source/css/{_widgets/_tags → _tags}/span.styl +0 -0
  99. /package/source/css/{_widgets/_tags → _tags}/tabs.styl +0 -0
  100. /package/source/css/{_widgets/_tags → _tags}/timeline.styl +0 -0
  101. /package/source/js/{lately.min.js → third_party/lately.min.js} +0 -0
  102. /package/source/js/{sco-ai.min.js → third_party/sco-ai.min.js} +0 -0
  103. /package/source/js/{universe.min.js → third_party/universe.min.js} +0 -0
  104. /package/source/js/{waterfall.min.js → third_party/waterfall.min.js} +0 -0
@@ -54,4 +54,365 @@
54
54
  --card-box-shadow 0 3px 8px 6px rgba(7, 17, 27, 0.06)
55
55
  --card-hover-box-shadow 0 3px 8px 6px rgba(7, 17, 27, 0.15)
56
56
  --offset 0px
57
- --hlscrollbar-bg #121212
57
+ --hlscrollbar-bg #121212
58
+
59
+ body
60
+ position relative
61
+ min-height 100%
62
+ background var(--efu-background)
63
+ color var(--efu-fontcolor)
64
+ font-size $font-size
65
+ font-family $font-family
66
+ line-height 2
67
+ -webkit-tap-highlight-color transparent
68
+ margin 0
69
+
70
+ *
71
+ box-sizing border-box
72
+
73
+ html
74
+ line-height 1.15
75
+ -webkit-text-size-adjust 100%
76
+ text-size-adjust 100%
77
+ height: 100%;
78
+ font-size: 20px
79
+ overflow-y: overlay
80
+
81
+ main
82
+ display block
83
+
84
+ // scrollbar - chrome/safari
85
+ *::-webkit-scrollbar
86
+ width 5px
87
+ height 5px
88
+
89
+ *::-webkit-scrollbar-thumb
90
+ background var(--scrollbar-color)
91
+
92
+ *::-webkit-scrollbar-track
93
+ background-color transparent
94
+
95
+ #site-title,
96
+ #site-subtitle,
97
+ .site-name,
98
+ #aside-content .author-info__name,
99
+ #aside-content .author-info__description
100
+ font-family "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif
101
+
102
+
103
+ if hexo-config('lazyload.enable') && !hexo-config('lazyload.placeholder')
104
+ img
105
+ &[data-lazy-src]:not(.loaded)
106
+ filter blur(8px) brightness(1)
107
+
108
+ &[data-lazy-src].error
109
+ filter none
110
+
111
+ ::selection
112
+ background var(--efu-main)
113
+ color var(--efu-white)
114
+
115
+ h1
116
+ font-size 2em
117
+ margin .67em 0
118
+
119
+ h1, h2, h3, h4, h5, h6
120
+ padding-top 0
121
+ padding-left 0
122
+ font-weight 700
123
+ position relative
124
+ margin 1rem 0 0.7rem
125
+ color var(--efu-fontcolor)
126
+
127
+ hr
128
+ box-sizing content-box
129
+ height 0
130
+ overflow visible
131
+ display: none
132
+
133
+ pre
134
+ font-family monospace, monospace
135
+
136
+ a
137
+ color var(--efu-fontcolor)
138
+ text-decoration none
139
+ transition all .3s ease 0s
140
+ overflow-wrap break-word
141
+ -webkit-user-drag none
142
+
143
+ abbr[title]
144
+ border-bottom none
145
+ text-decoration underline dotted
146
+
147
+ b, strong
148
+ font-weight bolder
149
+
150
+ code, kbd, samp
151
+ font-family $code-font-family
152
+ font-size $code-font-size
153
+
154
+ small
155
+ font-size 80%
156
+
157
+ sub, sup
158
+ font-size 75%
159
+ line-height 0
160
+ position relative
161
+ vertical-align baseline
162
+
163
+ sub
164
+ bottom -.25em
165
+
166
+ sup
167
+ top -.5em
168
+
169
+ button, input, optgroup, select, textarea
170
+ font-family inherit
171
+ font-size 100%
172
+ line-height 1.15
173
+ margin 0
174
+
175
+ button, input
176
+ overflow visible
177
+
178
+ input::placeholder
179
+ color var(--efu-gray)
180
+
181
+ button, select
182
+ text-transform none
183
+
184
+ [type=button], [type=reset], [type=submit], button
185
+ appearance button
186
+
187
+ fieldset
188
+ padding .35em .75em .625em
189
+
190
+ legend
191
+ box-sizing border-box
192
+ color inherit
193
+ display table
194
+ max-width 100%
195
+ padding 0
196
+ white-space normal
197
+
198
+ progress
199
+ vertical-align baseline
200
+
201
+ textarea
202
+ overflow auto
203
+
204
+ [type=checkbox], [type=radio]
205
+ box-sizing border-box
206
+ padding 0
207
+
208
+ [type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button
209
+ height auto
210
+
211
+ [type=search]
212
+ appearance textfield
213
+ outline-offset -2px
214
+
215
+ [type=search]::-webkit-search-decoration
216
+ appearance none
217
+
218
+ input[type=checkbox] + label::before, input[type=radio] + label::before
219
+ content ''
220
+ display inline-block
221
+ width 16px
222
+ height 16px
223
+ border 1px solid #999
224
+ background-color #fff
225
+ margin-right 5px
226
+ vertical-align middle
227
+
228
+ ::-webkit-file-upload-button
229
+ appearance button
230
+ font inherit
231
+
232
+ summary
233
+ display list-item
234
+
235
+ template
236
+ display none
237
+
238
+ [hidden]
239
+ display none
240
+
241
+ input::placeholder
242
+ color var(--efu-fontcolor)
243
+
244
+ .table-wrap
245
+ overflow-x scroll
246
+ margin 0 0 1rem
247
+
248
+ table
249
+ display table
250
+ width 100%
251
+ border-spacing 0
252
+ border-collapse collapse
253
+ empty-cells show
254
+
255
+ table thead
256
+ background rgba(153, 169, 191, .1)
257
+
258
+ table td, table th
259
+ padding .3rem .6rem
260
+ border 1px solid var(--light-grey)
261
+ vertical-align middle
262
+
263
+ button
264
+ padding 0
265
+ outline 0
266
+ border none
267
+ color var(--efu-fontcolor)
268
+ background 0 0
269
+ cursor pointer
270
+
271
+ img
272
+ border-style none
273
+ max-width 100%
274
+ transition all .2s ease 0s
275
+ -webkit-user-drag none
276
+
277
+ img:not([src]), img[src=""]
278
+ opacity 0
279
+
280
+ .img-alt
281
+ font-size 12px
282
+ margin 0
283
+ margin-top 8px
284
+ color var(--efu-secondtext)
285
+
286
+ .is-center
287
+ text-align center
288
+ display flex
289
+ flex-wrap wrap
290
+ justify-content center
291
+ flex-direction row
292
+ align-items center
293
+
294
+ .copy-true
295
+ user-select all
296
+
297
+ .pull-left
298
+ float left
299
+
300
+ .pull-right
301
+ float right
302
+
303
+ blockquote
304
+ border var(--style-border-always)
305
+ background-color var(--efu-secondbg)
306
+ color var(--efu-secondtext)
307
+ border-radius 8px
308
+ margin 1rem 0
309
+ padding .5rem .8rem
310
+
311
+ p
312
+ padding 0
313
+ margin 0
314
+
315
+ li, ul
316
+ list-style none
317
+ display block
318
+ margin 0
319
+ padding 0
320
+
321
+ ::-webkit-scrollbar
322
+ width 6px
323
+ height 6px
324
+
325
+ ::-webkit-scrollbar-thumb
326
+ background var(--efu-scrollbar)
327
+ border-radius 8px
328
+ cursor pointer
329
+
330
+ ::-webkit-scrollbar-thumb:hover
331
+ background var(--efu-main)
332
+ opacity 1
333
+ display block !important
334
+
335
+ ::-webkit-scrollbar-track
336
+ background-color var(--efu-none)
337
+
338
+ [data-theme=dark] img
339
+ filter brightness(1)
340
+
341
+ a.extend
342
+ .next
343
+ right 0
344
+
345
+ .prev
346
+ left 0
347
+
348
+ table td, table th
349
+ border var(--style-border-always)
350
+
351
+ table thead
352
+ background var(--efu-secondbg)
353
+
354
+ b, strong
355
+ color var(--efu-lighttext)
356
+
357
+ .button--animated
358
+ border-radius 8px
359
+ transition .3s
360
+ position relative
361
+
362
+ i.solitude
363
+ font-size 22px
364
+ line-height 1
365
+
366
+ .layout
367
+ display: flex
368
+ margin: 0 auto
369
+ padding: 1rem 1.5rem
370
+ max-width: 1200px
371
+ +maxWidth768()
372
+ padding 0
373
+
374
+ &#content-inner
375
+ max-width: 1400px
376
+
377
+ /.hide-aside.layout
378
+ max-width: 1400px
379
+
380
+ > div
381
+ width: 100% !important
382
+
383
+ > div:first-child
384
+ width calc(100% - 300px)
385
+
386
+ +maxWidth1200()
387
+ width 100%
388
+
389
+ > div:first-child:not(.recent-posts)
390
+ box-shadow var(--efu-shadow-border)
391
+ padding 1rem 2rem
392
+ border-radius 12px
393
+ background var(--efu-card-bg)
394
+ border var(--style-border)
395
+ align-self flex-start
396
+ animation slide-in .6s .1s backwards
397
+ position relative
398
+
399
+ +maxWidth768()
400
+ box-shadow none
401
+ border none
402
+ padding 0 1rem
403
+ background var(--efu-background)
404
+
405
+ span.tags-punctuation::before
406
+ content: "\e071"
407
+ font-family: solitude, serif !important
408
+ font-size: 12px
409
+ transition none
410
+ margin-right: 2px
411
+ opacity: .4
412
+
413
+ .hide-aside #page &
414
+ font-size 16px
415
+
416
+ #post-info &
417
+ font-size 14px
418
+ line-height 32px
@@ -1,4 +1,4 @@
1
- $highlight_color = hexo-config('hightlight.color')
1
+ $highlight_color = hexo-config('highlight.color')
2
2
 
3
3
  if $highlight_color == "default"
4
4
  $highlight-comment = #969896
@@ -11,18 +11,84 @@ if $highlight_color == "default"
11
11
  $highlight-purple = #C792EA
12
12
  $highlight-deletion = #BF42BF
13
13
  $highlight-addition = #105EDE
14
- else if $highlight_color == "vscode"
15
- $highlight-comment = #6A9955
16
- $highlight-red = #D16969
17
- $highlight-orange = #D7BA7D
18
- $highlight-yellow = #D7BA7D
19
- $highlight-green = #608B4E
20
- $highlight-aqua = #4EC9B0
21
- $highlight-blue = #569CD6
22
- $highlight-purple = #C586C0
23
- $highlight-deletion = #D16969
24
- $highlight-addition = #608B4E
25
- else if $highlight_color == "solarized-dark"
14
+ else if $highlight_color == "dark"
15
+ $highlight-comment = #6272A4
16
+ $highlight-red = #FF5370
17
+ $highlight-orange = #F78C6C
18
+ $highlight-yellow = #FFCB6B
19
+ $highlight-green = #C3E88D
20
+ $highlight-aqua = #89DDFF
21
+ $highlight-blue = #82AAFF
22
+ $highlight-purple = #C792EA
23
+ $highlight-deletion = #BF42BF
24
+ $highlight-addition = #105EDE
25
+ else if $highlight_color == "funky"
26
+ $highlight-comment = #6272A4
27
+ $highlight-red = #FF5370
28
+ $highlight-orange = #FFCB6B
29
+ $highlight-yellow = #C3E88D
30
+ $highlight-green = #89DDFF
31
+ $highlight-aqua = #82AAFF
32
+ $highlight-blue = #C792EA
33
+ $highlight-purple = #FF5370
34
+ $highlight-deletion = #F07178
35
+ $highlight-addition = #C3E88D
36
+ else if $highlight_color == "okaidia"
37
+ $highlight-comment = #6272A4
38
+ $highlight-red = #FF5370
39
+ $highlight-orange = #FFCB6B
40
+ $highlight-yellow = #C3E88D
41
+ $highlight-green = #89DDFF
42
+ $highlight-aqua = #82AAFF
43
+ $highlight-blue = #C792EA
44
+ $highlight-purple = #FF5370
45
+ $highlight-deletion = #F07178
46
+ $highlight-addition = #C3E88D
47
+ else if $highlight_color == "tomorrow"
48
+ $highlight-comment = #6272A4
49
+ $highlight-red = #FF5370
50
+ $highlight-orange = #F78C6C
51
+ $highlight-yellow = #FFCB6B
52
+ $highlight-green = #C3E88D
53
+ $highlight-aqua = #89DDFF
54
+ $highlight-blue = #82AAFF
55
+ $highlight-purple = #C792EA
56
+ $highlight-deletion = #BF42BF
57
+ $highlight-addition = #105EDE
58
+ else if $highlight_color == "twilight"
59
+ $highlight-comment = #6272A4
60
+ $highlight-red = #FF5370
61
+ $highlight-orange = #F78C6C
62
+ $highlight-yellow = #FFCB6B
63
+ $highlight-green = #C3E88D
64
+ $highlight-aqua = #89DDFF
65
+ $highlight-blue = #82AAFF
66
+ $highlight-purple = #C792EA
67
+ $highlight-deletion = #BF42BF
68
+ $highlight-addition = #105EDE
69
+ else if $highlight_color == "darcula"
70
+ $highlight-comment = #6272A4
71
+ $highlight-red = #FF5370
72
+ $highlight-orange = #F78C6C
73
+ $highlight-yellow = #FFCB6B
74
+ $highlight-green = #C3E88D
75
+ $highlight-aqua = #89DDFF
76
+ $highlight-blue = #82AAFF
77
+ $highlight-purple = #C792EA
78
+ $highlight-deletion = #BF42BF
79
+ $highlight-addition = #105EDE
80
+ else if $highlight_color == "material"
81
+ $highlight-comment = #546E7A
82
+ $highlight-red = #FF5370
83
+ $highlight-orange = #FFCB6B
84
+ $highlight-yellow = #C3E88D
85
+ $highlight-green = #89DDFF
86
+ $highlight-aqua = #82AAFF
87
+ $highlight-blue = #C792EA
88
+ $highlight-purple = #FF5370
89
+ $highlight-deletion = #F07178
90
+ $highlight-addition = #C3E88D
91
+ else if $highlight_color == "solarized-light"
26
92
  $highlight-comment = #93A1A1
27
93
  $highlight-red = #DC322F
28
94
  $highlight-orange = #CB4B16
@@ -31,38 +97,38 @@ else if $highlight_color == "solarized-dark"
31
97
  $highlight-aqua = #2AA198
32
98
  $highlight-blue = #268BD2
33
99
  $highlight-purple = #6C71C4
34
- $highlight-deletion = #DC322F
100
+ $highlight-deletion = #D33682
35
101
  $highlight-addition = #859900
36
- else if $highlight_color == "solarized-light"
37
- $highlight-comment = #586E75
38
- $highlight-red = #D30102
39
- $highlight-orange = #BD3613
40
- $highlight-yellow = #A57705
41
- $highlight-green = #728A05
42
- $highlight-aqua = #259185
43
- $highlight-blue = #2176C7
102
+ else if $highlight_color == "solarized-dark"
103
+ $highlight-comment = #657B83
104
+ $highlight-red = #DC322F
105
+ $highlight-orange = #CB4B16
106
+ $highlight-yellow = #B58900
107
+ $highlight-green = #859900
108
+ $highlight-aqua = #2AA198
109
+ $highlight-blue = #268BD2
44
110
  $highlight-purple = #6C71C4
45
- $highlight-deletion = #D30102
46
- $highlight-addition = #728A05
47
- else if $highlight_color == "dracula"
111
+ $highlight-deletion = #D33682
112
+ $highlight-addition = #859900
113
+ else if $highlight_color == "github"
114
+ $highlight-comment = #969896
115
+ $highlight-red = #D73A49
116
+ $highlight-orange = #BD2C00
117
+ $highlight-yellow = #E5C07B
118
+ $highlight-green = #28A745
119
+ $highlight-aqua = #00A9C0
120
+ $highlight-blue = #0366D6
121
+ $highlight-purple = #6F42C1
122
+ $highlight-deletion = #D73A49
123
+ $highlight-addition = #28A745
124
+ else
48
125
  $highlight-comment = #6272A4
49
- $highlight-red = #FF5555
50
- $highlight-orange = #FFB86C
51
- $highlight-yellow = #F1FA8C
52
- $highlight-green = #50FA7B
53
- $highlight-aqua = #8BE9FD
54
- $highlight-blue = #BD93F9
55
- $highlight-purple = #FF79C6
56
- $highlight-deletion = #FF5555
57
- $highlight-addition = #50FA7B
58
- else if $highlight_color == "monokai"
59
- $highlight-comment = #75715E
60
- $highlight-red = #F926
61
- $highlight-orange = #FD971F
62
- $highlight-yellow = #E6DB74
63
- $highlight-green = #A6E22E
64
- $highlight-aqua = #66D9EF
65
- $highlight-blue = #AE81FF
66
- $highlight-purple = #F92672
67
- $highlight-deletion = #F926
68
- $highlight-addition = #A6E22E
126
+ $highlight-red = #FF5370
127
+ $highlight-orange = #F78C6C
128
+ $highlight-yellow = #FFCB6B
129
+ $highlight-green = #C3E88D
130
+ $highlight-aqua = #89DDFF
131
+ $highlight-blue = #82AAFF
132
+ $highlight-purple = #C792EA
133
+ $highlight-deletion = #BF42BF
134
+ $highlight-addition = #105EDE