hexo-theme-solitude 1.13.3 → 2.0.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 (91) hide show
  1. package/.github/FUNDING.yml +1 -1
  2. package/README.md +26 -29
  3. package/README_zh-Hant.md +1 -1
  4. package/{README_en-US.md → README_zh_CN.md} +29 -26
  5. package/_config.yml +153 -590
  6. package/languages/default.yml +2 -1
  7. package/languages/en.yml +2 -1
  8. package/languages/zh-CN.yml +1 -1
  9. package/languages/zh-TW.yml +1 -1
  10. package/layout/404.pug +1 -1
  11. package/layout/includes/console.pug +8 -8
  12. package/layout/includes/footer.pug +6 -6
  13. package/layout/includes/head/config.pug +5 -5
  14. package/layout/includes/inject/body.pug +1 -0
  15. package/layout/includes/inject/head.pug +1 -1
  16. package/layout/includes/layout.pug +0 -1
  17. package/layout/includes/mixins/articleSort.pug +3 -1
  18. package/layout/includes/mixins/pagination.pug +2 -2
  19. package/layout/includes/nav.pug +2 -1
  20. package/layout/includes/page/categories.pug +3 -2
  21. package/layout/includes/page/says.pug +5 -5
  22. package/layout/includes/page/tags.pug +3 -2
  23. package/layout/includes/rightmenu.pug +19 -20
  24. package/layout/includes/sidebar.pug +1 -1
  25. package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
  26. package/layout/includes/widgets/aside/asideNewestPost.pug +3 -3
  27. package/layout/includes/widgets/aside/asideNewstComments.pug +2 -2
  28. package/layout/includes/widgets/aside/asideToc.pug +1 -1
  29. package/layout/includes/widgets/aside/asideWebInfo.pug +10 -10
  30. package/layout/includes/widgets/home/bbTimeList.pug +7 -9
  31. package/layout/includes/widgets/home/carousel.pug +3 -1
  32. package/layout/includes/widgets/home/categoryBar.pug +1 -1
  33. package/layout/includes/widgets/home/hot/artalk.pug +45 -0
  34. package/layout/includes/widgets/home/hot/index.pug +3 -1
  35. package/layout/includes/widgets/home/hot/twikoo.pug +1 -1
  36. package/layout/includes/widgets/home/postList.pug +4 -2
  37. package/layout/includes/widgets/home/topGroup.pug +1 -1
  38. package/layout/includes/widgets/nav/right.pug +9 -5
  39. package/layout/includes/widgets/page/about/award.pug +1 -1
  40. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  41. package/layout/includes/widgets/page/about/other.pug +1 -1
  42. package/layout/includes/widgets/page/banner.pug +1 -1
  43. package/layout/includes/widgets/page/equipment/content.pug +1 -1
  44. package/layout/includes/widgets/page/links/banner.pug +2 -2
  45. package/layout/includes/widgets/page/recentcomment/artalk.pug +1 -1
  46. package/layout/includes/widgets/page/recentcomment/twikoo.pug +1 -1
  47. package/layout/includes/widgets/page/recentcomment/valine.pug +1 -1
  48. package/layout/includes/widgets/page/recentcomment/waline.pug +1 -1
  49. package/layout/includes/widgets/post/award.pug +1 -1
  50. package/layout/includes/widgets/post/copyright.pug +10 -10
  51. package/layout/includes/widgets/post/post-ai.pug +1 -1
  52. package/layout/includes/widgets/post/postInfo.pug +20 -18
  53. package/layout/includes/widgets/third-party/comments/artalk.pug +7 -0
  54. package/layout/includes/widgets/third-party/comments/comment.pug +4 -4
  55. package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -4
  56. package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
  57. package/layout/includes/widgets/third-party/tianli-talk.pug +1 -1
  58. package/layout/post.pug +3 -2
  59. package/layout/tag.pug +3 -2
  60. package/package.json +2 -2
  61. package/plugins.yml +9 -9
  62. package/scripts/helper/related_post.js +1 -1
  63. package/scripts/helper/stylus.js +1 -0
  64. package/source/css/_comments/comment.styl +3 -4
  65. package/source/css/_global/index.styl +15 -14
  66. package/source/css/_highlight/index.styl +2 -2
  67. package/source/css/_highlight/theme/default.styl +1 -1
  68. package/source/css/_highlight/theme/mac.styl +1 -1
  69. package/source/css/_layout/article-container.styl +13 -4
  70. package/source/css/_layout/aside.styl +4 -3
  71. package/source/css/_layout/console.styl +2 -1
  72. package/source/css/_layout/footer.styl +1 -1
  73. package/source/css/_layout/header.styl +62 -12
  74. package/source/css/_page/_about/author.styl +4 -1
  75. package/source/css/_page/_about/buff.styl +1 -1
  76. package/source/css/_page/_about/contentinfo.styl +3 -2
  77. package/source/css/_page/_about/maxim.styl +1 -1
  78. package/source/css/_page/_home/category-bar.styl +19 -13
  79. package/source/css/_page/_home/home-top.styl +2 -0
  80. package/source/css/_page/_home/hot-tip.styl +2 -1
  81. package/source/css/_page/category.styl +0 -1
  82. package/source/css/_post/copyright.styl +104 -105
  83. package/source/css/_post/meta.styl +1 -1
  84. package/source/css/_post/pagination.styl +1 -1
  85. package/source/css/_post/tools.styl +1 -1
  86. package/source/css/_search/algolia-search.styl +0 -6
  87. package/source/css/_tags/image.styl +4 -0
  88. package/source/css/_tags/timeline.styl +3 -0
  89. package/source/js/covercolor/local.js +10 -4
  90. package/source/js/main.js +5 -5
  91. package/source/js/tw_cn.js +0 -3
@@ -6,6 +6,8 @@
6
6
 
7
7
  .post &
8
8
  padding 1rem 2rem
9
+ +maxWidth768()
10
+ padding .5rem
9
11
 
10
12
  iframe
11
13
  border-radius 12px
@@ -36,9 +38,9 @@
36
38
  overflow-x scroll
37
39
 
38
40
  a.headerlink
39
- float right
40
41
  opacity .08
41
- position relative
42
+ position absolute
43
+ right 0
42
44
  padding 0
43
45
  border none
44
46
  border-radius 8px
@@ -181,10 +183,11 @@
181
183
 
182
184
  &.post-content
183
185
  h1, h2, h3, h4
186
+ padding-right 1rem
187
+ position relative
184
188
  display flex
189
+ flex-wrap wrap
185
190
  align-items center
186
- justify-content space-between
187
- flex-direction row-reverse
188
191
  transition all .2s ease-out 0s
189
192
 
190
193
  h1
@@ -200,6 +203,12 @@
200
203
  h3, h4
201
204
  font-size 1.1rem
202
205
  line-height 1.3
206
+ hr
207
+ display flex
208
+ position relative
209
+ margin 0.5rem 0
210
+ border-width 0
211
+ border-top 1px dashed var(--efu-theme-op)
203
212
 
204
213
  if hexo-config('mediumZoom')
205
214
  .medium-zoom--opened .medium-zoom-overlay
@@ -962,14 +962,15 @@ if hexo-config('aside.card.style') == 2
962
962
  flex-direction column
963
963
 
964
964
  .title
965
+ display -webkit-box
966
+ -webkit-box-orient vertical
965
967
  font-weight 700
966
- padding 2px 0
967
- margin-bottom 8px
968
- color var(--efu-fontcolor)
968
+ margin 4px 0
969
969
  font-size 95%
970
970
  line-height 1.3
971
971
  -webkit-line-clamp 2
972
972
  overflow hidden
973
+ text-overflow ellipsis
973
974
 
974
975
  .article-recent_post_categories
975
976
  font-size 12px
@@ -216,8 +216,9 @@
216
216
  max-width 1400px
217
217
 
218
218
  i
219
- font-size 32px
219
+ font-size 24px
220
220
  margin-right 1.5rem
221
+ padding 6px 8px
221
222
  margin-left auto
222
223
  line-height 1
223
224
  transform rotate(-30deg)
@@ -58,7 +58,7 @@
58
58
  flex-direction row
59
59
 
60
60
  i
61
- font-size .9rem
61
+ font-size .8rem
62
62
  line-height .9rem
63
63
  height .9rem
64
64
 
@@ -133,7 +133,6 @@
133
133
  align-items center
134
134
  margin-right 1.5rem
135
135
  overflow hidden
136
- gap .5rem
137
136
 
138
137
  +maxWidth768()
139
138
  margin-right 12px
@@ -142,6 +141,8 @@
142
141
  padding 0
143
142
 
144
143
  .nav-button
144
+ margin-left .5rem
145
+
145
146
  a
146
147
  height 35px
147
148
  width 35px
@@ -162,7 +163,55 @@
162
163
  transition .3s
163
164
 
164
165
  &.console_switchbutton
165
- padding 4px 8px
166
+ padding 10px 8px
167
+
168
+ &:hover
169
+ label
170
+ i
171
+ background var(--efu-white)
172
+
173
+ .left
174
+ width .5rem
175
+ height .3rem
176
+
177
+ .center
178
+ width .5rem
179
+ height .3rem
180
+ .right
181
+ width .3rem
182
+ height 100%
183
+
184
+ label
185
+ display flex
186
+ position relative
187
+ width 100%
188
+ height 100%
189
+ cursor pointer
190
+
191
+ i
192
+ transition all .3s
193
+ position absolute
194
+ border-radius 12px
195
+ background var(--efu-fontcolor)
196
+
197
+ .post &
198
+ background var(--efu-white)
199
+
200
+ &.left
201
+ top 0
202
+ width 100%
203
+ height .3rem
204
+
205
+ &.center
206
+ bottom 0
207
+ width .3rem
208
+ height .3rem
209
+
210
+ &.right
211
+ right 0
212
+ bottom 0
213
+ width .5rem
214
+ height .3rem
166
215
 
167
216
  &.long
168
217
  a
@@ -270,7 +319,7 @@
270
319
  transform scale(0)
271
320
  margin-left 0
272
321
  overflow hidden
273
- transition .3s ease-in
322
+ transition .3s
274
323
 
275
324
  #page-header #scroll-down .scroll-down-effects,
276
325
  #page-header #site-subtitle, #page-header #site-title
@@ -340,18 +389,16 @@
340
389
  i, span, img
341
390
  opacity 0
342
391
 
343
- &:after
392
+ i.fa-solid.fa-home
344
393
  +minWidth900()
345
394
  opacity: 1
346
395
 
347
- &:after
396
+ i.fa-solid.fa-home
348
397
  +minWidth900()
349
398
  opacity 0
350
399
  position absolute
351
400
  display flex
352
401
  z-index 1
353
- content "\e008"
354
- font-family solitude, serif
355
402
  align-items center
356
403
  justify-content center
357
404
  font-size 22px
@@ -485,7 +532,7 @@
485
532
 
486
533
  i
487
534
  &:not(.fa-brands)
488
- font-size 22px
535
+ font-size 16px
489
536
  margin-right 8px
490
537
  line-height 1
491
538
 
@@ -686,7 +733,7 @@ if hexo-config('nav.group')
686
733
  opacity 0
687
734
  pointer-events none
688
735
  backdrop-filter blur(20px)
689
- -webkit-backdrop-filter blur(20px)
736
+ -webkit-backdrop-filter blur(20px)
690
737
 
691
738
  +maxWidth768()
692
739
  left 0
@@ -748,14 +795,15 @@ if hexo-config('nav.group')
748
795
  +minWidth900()
749
796
  align-items center
750
797
 
751
- &:after
798
+ &:before
752
799
  color var(--efu-white)
753
800
 
754
801
  .nav-fixed
755
802
  #nav
756
803
  #site-name
757
- &:after
804
+ i.fa-solid.fa-home
758
805
  color var(--efu-card-bg)
806
+
759
807
  .not-top-img
760
808
  #nav
761
809
  a
@@ -861,6 +909,8 @@ if hexo-config('nav.group')
861
909
  height 35px
862
910
  line-height 35px
863
911
  border-radius 40px
912
+ if $language == 'en-US'
913
+ letter-spacing normal
864
914
 
865
915
  #travellings_button
866
916
  display inline
@@ -893,7 +943,7 @@ if hexo-config('nav.group')
893
943
  overflow hidden
894
944
  left 0
895
945
 
896
- if hexo-config('nav.right.console')
946
+ if hexo-config('console.enable')
897
947
  #nav-console
898
948
  +maxWidth768()
899
949
  display none
@@ -89,4 +89,7 @@
89
89
  height 20px
90
90
 
91
91
  img
92
- border-radius 200px
92
+ border-radius 200px
93
+ width 100%
94
+ height 100%
95
+ object-fit cover
@@ -13,7 +13,7 @@
13
13
  animation gradient 15s ease infinite
14
14
  min-height 200px
15
15
  height fit-content
16
- width 59.5%
16
+ width calc(60% - (.5rem / 2))
17
17
 
18
18
  .card-content
19
19
  display flex
@@ -7,7 +7,7 @@
7
7
  background linear-gradient(120deg, #5b27ff 0, #00d4ff 100%)
8
8
  background-size 200%
9
9
  animation gradient 15s ease infinite
10
- width 59.5%
10
+ width calc(60% - .5rem / 2)
11
11
 
12
12
  .title1
13
13
  opacity .8
@@ -28,10 +28,11 @@
28
28
  justify-content center
29
29
  align-items flex-start
30
30
  flex-direction column
31
- width 39.5%
31
+ width calc(40% - (.5rem / 2))
32
32
 
33
33
  h2
34
34
  margin-right auto
35
+ width 100%
35
36
  font-size 36px
36
37
  font-family Helvetica
37
38
  line-height 1.06
@@ -7,7 +7,7 @@
7
7
  align-items flex-start
8
8
  flex-direction column
9
9
  justify-content center
10
- width 39.5%
10
+ width calc(40% - (.5rem / 2))
11
11
 
12
12
  .maxim-title
13
13
  display flex
@@ -23,8 +23,8 @@
23
23
  animation: slide-in .6s .3s backwards;
24
24
 
25
25
  +maxWidth768()
26
- margin-bottom 0
27
- margin-top 0
26
+ margin-bottom .5rem
27
+ margin-top .5rem
28
28
  border-radius 0
29
29
  background var(--efu-background)
30
30
  padding 0 1rem
@@ -34,6 +34,9 @@
34
34
  display flex
35
35
  align-items center
36
36
 
37
+ +maxWidth768()
38
+ display none
39
+
37
40
  .category-bar-next
38
41
  margin-left 8px
39
42
  cursor pointer
@@ -51,7 +54,7 @@
51
54
  border-radius 8px
52
55
  padding 0 8px
53
56
 
54
- div:hover,a:hover
57
+ div:hover, a:hover
55
58
  background var(--efu-secondbg-bg)
56
59
  color var(--efu-lighttext)
57
60
 
@@ -63,15 +66,17 @@
63
66
  border-radius 8px
64
67
  align-items center
65
68
  height 30px
69
+ +maxWidth768()
70
+ height 44px
71
+ gap 6px
66
72
 
67
73
  &::-webkit-scrollbar
68
74
  display: none
69
75
 
70
76
  .category-bar-item
71
- &:hover
72
- a
73
- background var(--efu-secondbg-bg)
74
- color var(--efu-lighttext)
77
+ a:hover
78
+ background var(--efu-main)
79
+ color var(--efu-white)
75
80
 
76
81
  a
77
82
  padding .1rem .5rem
@@ -81,15 +86,16 @@
81
86
  display flex
82
87
  align-items center
83
88
  height 30px
84
- border var(--style-border-always)
89
+
90
+ +maxWidth768()
91
+ border-radius 50px
92
+ background var(--efu-card-bg)
93
+ border var(--style-border-always)
94
+ padding 21px 16px
85
95
 
86
96
  &.select
87
97
  order -1
88
98
 
89
99
  a
90
100
  background var(--efu-theme)
91
- color var(--efu-white)
92
-
93
- &.home
94
- a
95
- border initial
101
+ color var(--efu-white)
@@ -129,6 +129,8 @@
129
129
  border-radius 0 0 12px 0
130
130
  transition .3s
131
131
  cursor pointer
132
+ if $language == 'en-US'
133
+ left -90px
132
134
 
133
135
  /.recent-post-info
134
136
  padding .3rem .5rem .3rem .5rem
@@ -8,4 +8,5 @@
8
8
  gap 1px
9
9
 
10
10
  i
11
- font-size 10px
11
+ font-size 10px
12
+ margin-right 2px
@@ -8,7 +8,6 @@
8
8
  +maxWidth768()
9
9
  border-radius 0
10
10
  background var(--efu-background)
11
- margin-bottom 0
12
11
  position -webkit-sticky
13
12
  position sticky
14
13
  z-index 1
@@ -85,130 +85,129 @@
85
85
  color var(--efu-white)
86
86
  cursor pointer
87
87
  border-radius 4px
88
+ .social-share
89
+ display flex
90
+ justify-content center
91
+ height 40px
92
+ margin .5rem auto
93
+ gap .5rem
94
+ flex-wrap wrap
95
+
96
+ .social-share-ico
97
+ display flex
98
+ justify-content center
99
+ align-items center
100
+ width 40px
101
+ height 40px
102
+ border-radius 12px
103
+ border var(--style-border)
104
+ cursor pointer
105
+ transition .3s
88
106
 
89
- .social-share
90
- display flex
91
- justify-content center
92
- height 40px
93
- margin .5rem auto
94
- gap .5rem
95
- flex-wrap wrap
96
-
97
- .social-share-ico
98
- display flex
99
- justify-content center
100
- align-items center
101
- width 40px
102
- height 40px
103
- border-radius 12px
104
- border var(--style-border)
105
- cursor pointer
106
- transition .3s
107
+ +maxWidth768()
108
+ &:nth-child(n+6)
109
+ display none
107
110
 
108
- +maxWidth768()
109
- &:nth-child(n+6)
110
- display none
111
+ &:hover
112
+ color white
111
113
 
112
- &:hover
113
- color white
114
+ .icon-qq
115
+ color #56b6e7
116
+ border-color #56b6e7
117
+ &:hover
118
+ background-color #56b6e7
114
119
 
115
- .icon-qq
116
- color #56b6e7
117
- border-color #56b6e7
118
- &:hover
119
- background-color #56b6e7
120
+ .icon-weibo
121
+ color #d44040
122
+ border-color #d44040
120
123
 
121
- .icon-weibo
122
- color #d44040
123
- border-color #d44040
124
+ &:hover
125
+ background-color #d44040
124
126
 
125
- &:hover
126
- background-color #d44040
127
+ .icon-facebook
128
+ color #415dc9
129
+ border-color #415dc9
127
130
 
128
- .icon-facebook
129
- color #415dc9
130
- border-color #415dc9
131
+ &:hover
132
+ background-color #415dc9
131
133
 
132
- &:hover
133
- background-color #415dc9
134
+ .icon-twitter
135
+ color #56b6e7
136
+ border-color #56b6e7
134
137
 
135
- .icon-twitter
136
- color #56b6e7
137
- border-color #56b6e7
138
+ &:hover
139
+ background-color #56b6e7
138
140
 
139
- &:hover
140
- background-color #56b6e7
141
+ .icon-telegram
142
+ color #56b6e7
143
+ border-color #56b6e7
141
144
 
142
- .icon-telegram
143
- color #56b6e7
144
- border-color #56b6e7
145
+ &:hover
146
+ background-color #56b6e7
145
147
 
146
- &:hover
147
- background-color #56b6e7
148
+ .icon-linkedin
149
+ color #0077b5
150
+ border-color #0077b5
148
151
 
149
- .icon-linkedin
150
- color #0077b5
151
- border-color #0077b5
152
+ &:hover
153
+ background-color #0077b5
154
+ .icon-whatsapp
155
+ color #25d366
156
+ border-color #25d366
152
157
 
153
- &:hover
154
- background-color #0077b5
155
- .icon-whatsapp
156
- color #25d366
157
- border-color #25d366
158
+ &:hover
159
+ background-color #25d366
160
+ .icon-link
161
+ color #425AEF
162
+ border-color #425AEF
158
163
 
159
- &:hover
160
- background-color #25d366
161
- .icon-link
162
- color #425AEF
163
- border-color #425AEF
164
+ &:hover
165
+ background-color #425AEF
166
+ .icon-qrcode
167
+ position relative
168
+ color #000
169
+ border-color #000
164
170
 
165
- &:hover
166
- background-color #425AEF
167
- .icon-qrcode
168
- position relative
169
- color #000
170
- border-color #000
171
+ +maxWidth900()
172
+ display none
171
173
 
172
- +maxWidth900()
173
- display none
174
+ &:hover
175
+ background-color #000
174
176
 
175
- &:hover
176
- background-color #000
177
+ .share-main
178
+ display flex
177
179
 
178
- .share-main
179
- display flex
180
+ .share-main
181
+ display none
182
+ position absolute
183
+ bottom 1.7rem
184
+ z-index 100
185
+ padding-bottom 15px
180
186
 
181
- .share-main
182
- display none
183
- position absolute
184
- bottom 1.7rem
185
- z-index 100
186
- padding-bottom 15px
187
-
188
- &-all
189
- padding 12px
190
- border-radius 12px
191
- background var(--efu-background)
192
- animation donate_effcet 0.3s 0.1s ease both
193
- flex-direction column
194
- border var(--style-border-always)
195
-
196
- .reward-dec
197
- font-size 0.6rem
198
- color var(--efu-fontcolor)!important
199
- text-align center
200
-
201
- #qrcode
202
- width 150px
203
- height 150px
204
- min-width 150px
205
- min-height 150px
206
- background var(--efu-white)
207
- padding 8px
208
- border-radius 8px
209
- margin-bottom 8px
187
+ &-all
188
+ padding 12px
189
+ border-radius 12px
190
+ background var(--efu-background)
191
+ animation donate_effcet 0.3s 0.1s ease both
192
+ flex-direction column
210
193
  border var(--style-border-always)
211
194
 
212
- img
213
- width 132px
214
- height 132px
195
+ .reward-dec
196
+ font-size 0.6rem
197
+ color var(--efu-fontcolor)!important
198
+ text-align center
199
+
200
+ #qrcode
201
+ width 150px
202
+ height 150px
203
+ min-width 150px
204
+ min-height 150px
205
+ background var(--efu-white)
206
+ padding 8px
207
+ border-radius 8px
208
+ margin-bottom 8px
209
+ border var(--style-border-always)
210
+
211
+ img
212
+ width 132px
213
+ height 132px
@@ -380,7 +380,7 @@
380
380
  height auto
381
381
  position unset
382
382
  padding 1rem 2rem
383
- background var(--efu-main)
383
+ background var(--efu-hovertext)
384
384
  border-radius 12px 12px 0 0
385
385
  +minWidth768()
386
386
  min-height 250px
@@ -34,7 +34,7 @@
34
34
  box-shadow var(--efu-shadow-border)
35
35
 
36
36
  &.pagination-post
37
- margin 0 2rem
37
+ margin 0 2rem 1rem
38
38
  background var(--efu-card-bg)
39
39
 
40
40
  +minWidth768()
@@ -10,6 +10,7 @@
10
10
  .post-tools-left
11
11
  white-space: nowrap
12
12
  display: flex
13
+ gap: .5rem
13
14
  text-overflow: ellipsis
14
15
  justify-content: center
15
16
  flex-wrap: wrap
@@ -181,7 +182,6 @@
181
182
  line-height: 39px
182
183
  box-shadow: var(--efu-shadow-green)
183
184
  border-radius: 8px
184
- margin-left: .5rem
185
185
  cursor: pointer
186
186
  text-align: center
187
187
  transition: .3s
@@ -33,12 +33,6 @@
33
33
  align-items center
34
34
  margin-bottom 8px
35
35
 
36
- .algolia-tips
37
- color var(--efu-secondtext)
38
- right 0
39
- margin-left auto
40
- opacity .8
41
-
42
36
  .search-close-button
43
37
  color var(--efu-secondtext)
44
38
  font-size 1.4em
@@ -0,0 +1,4 @@
1
+ #article-container
2
+ .inline-img
3
+ display inline-block
4
+ margin 0