hexo-theme-solitude 1.12.0 → 1.12.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 (43) hide show
  1. package/.github/logo.svg +18 -42
  2. package/README.md +4 -15
  3. package/README_en-US.md +6 -16
  4. package/README_zh-Hant.md +12 -22
  5. package/_config.yml +26 -23
  6. package/languages/default.yml +14 -0
  7. package/languages/en.yml +14 -1
  8. package/languages/zh-CN.yml +13 -0
  9. package/languages/zh-TW.yml +13 -0
  10. package/layout/includes/body/mode.pug +3 -3
  11. package/layout/includes/inject/body.pug +2 -0
  12. package/layout/includes/inject/head.pug +2 -1
  13. package/layout/includes/widgets/home/carousel.pug +18 -1
  14. package/layout/includes/widgets/home/postList.pug +4 -3
  15. package/layout/includes/widgets/post/copyright.pug +46 -0
  16. package/layout/includes/widgets/post/postMeta.pug +1 -1
  17. package/layout/includes/widgets/post/postNav.pug +4 -4
  18. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -0
  19. package/layout/includes/widgets/third-party/news-comment/valine.pug +1 -0
  20. package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -0
  21. package/layout/post.pug +0 -22
  22. package/package.json +1 -1
  23. package/plugins.yml +6 -1
  24. package/scripts/filter/post_image.js +13 -0
  25. package/scripts/helper/page.js +6 -2
  26. package/source/css/_highlight/color.styl +69 -131
  27. package/source/css/_highlight/highlight/diff.styl +34 -62
  28. package/source/css/_highlight/prismjs/diff.styl +60 -59
  29. package/source/css/_layout/article-container.styl +1 -5
  30. package/source/css/_page/_home/carousel.styl +2 -0
  31. package/source/css/_page/music.styl +8 -1
  32. package/source/css/_page/other.styl +1 -0
  33. package/source/css/_post/commentBarrage.styl +2 -11
  34. package/source/css/_post/copyright.styl +129 -2
  35. package/source/css/_post/meta.styl +1 -31
  36. package/source/css/_post/pagination.styl +13 -0
  37. package/source/css/_post/postAI.styl +2 -3
  38. package/source/css/_post/relatedPost.styl +115 -129
  39. package/source/css/_post/tools.styl +166 -274
  40. package/source/css/third_party/snackbar.min.css +1 -1
  41. package/source/js/main.js +98 -277
  42. package/source/js/music.js +1 -0
  43. package/source/js/right_menu.js +163 -136
@@ -193,11 +193,7 @@
193
193
  border-top 1px dashed var(--efu-theme-op)
194
194
  padding-top 1rem
195
195
 
196
- h3
197
- font-size 1.1rem
198
- line-height 1.3
199
-
200
- h4
196
+ h3, h4
201
197
  font-size 1.1rem
202
198
  line-height 1.3
203
199
 
@@ -36,6 +36,8 @@ div#swiper_container
36
36
  #swiperBox.recent-post-item
37
37
  width 100%
38
38
  margin-top 0
39
+ flex 1 1 100%
40
+ max-width none
39
41
  +maxWidth798()
40
42
  display none
41
43
 
@@ -26,10 +26,13 @@ body[data-type=music]
26
26
  height 200%
27
27
  top -50%
28
28
  left -50%
29
+ background-position 0 0
29
30
  background-size 40%
30
31
  transition 0.6s
31
-
32
+ background-color rgba(0, 0, 0, 0.4)
33
+
32
34
  &:before
35
+ display none
33
36
  content ''
34
37
  background rgba(0, 0, 0, 0.4)
35
38
  backdrop-filter blur(200px)
@@ -41,6 +44,10 @@ body[data-type=music]
41
44
  width 200%
42
45
  height 200%
43
46
 
47
+ &.show
48
+ &:before
49
+ display block
50
+
44
51
  #Music-page
45
52
  max-width 1400px
46
53
 
@@ -92,6 +92,7 @@ div#banners
92
92
  +maxWidth600()
93
93
  opacity 0.06
94
94
  filter blur(8px)
95
+ z-index -1
95
96
 
96
97
  &.nowrapMove
97
98
  padding-bottom 2rem
@@ -117,23 +117,14 @@
117
117
  max-width 270px
118
118
 
119
119
  img:not(.tk-owo-emotion)
120
- display none
120
+ display none
121
121
  img.tk-owo-emotion
122
122
  width 16px
123
123
  padding 0
124
124
  margin 0
125
125
  transform translateY(2px)
126
126
 
127
- pre
128
- display none
129
-
130
- li
131
- display none
132
-
133
- blockquote
134
- display none
135
-
136
- br
127
+ pre, li, blockquote, br
137
128
  display none
138
129
 
139
130
  &::-webkit-scrollbar
@@ -4,7 +4,7 @@
4
4
  border-width 1px
5
5
  transition 0.3s
6
6
  position relative
7
- margin 80px 0 30px
7
+ margin 80px 0 .5rem
8
8
  border-radius 12px
9
9
  padding 34px 0 20px 0
10
10
  border var(--style-border-always)
@@ -84,4 +84,131 @@
84
84
  background-color var(--efu-main)
85
85
  color var(--efu-white)
86
86
  cursor pointer
87
- border-radius 4px
87
+ border-radius 4px
88
+
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
+
108
+ +maxWidth768()
109
+ &:nth-child(n+6)
110
+ display none
111
+
112
+ &:hover
113
+ color white
114
+
115
+ .icon-qq
116
+ color #56b6e7
117
+ border-color #56b6e7
118
+ &:hover
119
+ background-color #56b6e7
120
+
121
+ .icon-weibo
122
+ color #d44040
123
+ border-color #d44040
124
+
125
+ &:hover
126
+ background-color #d44040
127
+
128
+ .icon-facebook
129
+ color #415dc9
130
+ border-color #415dc9
131
+
132
+ &:hover
133
+ background-color #415dc9
134
+
135
+ .icon-twitter
136
+ color #56b6e7
137
+ border-color #56b6e7
138
+
139
+ &:hover
140
+ background-color #56b6e7
141
+
142
+ .icon-telegram
143
+ color #56b6e7
144
+ border-color #56b6e7
145
+
146
+ &:hover
147
+ background-color #56b6e7
148
+
149
+ .icon-linkedin
150
+ color #0077b5
151
+ border-color #0077b5
152
+
153
+ &:hover
154
+ background-color #0077b5
155
+ .icon-whatsapp
156
+ color #25d366
157
+ border-color #25d366
158
+
159
+ &:hover
160
+ background-color #25d366
161
+ .icon-link
162
+ color #425AEF
163
+ border-color #425AEF
164
+
165
+ &:hover
166
+ background-color #425AEF
167
+ .icon-qrcode
168
+ position relative
169
+ color #000
170
+ border-color #000
171
+
172
+ +maxWidth900()
173
+ display none
174
+
175
+ &:hover
176
+ background-color #000
177
+
178
+ .share-main
179
+ display flex
180
+
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
210
+ border var(--style-border-always)
211
+
212
+ img
213
+ width 132px
214
+ height 132px
@@ -35,8 +35,6 @@
35
35
  +maxWidth768()
36
36
  height 15rem
37
37
 
38
- /*** 顶部背景 ***/
39
-
40
38
  .post-bg
41
39
  .main-hero-waves-area
42
40
  width 100%
@@ -109,22 +107,6 @@
109
107
  left 0
110
108
  box-shadow 110px -130px 300px 60px var(--efu-main) inset
111
109
 
112
- +minWidth1300()
113
- width 70%
114
- height 100%
115
- position relative
116
- overflow hidden
117
- margin 0 -20% 0 auto
118
- transform rotate(10deg) translateY(-8%) scale(1.8)
119
- filter blur(10px)
120
- opacity 0
121
-
122
- &.loaded
123
- display block
124
- opacity .5
125
- animation showCover 1s .3s backwards
126
- transform rotate(10deg) translateY(-10%) scale(2)
127
-
128
110
  +minWidth768()
129
111
  width 70%
130
112
  height 100%
@@ -154,10 +136,6 @@
154
136
  &.loaded
155
137
  display block
156
138
 
157
- /*** 顶部背景 end ***/
158
-
159
- /*** 顶部信息 ***/
160
-
161
139
  #post-info
162
140
  top 0
163
141
  position absolute
@@ -255,22 +233,14 @@
255
233
 
256
234
  > span:first-child
257
235
  margin-left 0
258
-
259
-
260
- .post-meta-date
261
- opacity .6
262
236
 
263
- .post-meta-wordcount
237
+ .post-meta-date, .post-meta-wordcount, .post-meta-position, .post-meta-pv
264
238
  opacity .6
265
239
 
266
240
  .post-meta-separator
267
241
  margin 0 1rem 0 0
268
242
 
269
- .post-meta-position
270
- opacity .6
271
-
272
243
  .post-meta-pv
273
- opacity .6
274
244
  margin-right 8px
275
245
  padding 0 8px
276
246
  display flex
@@ -2,6 +2,10 @@
2
2
  overflow hidden
3
3
  position inherit
4
4
  border var(--style-border-always)
5
+
6
+ div:only-child
7
+ width 100%!important
8
+
5
9
  +minWidth1300()
6
10
  position fixed
7
11
  width 300px
@@ -15,6 +19,7 @@
15
19
  overflow hidden
16
20
  cursor pointer
17
21
  opacity 0
22
+
18
23
  +maxWidth768()
19
24
  border-radius 12px
20
25
  border var(--style-border-always)
@@ -23,18 +28,22 @@
23
28
  &.pagination-post
24
29
  margin-top 1.5rem
25
30
  background var(--efu-card-bg)
31
+
26
32
  +minWidth768()
27
33
  border-radius 12px
28
34
  margin-top 1rem
35
+
29
36
  +minWidth1300()
30
37
  margin-top 0
31
38
 
32
39
  .next-post, .prev-post, .next-post.pull-right, .prev-post.pull-left
33
40
  background var(--efu-secondbg)
41
+
34
42
  +minWidth1300()
35
43
  background var(--efu-maskbgdeep)
36
44
  backdrop-filter blur(5px)
37
45
  transform translateZ(0)
46
+
38
47
  +maxWidth768()
39
48
  background var(--efu-card-bg)
40
49
 
@@ -45,6 +54,7 @@
45
54
  .prev-post.pull-left
46
55
  +minWidth1300()
47
56
  display none
57
+
48
58
  +maxWidth768()
49
59
  border-bottom var(--style-border-always)
50
60
 
@@ -54,9 +64,11 @@
54
64
 
55
65
  .next-post, .prev-post
56
66
  width 50%
67
+
57
68
  +minWidth1300()
58
69
  text-align left
59
70
  position relative
71
+
60
72
  +maxWidth768()
61
73
  width 100%
62
74
 
@@ -136,6 +148,7 @@
136
148
  padding 1rem 2rem
137
149
  width 100%
138
150
  transform translate(0, -50%)
151
+
139
152
  +minWidth768()
140
153
  padding 1rem 1.5rem 1rem 1.5rem
141
154
  position relative
@@ -4,7 +4,7 @@
4
4
  padding 12px
5
5
  line-height 1.3
6
6
  border var(--style-border-always)
7
- margin-top 16px;
7
+ margin-top 16px
8
8
  min-height 101.22px
9
9
  box-shadow var(--efu-shadow-border)
10
10
 
@@ -81,13 +81,12 @@
81
81
 
82
82
  .blinking-cursor
83
83
  background-color var(--efu-lighttext)
84
- width: 14px
84
+ width 14px
85
85
  height 14px
86
86
  border-radius 16px
87
87
  display inline-block
88
88
  vertical-align middle
89
89
  animation blinking-cursor 2s infinite
90
- -webkit-animation blinking-cursor 2s infinite
91
90
  margin-left 4px
92
91
  margin-bottom 3px
93
92
  transform scale(.6)
@@ -1,163 +1,149 @@
1
1
  .relatedPosts
2
- margin-top: 2rem
2
+ margin-top 2rem
3
3
  user-select none
4
4
 
5
- > .relatedPosts-list
6
- > div
7
- position: relative
8
- display: inline-block
9
- overflow: hidden
10
- margin: 3px
11
- width: calc(33.333% - 6px)
12
- height: 200px
13
- background: var(--efu-main)
14
- vertical-align: bottom
5
+ .relatedPosts-list > div
6
+ position relative
7
+ display inline-block
8
+ overflow hidden
9
+ margin 3px
10
+ width calc(33.333% - 6px)
11
+ height 200px
12
+ background var(--efu-main)
13
+ vertical-align bottom
15
14
 
16
15
  .cover
17
- width: 360px
18
- min-width: 45%
19
- height: 100%
20
- transition: all .6s ease 0s
21
- object-fit: cover
22
- filter: brightness(.9)
23
- max-width: 45%
16
+ width 360px
17
+ min-width 45%
18
+ height 100%
19
+ transition all .6s ease 0s
20
+ object-fit cover
21
+ filter brightness(.9)
22
+ max-width 45%
24
23
 
25
24
  &::after
26
- content: ' '
27
- display: block
28
- position: absolute
29
- z-index: 0
30
- top: 0
31
- left: 0
32
- width: 100%
33
- height: 100%
34
- background: url(error_img) 50%
35
- background-size: cover
25
+ content ' '
26
+ display block
27
+ position absolute
28
+ z-index 0
29
+ top 0
30
+ left 0
31
+ width 100%
32
+ height 100%
33
+ background url(error_img) 50%
34
+ background-size cover
36
35
 
37
36
  .content
38
- padding: 0 1rem
39
- width: 100%
37
+ padding 0 1rem
38
+ width 100%
40
39
 
41
40
  .date
42
- color: var(--light-grey)
43
- font-size: 90%
41
+ color var(--light-grey)
42
+ font-size 90%
44
43
 
45
44
  .title
46
- color: var(--efu-white)
47
- -webkit-line-clamp: 2
48
- margin-right: auto
45
+ color var(--efu-white)
46
+ -webkit-line-clamp 2
47
+ margin-right auto
49
48
 
50
49
  a
51
- display: flex
52
- width: 100%
53
- height: 100%
50
+ display flex
51
+ width 100%
52
+ height 100%
54
53
 
55
- > .headline
56
- margin-bottom: .8rem
57
- font-weight: 700
58
- font-size: 20px
59
- display: flex
60
- align-items: center
54
+ .headline
55
+ margin-bottom .5rem
56
+ font-weight 700
57
+ font-size 20px
58
+ display flex
59
+ align-items center
61
60
 
62
61
  span
63
- margin-right: auto
64
- margin-left: 8px
62
+ margin-right auto
63
+ margin-left 8px
65
64
 
66
65
  a
67
- font-weight: 400
66
+ font-weight 400
68
67
 
69
68
  &:hover
70
69
  color var(--efu-lighttext)
71
70
 
72
71
  &-link
73
- display: block
74
- justify-content: space-between
75
- margin-left: 8px
76
- font-size: 13px
72
+ display block
73
+ justify-content space-between
74
+ margin-left 8px
75
+ font-size 13px
77
76
 
78
77
  .relatedPosts-list
79
- display: flex
80
- flex-wrap: wrap
81
- justify-content: space-between
82
- flex-direction: column
83
-
84
- @media screen and (max-width: 768px)
85
- .relatedPosts
86
- > .relatedPosts-list
87
- > div
88
- margin: 2px
89
- width: calc(50% - 4px)
90
- height: 150px
91
-
92
- @media screen and (max-width: 600px)
93
- .relatedPosts
94
- > .relatedPosts-list
95
- > div
96
- width: calc(100% - 4px)
97
-
98
- @media screen and (min-width: 768px)
99
- #post
100
- > div.relatedPosts
101
- > div.relatedPosts-list
102
- > div
103
- -webkit-mask-image: -webkit-radial-gradient(center, #fff, #000)
104
- border-radius: 12px
105
-
106
- .relatedPosts
107
- > .headline
108
- font-size: .8em
109
-
110
- @media screen and (max-width: 1300px)
111
- #post
112
- > div.relatedPosts
113
- > div.relatedPosts-list
114
- > div:nth-child(7)
115
- display: none
116
-
117
- > div:nth-child(8)
118
- display: none
119
-
120
- .relatedPosts
121
- > .relatedPosts-list
122
- > div
123
- background: var(--efu-secondbg)
124
- border: var(--style-border)
125
- transition: .3s
126
- cursor: pointer
127
- overflow: hidden
128
- width: 100%
129
- margin-bottom: 8px
130
-
131
- &:hover
132
- background: var(--efu-main)
133
-
134
- .content
135
- .title
136
- color: var(--efu-fontcolor)
137
- font-weight: 700
138
- line-height: 1.5
139
- -webkit-line-clamp: 4
140
- font-size: .9rem
141
- text-align: left
142
- overflow: hidden
143
-
144
- .date
145
- color: var(--efu-fontcolor)
146
- display: none
147
-
148
- &:hover
149
- a
150
- .title
151
- color: var(--efu-white)
78
+ display flex
79
+ flex-wrap wrap
80
+ justify-content space-between
81
+ flex-direction column
82
+
83
+ +maxWidth768()
84
+ .relatedPosts,
85
+ .relatedPosts-list > div
86
+ margin 2px
87
+ width calc(50% - 4px)
88
+ height 150px
89
+
90
+ +maxWidth600()
91
+ .relatedPosts,
92
+ .relatedPosts-list > div
93
+ width calc(100% - 4px)
94
+
95
+ +minWidth768()
96
+ #post > div.relatedPosts > div.relatedPosts-list > div
97
+ -webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
98
+ border-radius 12px
99
+
100
+ .relatedPosts > .headline
101
+ font-size .8em
102
+
103
+ +maxWidth1300()
104
+ #post > div.relatedPosts > div.relatedPosts-list > div:nth-child(7),
105
+ #post > div.relatedPosts > div.relatedPosts-list > div:nth-child(8)
106
+ display none
107
+
108
+ .relatedPosts > .relatedPosts-list > div
109
+ background var(--efu-secondbg)
110
+ border var(--style-border)
111
+ transition .3s
112
+ cursor pointer
113
+ overflow hidden
114
+ width 100%
115
+ margin-bottom 8px
116
+
117
+ &:hover
118
+ background var(--efu-main)
119
+
120
+ .content
121
+ .title
122
+ color var(--efu-fontcolor)
123
+ font-weight 700
124
+ line-height 1.5
125
+ -webkit-line-clamp 4
126
+ font-size .9rem
127
+ text-align left
128
+ overflow hidden
129
+
130
+ .date
131
+ color var(--efu-fontcolor)
132
+ display none
133
+
134
+ &:hover
135
+ a
136
+ .title
137
+ color var(--efu-white)
152
138
 
153
- @media screen and (max-width: 768px)
139
+ +maxWidth768()
154
140
  .relatedPosts
155
- display: none
141
+ display none
156
142
 
157
143
  > .relatedPosts-list
158
144
  > div
159
- border-radius: 4px
145
+ border-radius 4px
160
146
 
161
- @media screen and (min-width: 768px)
147
+ +minWidth768()
162
148
  .relatedPosts
163
- margin-top: 1rem
149
+ margin-top .5rem