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.
- package/.github/logo.svg +18 -42
- package/README.md +4 -15
- package/README_en-US.md +6 -16
- package/README_zh-Hant.md +12 -22
- package/_config.yml +26 -23
- package/languages/default.yml +14 -0
- package/languages/en.yml +14 -1
- package/languages/zh-CN.yml +13 -0
- package/languages/zh-TW.yml +13 -0
- package/layout/includes/body/mode.pug +3 -3
- package/layout/includes/inject/body.pug +2 -0
- package/layout/includes/inject/head.pug +2 -1
- package/layout/includes/widgets/home/carousel.pug +18 -1
- package/layout/includes/widgets/home/postList.pug +4 -3
- package/layout/includes/widgets/post/copyright.pug +46 -0
- package/layout/includes/widgets/post/postMeta.pug +1 -1
- package/layout/includes/widgets/post/postNav.pug +4 -4
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -0
- package/layout/includes/widgets/third-party/news-comment/valine.pug +1 -0
- package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -0
- package/layout/post.pug +0 -22
- package/package.json +1 -1
- package/plugins.yml +6 -1
- package/scripts/filter/post_image.js +13 -0
- package/scripts/helper/page.js +6 -2
- package/source/css/_highlight/color.styl +69 -131
- package/source/css/_highlight/highlight/diff.styl +34 -62
- package/source/css/_highlight/prismjs/diff.styl +60 -59
- package/source/css/_layout/article-container.styl +1 -5
- package/source/css/_page/_home/carousel.styl +2 -0
- package/source/css/_page/music.styl +8 -1
- package/source/css/_page/other.styl +1 -0
- package/source/css/_post/commentBarrage.styl +2 -11
- package/source/css/_post/copyright.styl +129 -2
- package/source/css/_post/meta.styl +1 -31
- package/source/css/_post/pagination.styl +13 -0
- package/source/css/_post/postAI.styl +2 -3
- package/source/css/_post/relatedPost.styl +115 -129
- package/source/css/_post/tools.styl +166 -274
- package/source/css/third_party/snackbar.min.css +1 -1
- package/source/js/main.js +98 -277
- package/source/js/music.js +1 -0
- package/source/js/right_menu.js +163 -136
@@ -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
|
|
@@ -117,23 +117,14 @@
|
|
117
117
|
max-width 270px
|
118
118
|
|
119
119
|
img:not(.tk-owo-emotion)
|
120
|
-
|
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
|
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
|
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
|
2
|
+
margin-top 2rem
|
3
3
|
user-select none
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
18
|
-
min-width
|
19
|
-
height
|
20
|
-
transition
|
21
|
-
object-fit
|
22
|
-
filter
|
23
|
-
max-width
|
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
|
28
|
-
position
|
29
|
-
z-index
|
30
|
-
top
|
31
|
-
left
|
32
|
-
width
|
33
|
-
height
|
34
|
-
background
|
35
|
-
background-size
|
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
|
39
|
-
width
|
37
|
+
padding 0 1rem
|
38
|
+
width 100%
|
40
39
|
|
41
40
|
.date
|
42
|
-
color
|
43
|
-
font-size
|
41
|
+
color var(--light-grey)
|
42
|
+
font-size 90%
|
44
43
|
|
45
44
|
.title
|
46
|
-
color
|
47
|
-
-webkit-line-clamp
|
48
|
-
margin-right
|
45
|
+
color var(--efu-white)
|
46
|
+
-webkit-line-clamp 2
|
47
|
+
margin-right auto
|
49
48
|
|
50
49
|
a
|
51
|
-
display
|
52
|
-
width
|
53
|
-
height
|
50
|
+
display flex
|
51
|
+
width 100%
|
52
|
+
height 100%
|
54
53
|
|
55
|
-
|
56
|
-
margin-bottom
|
57
|
-
font-weight
|
58
|
-
font-size
|
59
|
-
display
|
60
|
-
align-items
|
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
|
64
|
-
margin-left
|
62
|
+
margin-right auto
|
63
|
+
margin-left 8px
|
65
64
|
|
66
65
|
a
|
67
|
-
font-weight
|
66
|
+
font-weight 400
|
68
67
|
|
69
68
|
&:hover
|
70
69
|
color var(--efu-lighttext)
|
71
70
|
|
72
71
|
&-link
|
73
|
-
display
|
74
|
-
justify-content
|
75
|
-
margin-left
|
76
|
-
font-size
|
72
|
+
display block
|
73
|
+
justify-content space-between
|
74
|
+
margin-left 8px
|
75
|
+
font-size 13px
|
77
76
|
|
78
77
|
.relatedPosts-list
|
79
|
-
display
|
80
|
-
flex-wrap
|
81
|
-
justify-content
|
82
|
-
flex-direction
|
83
|
-
|
84
|
-
|
85
|
-
.relatedPosts
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
.relatedPosts
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
.relatedPosts
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
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
|
-
|
139
|
+
+maxWidth768()
|
154
140
|
.relatedPosts
|
155
|
-
display
|
141
|
+
display none
|
156
142
|
|
157
143
|
> .relatedPosts-list
|
158
144
|
> div
|
159
|
-
border-radius
|
145
|
+
border-radius 4px
|
160
146
|
|
161
|
-
|
147
|
+
+minWidth768()
|
162
148
|
.relatedPosts
|
163
|
-
margin-top
|
149
|
+
margin-top .5rem
|