hexo-theme-solitude 3.0.0 → 3.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 (46) hide show
  1. package/.github/workflows/npm-publish.yml +1 -1
  2. package/.github/workflows/release.yml +29 -0
  3. package/LICENSE +10 -18
  4. package/README.md +3 -1
  5. package/README_en-US.md +3 -1
  6. package/README_zh-Hant.md +3 -1
  7. package/_config.yml +19 -18
  8. package/languages/en.yml +0 -0
  9. package/languages/zh-CN.yml +0 -0
  10. package/languages/zh-TW.yml +0 -0
  11. package/layout/includes/footer.pug +10 -7
  12. package/layout/includes/head/config.pug +9 -9
  13. package/layout/includes/inject/body.pug +4 -4
  14. package/layout/includes/inject/head.pug +2 -2
  15. package/layout/includes/page/brevity.pug +7 -7
  16. package/layout/includes/widgets/aside/asideInfoCard.pug +18 -86
  17. package/layout/includes/widgets/home/banner.pug +0 -1
  18. package/layout/includes/widgets/home/bbTimeList.pug +4 -4
  19. package/layout/includes/widgets/page/about/contentinfo.pug +1 -1
  20. package/layout/includes/widgets/page/recentcomment/waline.pug +0 -1
  21. package/layout/index.pug +2 -2
  22. package/package.json +10 -10
  23. package/scripts/event/merge_config.js +4 -6
  24. package/scripts/filter/checkThemeConfig.js +3 -3
  25. package/scripts/helper/stylus.js +1 -1
  26. package/source/css/{_layout → _components}/capsule.styl +47 -48
  27. package/source/css/_components/expire.styl +12 -0
  28. package/source/css/_components/index.styl +17 -0
  29. package/source/css/_components/keyboard.styl +59 -0
  30. package/source/css/_components/pace.styl +39 -0
  31. package/source/css/_components/rightside.styl +63 -0
  32. package/source/css/_components/universe.styl +17 -0
  33. package/source/css/_layout/aside.styl +162 -460
  34. package/source/css/_layout/footer.styl +6 -9
  35. package/source/css/_page/_about/contentinfo.styl +1 -1
  36. package/source/css/_page/_home/home.styl +1 -1
  37. package/source/css/_page/{says.styl → brevity.styl} +54 -53
  38. package/source/css/_page/index.styl +2 -2
  39. package/source/css/index.styl +4 -1
  40. package/source/css/var.styl +2 -0
  41. package/source/js/main.js +7 -7
  42. package/source/css/_layout/expire.styl +0 -13
  43. package/source/css/_layout/keyboard.styl +0 -60
  44. package/source/css/_layout/pace.styl +0 -40
  45. package/source/css/_layout/rightside.styl +0 -58
  46. package/source/css/_layout/universe.styl +0 -18
@@ -1,5 +1,5 @@
1
1
  #about-page
2
- .myInfoAndSayHello
2
+ .myInfoAndWittyWord
3
3
  display flex
4
4
  flex-direction column
5
5
  justify-content center
@@ -1,4 +1,4 @@
1
- if hexo-config('hometop.enable') || hexo-config('says.enable')
1
+ if hexo-config('hometop.enable') || hexo-config('brevity.enable')
2
2
  #home_top
3
3
  max-width 1400px
4
4
  width 100%
@@ -1,4 +1,4 @@
1
- if hexo-config('says.home_mini')
1
+ if hexo-config('brevity.home_mini')
2
2
  #bbTimeList
3
3
  background var(--efu-card-bg)
4
4
  border-radius 12px
@@ -47,12 +47,12 @@ if hexo-config('says.home_mini')
47
47
  font-size 16px
48
48
  margin-left 1rem
49
49
 
50
- if hexo-config('says.enable')
50
+ if hexo-config('brevity.enable')
51
51
  #bber
52
52
  margin-top .5rem
53
53
  width 100%
54
54
 
55
- if hexo-config('says.style') == 2
55
+ if hexo-config('brevity.style') == 2
56
56
  .meta
57
57
  display flex
58
58
  align-items center
@@ -94,7 +94,7 @@ if hexo-config('says.enable')
94
94
  width 100%
95
95
  height 100%
96
96
 
97
- if hexo-config('says.style') == 1
97
+ if hexo-config('brevity.style') == 1
98
98
  .bber-bottom
99
99
  display flex
100
100
  justify-content space-between
@@ -161,68 +161,69 @@ if hexo-config('says.enable')
161
161
  i
162
162
  margin-right 4px
163
163
 
164
- .bber-music
165
- width 100%
166
- height 90px
167
- margin .5rem 0
168
- border-radius 8px
169
- overflow hidden
170
- border var(--style-border-always)
171
- background var(--efu-secondbg)
164
+ if hexo-config('brevity.music')
165
+ .bber-music
166
+ width 100%
167
+ height 90px
168
+ margin .5rem 0
169
+ border-radius 8px
170
+ overflow hidden
171
+ border var(--style-border-always)
172
+ background var(--efu-secondbg)
172
173
 
173
- .aplayer-lrc
174
- display none
174
+ .aplayer-lrc
175
+ display none
175
176
 
176
- .aplayer
177
- margin 0
177
+ .aplayer
178
+ margin 0
178
179
 
179
- .aplayer-info
180
- .aplayer-music
181
- height 23px
180
+ .aplayer-info
181
+ .aplayer-music
182
+ height 23px
182
183
 
183
- .aplayer-title
184
- font-size .8rem
185
- font-weight 700
186
- margin 0
187
- color var(--efu-black)
188
-
189
- .aplayer-controller
190
- align-items center
184
+ .aplayer-title
185
+ font-size .8rem
186
+ font-weight 700
187
+ margin 0
188
+ color var(--efu-black)
191
189
 
192
- .aplayer-bar-wrap
193
- padding 0
190
+ .aplayer-controller
191
+ align-items center
194
192
 
195
- .aplayer-bar
196
- background var(--efu-gray)
197
- height 8px
198
- border-radius 12px
199
- transition .3s
200
- overflow hidden
193
+ .aplayer-bar-wrap
194
+ padding 0
201
195
 
202
- .aplayer-played
203
- height 100%
196
+ .aplayer-bar
197
+ background var(--efu-gray)
198
+ height 8px
204
199
  border-radius 12px
200
+ transition .3s
201
+ overflow hidden
205
202
 
206
- .aplayer-thumb
207
- display none
203
+ .aplayer-played
204
+ height 100%
205
+ border-radius 12px
208
206
 
209
- .aplayer-loaded
210
- height 100%
211
- border-radius 12px
207
+ .aplayer-thumb
208
+ display none
212
209
 
213
- &:hover
214
- .aplayer-bar
215
- height 12px
210
+ .aplayer-loaded
211
+ height 100%
212
+ border-radius 12px
213
+
214
+ &:hover
215
+ .aplayer-bar
216
+ height 12px
216
217
 
217
- .aplayer-time
218
- position initial
218
+ .aplayer-time
219
+ position initial
219
220
 
220
- &.aplayer-withlrc
221
- .aplayer-pic
222
- height 82px
223
- width 82px
224
- margin 4px
225
- border-radius 4px
221
+ &.aplayer-withlrc
222
+ .aplayer-pic
223
+ height 82px
224
+ width 82px
225
+ margin 4px
226
+ border-radius 4px
226
227
 
227
228
  .bber-video
228
229
  position relative
@@ -9,8 +9,8 @@
9
9
  if hexo-config('recent_comments.enable') || (hexo-config('console.enable') && hexo-config('console.recentComment.enable'))
10
10
  @import "recentcomment.styl"
11
11
 
12
- if hexo-config('says.enable')
13
- @import "says.styl"
12
+ if hexo-config('brevity.enable')
13
+ @import "brevity.styl"
14
14
 
15
15
  if hexo-config('music.enable')
16
16
  @import "music.styl"
@@ -31,4 +31,7 @@ if hexo-config('comment.use')
31
31
 
32
32
  // third party
33
33
  if hexo-config('tianli_talk.enable')
34
- @import 'third_party/tianli_talk.styl'
34
+ @import 'third_party/tianli_talk.styl'
35
+
36
+ // components
37
+ @import '_components/index'
@@ -1,5 +1,7 @@
1
1
  error_img = hexo-config('errorpage.img')
2
2
 
3
+ $tag_cloud_limit = hexo-config('aside.tags.limit')
4
+
3
5
  $dark_theme = convert(hexo-config('theme_color.dark'))
4
6
  $dark_theme_op = convert(hexo-config('theme_color.dark') + '23')
5
7
  $dark_theme_op_deep = convert(hexo-config('theme_color.dark') + 'dd')
package/source/js/main.js CHANGED
@@ -150,7 +150,7 @@ const handleThemeChange = mode => {
150
150
  };
151
151
 
152
152
  const sco = {
153
- lastSayHello: "",
153
+ lastWittyWord: "",
154
154
  wasPageHidden: false,
155
155
  musicPlaying: false,
156
156
  scrollTo(elementId) {
@@ -232,15 +232,15 @@ const sco = {
232
232
  if (!consoleHideAside) return;
233
233
  consoleHideAside.classList.toggle("on", document.documentElement.classList.contains("hide-aside"));
234
234
  },
235
- changeSayHelloText() {
236
- const greetings = GLOBAL_CONFIG.aside.sayhello2;
235
+ changeWittyWord() {
236
+ const greetings = GLOBAL_CONFIG.aside.witty_words;
237
237
  const greetingElement = document.getElementById("author-info__sayhi");
238
238
  let randomGreeting;
239
239
  do {
240
240
  randomGreeting = greetings[Math.floor(Math.random() * greetings.length)];
241
- } while (randomGreeting === this.lastSayHello);
241
+ } while (randomGreeting === this.lastWittyWord);
242
242
  greetingElement.textContent = randomGreeting;
243
- this.lastSayHello = randomGreeting;
243
+ this.lastWittyWord = randomGreeting;
244
244
  },
245
245
  switchDarkMode() {
246
246
  const isDarkMode = document.documentElement.getAttribute('data-theme') === 'dark';
@@ -315,7 +315,7 @@ const sco = {
315
315
  const el = document.getElementById('author-info__sayhi');
316
316
  if (el) {
317
317
  const hours = new Date().getHours();
318
- const lang = GLOBAL_CONFIG.aside.sayhello;
318
+ const lang = GLOBAL_CONFIG.aside.state;
319
319
 
320
320
  const localData = getLocalData(['twikoo', 'WALINE_USER_META', 'WALINE_USER', '_v_Cache_Meta', 'ArtalkUser']);
321
321
 
@@ -330,7 +330,7 @@ const sco = {
330
330
  };
331
331
  const nick = localData ? (localData.nick || localData.display_name) : null;
332
332
 
333
- const prefix = this.wasPageHidden ? GLOBAL_CONFIG.aside.sayhello3.back + nick : GLOBAL_CONFIG.aside.sayhello3.prefix + nick;
333
+ const prefix = this.wasPageHidden ? GLOBAL_CONFIG.aside.witty_comment.back + nick : GLOBAL_CONFIG.aside.witty_comment.prefix + nick;
334
334
 
335
335
  const greetings = [
336
336
  { start: 0, end: 5, text: nick ? prefix : lang.goodnight },
@@ -1,13 +0,0 @@
1
- if hexo-config("expire.enable")
2
- .expire
3
- display flex
4
- align-items center
5
- border-radius 8px
6
- background-color rgba(255,0,0,.5)
7
- border-left 5px solid var(--efu-red)
8
- padding 10px 16px
9
- color var(--efu-white)
10
-
11
- i.solitude
12
- color var(--efu-white)
13
- margin-right 8px
@@ -1,60 +0,0 @@
1
- if hexo-config('keyboard.enable')
2
- #keyboard-tips
3
- position fixed
4
- top 80px
5
- left 20px
6
- z-index 999
7
- background var(--efu-maskbgdeep)
8
- border-radius 12px
9
- border var(--style-border)
10
- padding 20px
11
- display flex
12
- flex-direction column
13
- backdrop-filter saturate(180%) blur(20px)
14
- transform translateZ(0)
15
- pointer-events none
16
- box-shadow var(--efu-shadow-border)
17
- opacity 0
18
- transition .3s
19
-
20
- &.show
21
- opacity 1
22
- transition .1s
23
-
24
- .keyboardTitle
25
- font-size 12px
26
- color var(--efu-secondtext)
27
- line-height 1
28
-
29
- .keyboardList
30
- display flex
31
- flex-direction column
32
- margin-top 8px
33
-
34
- .keyboardItem
35
- display flex
36
- margin-top 4px
37
-
38
- .keyGroup
39
- display flex
40
- align-items center
41
- width 90px
42
-
43
- .key
44
- padding 0.2em 0.4em
45
- font-family inherit
46
- background-color var(--efu-card-bg)
47
- color var(--efu-fontcolor)
48
- border var(--style-border)
49
- border-color var(--efu-secondtext)
50
- border-bottom 2px solid var(--efu-secondtext)
51
- box-shadow var(--efu-shadow-border)
52
- border-radius 0.25rem
53
- overflow-wrap break-word
54
- overflow-x auto
55
- font-weight 500
56
- font-size .875em
57
- margin-right 4px
58
- vertical-align baseline
59
- line-height 1
60
- height 24px
@@ -1,40 +0,0 @@
1
- if hexo-config('loading.pace')
2
- .pace
3
- pointer-events: none
4
- user-select: none
5
- z-index: 2000
6
- position: fixed
7
- margin: auto
8
- top: 4px
9
- left: 0
10
- right: 0
11
- height: 8px
12
- border-radius: 8px
13
- width: 4rem
14
- background: var(--efu-secondbg)
15
- border: var(--style-border)
16
- overflow: hidden
17
-
18
- &.pace-inactive
19
- opacity: 0
20
- transition: .3s
21
- top: -8px
22
-
23
- .pace-progress
24
- opacity: 0
25
- transition: .3s ease-in
26
-
27
- .pace-progress
28
- box-sizing: border-box
29
- transform: translate3d(0,0,0)
30
- max-width: 200px
31
- z-index: 2000
32
- display: block
33
- position: absolute
34
- top: 0
35
- right: 100%
36
- height: 100%
37
- width: 100%
38
- background: var(--efu-logo-color)
39
- animation: gradient 2s ease infinite
40
- background-size: 200%
@@ -1,58 +0,0 @@
1
- if hexo-config('rightside.enable')
2
- #rightside
3
- position: fixed
4
- right: -2.5rem
5
- bottom: 20px
6
- z-index: 1000
7
- opacity: 0
8
- transition: all .5s
9
- &.needEndHide
10
- display block!important
11
- &.hide.needEndHide
12
- bottom 0!important
13
- transform: none !important
14
-
15
- button
16
- display: block
17
- margin-bottom: 5px
18
- width: 1.8rem
19
- height: 1.8rem
20
- border-radius: 50%
21
- background-color: var(--btn-bg)
22
- color: var(--btn-color)
23
- text-align: center
24
- font-size: 16px
25
-
26
- &.pc
27
- display: block
28
- +maxWidth900()
29
- display: none
30
-
31
- &.mobile
32
- display: none
33
-
34
- +maxWidth900()
35
- display: block
36
-
37
- &.top
38
- &:hover
39
- #percent
40
- display: none
41
- i
42
- display: block
43
- transition: all .3s
44
- transform: scale(1.3)
45
- i
46
- transition: all .3s
47
- display: none
48
- &.show
49
- display: block
50
-
51
- .rs_hide
52
- transform: translate(45px, 0)
53
- transition: all .4s
54
- opacity 0
55
-
56
- &.show
57
- opacity .8
58
- transform: translate(0, 0)
@@ -1,18 +0,0 @@
1
- // universe
2
- if hexo-config('display_mode.universe')
3
- #universe
4
- display block
5
- position fixed
6
- margin 0
7
- padding 0
8
- border 0
9
- outline 0
10
- left 0
11
- top 0
12
- width 100%
13
- height 100%
14
- pointer-events none
15
- z-index 1
16
- [data-theme=light]
17
- #universe
18
- display none