hexo-theme-solitude 1.12.0 → 1.12.2

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 (50) hide show
  1. package/.github/logo.svg +18 -42
  2. package/README.md +7 -16
  3. package/README_en-US.md +7 -17
  4. package/README_zh-Hant.md +13 -23
  5. package/_config.yml +27 -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/page/about/other.pug +71 -70
  16. package/layout/includes/widgets/post/copyright.pug +46 -0
  17. package/layout/includes/widgets/post/postMeta.pug +1 -1
  18. package/layout/includes/widgets/post/postNav.pug +4 -4
  19. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -0
  20. package/layout/includes/widgets/third-party/news-comment/valine.pug +1 -0
  21. package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -0
  22. package/layout/post.pug +0 -22
  23. package/package.json +1 -1
  24. package/plugins.yml +6 -1
  25. package/scripts/event/merge_config.js +1 -0
  26. package/scripts/filter/post_image.js +13 -0
  27. package/scripts/helper/page.js +6 -2
  28. package/scripts/tags/btns.js +35 -0
  29. package/source/css/_global/index.styl +1 -0
  30. package/source/css/_highlight/color.styl +69 -131
  31. package/source/css/_highlight/highlight/diff.styl +34 -62
  32. package/source/css/_highlight/prismjs/diff.styl +60 -59
  33. package/source/css/_layout/article-container.styl +1 -5
  34. package/source/css/_layout/recent-post.styl +19 -7
  35. package/source/css/_page/_home/carousel.styl +2 -0
  36. package/source/css/_page/music.styl +8 -1
  37. package/source/css/_page/other.styl +1 -0
  38. package/source/css/_post/commentBarrage.styl +2 -11
  39. package/source/css/_post/copyright.styl +129 -2
  40. package/source/css/_post/meta.styl +1 -31
  41. package/source/css/_post/pagination.styl +13 -0
  42. package/source/css/_post/postAI.styl +2 -3
  43. package/source/css/_post/relatedPost.styl +115 -129
  44. package/source/css/_post/tools.styl +166 -274
  45. package/source/css/_tags/btns.styl +212 -0
  46. package/source/css/third_party/snackbar.min.css +1 -1
  47. package/source/css/third_party/tianli_talk.styl +16 -1
  48. package/source/js/main.js +97 -277
  49. package/source/js/music.js +1 -0
  50. package/source/js/right_menu.js +163 -136
@@ -5,75 +5,47 @@ figure.highlight
5
5
  background var(--efu-hl-bg)
6
6
  border-radius 6px
7
7
  display initial
8
- pre .deletion
9
- color $highlight-deletion
10
8
 
11
- pre .addition
12
- color $highlight-addition
9
+ .keyword
10
+ .attr
11
+ .variable
12
+ .literal
13
+ .property
14
+ color $highlight-variable-light
13
15
 
14
- pre .meta
15
- color $highlight-purple
16
+ .number
17
+ color $highlight-number-light
16
18
 
17
- pre
18
- .comment
19
- color $highlight-comment
19
+ .string
20
+ color $highlight-string-light
20
21
 
21
- .variable,
22
- .attribute,
23
- .regexp,
24
- .ruby .constant,
25
- .xml .tag .title,
26
- .xml .pi,
27
- .xml .doctype,
28
- .html .doctype,
29
- .css .id,
30
- .tag .name,
31
- .css .class,
32
- .css .pseudo
33
- color $highlight-red
22
+ .built_in
23
+ .title
24
+ .params
25
+ .name
26
+ color $highlight-title-light
34
27
 
35
- .tag
36
- color $highlight-aqua
28
+ .emphasis
29
+ color $highlight-emphasis-light
37
30
 
38
- .number,
39
- .preprocessor,
40
- .literal,
41
- .params,
42
- .constant,
43
- .command
44
- color $highlight-orange
31
+ [data-theme=dark] &
32
+ .keyword
33
+ .attr
34
+ .variable
35
+ .property
36
+ color $highlight-variable-dark
45
37
 
46
- .built_in
47
- color $highlight-yellow
48
-
49
- .ruby .class .title,
50
- .css .rules .attribute,
51
- .string,
52
- .value,
53
- .inheritance,
54
- .header,
55
- .ruby .symbol,
56
- .xml .cdata,
57
- .special,
58
- .number,
59
- .formula
60
- color $highlight-green
38
+ .number
39
+ color $highlight-number-dark
61
40
 
62
- .keyword,
63
- .title,
64
- .css .hexcolor
65
- color: $highlight-aqua
41
+ .string
42
+ color $highlight-string-dark
66
43
 
67
- .function,
68
- .python .decorator,
69
- .python .title,
70
- .ruby .function .title,
71
- .ruby .title .keyword,
72
- .perl .sub,
73
- .javascript .title,
74
- .coffeescript .title
75
- color $highlight-blue
44
+ .built_in
45
+ .built_in
46
+ .title
47
+ .params
48
+ color $highlight-title-dark
76
49
 
77
- .tag .attr,
78
- .javascript .function
79
- color $highlight-purple
50
+ .emphasis
51
+ color $highlight-emphasis-dark
@@ -1,79 +1,80 @@
1
1
  pre[class*='language-']
2
- .token
3
- &.function,
4
- &.punctuation
5
- color $highlight-blue
6
2
 
7
- .token.comment,
8
- .token.prolog,
9
- .token.doctype,
10
- .token.cdata
11
- color $highlight-comment
3
+ .keyword
4
+ .function
5
+ color $highlight-variable-light
12
6
 
13
- .token.namespace
14
- opacity: .7
7
+ .operator
8
+ color $highlight-variable-light
15
9
 
16
- .token.operator,
17
- .token.boolean,
18
- .token.number
19
- color: $highlight-orange
10
+ .number
11
+ color $highlight-number-light
20
12
 
21
- .token.property
22
- color: $highlight-yellow
13
+ .property
14
+ .class-name
15
+ .title
16
+ color $highlight-title-light
23
17
 
24
- .token.tag
25
- color: $highlight-blue
18
+ .string
19
+ color $highlight-string-light
20
+
21
+ .parameter
22
+ color $highlight-parameter-light
26
23
 
27
- .token.string
28
- color: $highlight-green
24
+ .blockquote
25
+ cikir $highlight-emphasis-light
29
26
 
30
- .token.selector
31
- color: $highlight-deletion
27
+ .comment
28
+ color $highlight-comment-light
32
29
 
33
- .token.attr-name
34
- color: $highlight-orange
30
+ .atrule
31
+ color $highlight-emphasis-light
35
32
 
36
- .token.entity,
37
- .token.url,
38
- .language-css .token.string,
39
- .style .token.string
40
- color: $highlight-aqua
33
+ .boolean
34
+ color $highlight-important-light
41
35
 
42
- .token.attr-value,
43
- .token.keyword,
44
- .token.control,
45
- .token.directive,
46
- .token.unit
47
- color: $highlight-yellow
36
+ .deleted
37
+ color $highlight-deleted
48
38
 
49
- .token.statement,
50
- .token.regex,
51
- .token.atrule
52
- color: $highlight-aqua
39
+ .inserted
40
+ color $highlight-inserted
53
41
 
54
- .token.placeholder,
55
- .token.variable
56
- color: $highlight-blue
42
+ [data-theme='dark'] &
43
+ .keyword
44
+ .function
45
+ color $highlight-variable-dark
57
46
 
58
- .token.deleted
59
- color: var(--efu-red)
47
+ .operator
48
+ color $highlight-variable-dark
60
49
 
61
- .token.inserted
62
- color: var(--efu-green)
50
+ .number
51
+ color $highlight-number-dark
63
52
 
64
- .token.italic
65
- font-style: italic
53
+ .property
54
+ .class-name
55
+ .title
56
+ color $highlight-title-dark
66
57
 
67
- .token.important,
68
- .token.bold
69
- font-weight: bold
58
+ .string
59
+ color $highlight-string-dark
60
+
61
+ .parameter
62
+ color $highlight-parameter-dark
70
63
 
71
- .token.important
72
- color: $highlight-orange
64
+ .blockquote
65
+ color $highlight-emphasis-dark
73
66
 
74
- .token.entity
75
- cursor: help
67
+ .comment
68
+ color $highlight-comment-dark
76
69
 
77
- pre > code.highlight
78
- outline: .4em solid $highlight-orange
79
- outline-offset: .4em
70
+ .atrule
71
+ color $highlight-emphasis-dark
72
+
73
+ .boolean
74
+ color $highlight-important-dark
75
+
76
+ .deleted
77
+ color $highlight-deleted
78
+
79
+ .inserted
80
+ color $highlight-inserted
@@ -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
 
@@ -32,13 +32,6 @@ if hexo-config('index_post_list.direction') == "column"
32
32
  cursor pointer
33
33
  border var(--style-border)
34
34
 
35
- +minWidth1300()
36
- flex-direction column
37
- width 100%
38
- flex 1 1 40%
39
- max-width 50%
40
- box-shadow var(--efu-shadow-border)
41
-
42
35
  +maxWidth1300()
43
36
  margin-bottom .5rem
44
37
 
@@ -238,6 +231,25 @@ if hexo-config('index_post_list.direction') == "column"
238
231
  .sticky
239
232
  color var(--efu-fontcolor)
240
233
 
234
+ if hexo-config('index_post_list.direction') == "column" && hexo-config('index_post_list.column') == 2
235
+ #recent-posts
236
+ > .recent-post-item
237
+ +minWidth1300()
238
+ flex-direction column
239
+ width 100%
240
+ flex 1 1 40%
241
+ max-width 50%
242
+ box-shadow var(--efu-shadow-border)
243
+ else if hexo-config('index_post_list.direction') == "column" && hexo-config('index_post_list.column') == 3
244
+ #recent-posts
245
+ > .recent-post-item
246
+ +minWidth1300()
247
+ flex-direction column
248
+ width 100%
249
+ flex 1 1 33.3%
250
+ max-width 32.6%
251
+ box-shadow var(--efu-shadow-border)
252
+
241
253
  else if hexo-config('index_post_list.direction') == "row"
242
254
  #recent-posts
243
255
  position relative
@@ -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)