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,19 +1,18 @@
1
- if hexo-config('capsule.enable')
2
- @keyframes changeright
3
- 0%, 50%, 100%
4
- transform: rotate(0deg) scale(1.1)
5
- box-shadow: 0 0 2px #ffffff00
6
- 25%, 75%
7
- transform: rotate(90deg) scale(1.1)
8
- box-shadow: 0 0 14px #ffffff
9
-
10
- @keyframes playingShadow
1
+ @keyframes changeright
2
+ 0%, 50%, 100%
3
+ transform: rotate(0deg) scale(1.1)
4
+ box-shadow: 0 0 2px #ffffff00
5
+ 25%, 75%
6
+ transform: rotate(90deg) scale(1.1)
7
+ box-shadow: 0 0 14px #ffffff
8
+
9
+ @keyframes playingShadow
11
10
  0%, 100%
12
11
  box-shadow: 0 0px 12px -3px var(--efu-none)
13
12
  50%
14
13
  box-shadow: 0 0px 12px 0px var(--efu-main)
15
14
 
16
- @keyframes lightBar
15
+ @keyframes lightBar
17
16
  0%, 100%
18
17
  opacity: 0.1
19
18
  60%
@@ -21,11 +20,11 @@ if hexo-config('capsule.enable')
21
20
 
22
21
  .aplayer.aplayer-narrow
23
22
  .aplayer-body,
24
- .aplayer-pic
23
+ .aplayer-pic
25
24
  height: 66px
26
25
  width: 66px
27
26
 
28
- #nav-music
27
+ #nav-music
29
28
  display: flex
30
29
  align-items: center
31
30
  z-index: 12
@@ -39,41 +38,41 @@ if hexo-config('capsule.enable')
39
38
  border-radius: 40px
40
39
  overflow: hidden
41
40
 
42
- &:active
41
+ &:active
43
42
  transform: scale(0.97)
44
43
 
45
- &.playing
44
+ &.playing
46
45
  border: var(--style-border)
47
46
  box-shadow: 0 0px 12px -3px var(--efu-none)
48
47
  animation: playingShadow 5s linear infinite
49
48
 
50
49
  .aplayer.aplayer-withlrc
51
- .aplayer-pic
50
+ .aplayer-pic
52
51
  box-shadow: 0 0 14px #ffffffa6
53
52
  transform: rotate(0deg) scale(1.1)
54
53
  border-color: var(--efu-white)
55
- animation-play-state: running
54
+ animation-play-state: running
56
55
 
57
- .aplayer-info
56
+ .aplayer-info
58
57
  color: var(--efu-white)
59
58
 
60
- #nav-music-hoverTips
59
+ #nav-music-hoverTips
61
60
  width: 0
62
61
 
63
- .aplayer
62
+ .aplayer
64
63
  background: var(--efu-main)
65
64
  border: var(--style-border-hover)
66
65
  backdrop-filter: saturate(180%) blur(20px)
67
66
  transform: translateZ(0)
68
67
 
69
- .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played
68
+ .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played
70
69
  animation-play-state: running
71
70
 
72
- &:hover:not(.playing) #nav-music-hoverTips
71
+ &:hover:not(.playing) #nav-music-hoverTips
73
72
  opacity: 1
74
73
 
75
74
  .aplayer.aplayer-withlrc
76
- .aplayer-pic
75
+ .aplayer-pic
77
76
  height: 25px
78
77
  width: 25px
79
78
  border-radius: 40px
@@ -84,7 +83,7 @@ if hexo-config('capsule.enable')
84
83
  animation: changeright 24s linear infinite
85
84
  animation-play-state: paused
86
85
 
87
- .aplayer-info
86
+ .aplayer-info
88
87
  height: 100%
89
88
  color: var(--efu-fontcolor)
90
89
  margin: 0
@@ -92,7 +91,7 @@ if hexo-config('capsule.enable')
92
91
  display: flex
93
92
  align-items: center
94
93
 
95
- #nav-music-hoverTips
94
+ #nav-music-hoverTips
96
95
  color: var(--efu-white)
97
96
  background: var(--efu-main)
98
97
  width: 100%
@@ -109,7 +108,7 @@ if hexo-config('capsule.enable')
109
108
  z-index: 2
110
109
  transition: 0.3s
111
110
 
112
- .aplayer
111
+ .aplayer
113
112
  background: var(--efu-card-bg)
114
113
  border-radius: 60px
115
114
  height: 41px
@@ -121,16 +120,16 @@ if hexo-config('capsule.enable')
121
120
 
122
121
  .aplayer-notice,
123
122
  .aplayer-miniswitcher,
124
- .aplayer-list
123
+ .aplayer-list
125
124
  display: none
126
125
 
127
- .aplayer-body
126
+ .aplayer-body
128
127
  position: relative
129
128
  display: flex
130
129
  align-items: center
131
130
 
132
- .aplayer-info
133
- .aplayer-music
131
+ .aplayer-info
132
+ .aplayer-music
134
133
  margin: 0
135
134
  display: flex
136
135
  align-items: center
@@ -139,7 +138,7 @@ if hexo-config('capsule.enable')
139
138
  z-index: 1
140
139
  height: 100%
141
140
 
142
- .aplayer-title
141
+ .aplayer-title
143
142
  cursor: pointer
144
143
  line-height: 1
145
144
  display: inline-block
@@ -150,35 +149,35 @@ if hexo-config('capsule.enable')
150
149
  transition: 0.3s
151
150
  user-select: none
152
151
 
153
- .aplayer-controller
152
+ .aplayer-controller
154
153
  position: absolute
155
154
  width: 100%
156
155
  height: 100%
157
156
  top: 0
158
157
  left: 0
159
158
 
160
- .aplayer-bar-wrap
159
+ .aplayer-bar-wrap
161
160
  margin: 0
162
161
  padding: 0
163
162
 
164
- .aplayer-bar
163
+ .aplayer-bar
165
164
  height: 100%
166
165
  background: 0 0
167
166
 
168
- .aplayer-loaded
167
+ .aplayer-loaded
169
168
  display: none
170
169
 
171
- .aplayer-played
170
+ .aplayer-played
172
171
  height: 100%
173
172
  opacity: 0.1
174
173
  background-color: var(--efu-white) !important
175
174
  animation: lightBar 5s ease infinite
176
175
  animation-play-state: paused
177
176
 
178
- .aplayer-pic
177
+ .aplayer-pic
179
178
  pointer-events: none
180
179
 
181
- .aplayer-button
180
+ .aplayer-button
182
181
  bottom: 50%
183
182
  right: 50%
184
183
  transform: translate(50%, 50%)
@@ -186,44 +185,44 @@ if hexo-config('capsule.enable')
186
185
  transition: 0.3s
187
186
  pointer-events all
188
187
 
189
- &:has(.aplayer-button.aplayer-play)
188
+ &:has(.aplayer-button.aplayer-play)
190
189
  animation-play-state: paused
191
190
  transform: rotate(0deg) scale(1) !important
192
191
 
193
192
  margin-left: 8px
194
193
 
195
194
  .aplayer-info .aplayer-controller .aplayer-time,
196
- .aplayer-info .aplayer-music .aplayer-author
195
+ .aplayer-info .aplayer-music .aplayer-author
197
196
  display: none
198
197
 
199
- &.aplayer-withlist .aplayer-info
198
+ &.aplayer-withlist .aplayer-info
200
199
  border: none
201
200
 
202
- .aplayer-lrc
201
+ .aplayer-lrc
203
202
  width: 0
204
203
  opacity: 0
205
204
  transition: 0.3s
206
205
  margin-bottom: -15px
207
206
 
208
- p.aplayer-lrc-current
207
+ p.aplayer-lrc-current
209
208
  color: var(--efu-white)
210
209
  border: none
211
210
  min-height: 20px
212
211
  filter: none
213
212
 
214
213
  &:after,
215
- &:before
214
+ &:before
216
215
  display: none
217
216
 
218
- p
217
+ p
219
218
  color: #ffffffb3
220
219
  filter: blur(.8px)
221
220
 
222
- &.stretch .aplayer.aplayer-withlrc .aplayer-lrc
221
+ &.stretch .aplayer.aplayer-withlrc .aplayer-lrc
223
222
  width: 200px
224
223
  margin-left: 8px
225
224
  opacity: 1
226
225
 
227
226
  .aplayer-thumb
228
- width: 0!important
229
- height: 0!important
227
+ width: 0 !important
228
+ height: 0 !important
@@ -0,0 +1,12 @@
1
+ .expire
2
+ display flex
3
+ align-items center
4
+ border-radius 8px
5
+ background-color rgba(255, 0, 0, .5)
6
+ border-left 5px solid var(--efu-red)
7
+ padding 10px 16px
8
+ color var(--efu-white)
9
+
10
+ i.solitude
11
+ color var(--efu-white)
12
+ margin-right 8px
@@ -0,0 +1,17 @@
1
+ if hexo-config('capsule.enable')
2
+ @import 'capsule.styl'
3
+
4
+ if hexo-config('rightside.enable')
5
+ @import 'rightside.styl'
6
+
7
+ if hexo-config('expire.enable')
8
+ @import 'expire.styl'
9
+
10
+ if hexo-config('keyboard.enable')
11
+ @import 'keyboard.styl'
12
+
13
+ if hexo-config('loading.pace')
14
+ @import 'pace.styl'
15
+
16
+ if hexo-config('display_mode.universe')
17
+ @import 'universe.styl'
@@ -0,0 +1,59 @@
1
+ #keyboard-tips
2
+ position fixed
3
+ top 80px
4
+ left 20px
5
+ z-index 999
6
+ background var(--efu-maskbgdeep)
7
+ border-radius 12px
8
+ border var(--style-border)
9
+ padding 20px
10
+ display flex
11
+ flex-direction column
12
+ backdrop-filter saturate(180%) blur(20px)
13
+ transform translateZ(0)
14
+ pointer-events none
15
+ box-shadow var(--efu-shadow-border)
16
+ opacity 0
17
+ transition .3s
18
+
19
+ &.show
20
+ opacity 1
21
+ transition .1s
22
+
23
+ .keyboardTitle
24
+ font-size 12px
25
+ color var(--efu-secondtext)
26
+ line-height 1
27
+
28
+ .keyboardList
29
+ display flex
30
+ flex-direction column
31
+ margin-top 8px
32
+
33
+ .keyboardItem
34
+ display flex
35
+ margin-top 4px
36
+
37
+ .keyGroup
38
+ display flex
39
+ align-items center
40
+ width 90px
41
+
42
+ .key
43
+ padding 0.2em 0.4em
44
+ font-family inherit
45
+ background-color var(--efu-card-bg)
46
+ color var(--efu-fontcolor)
47
+ border var(--style-border)
48
+ border-color var(--efu-secondtext)
49
+ border-bottom 2px solid var(--efu-secondtext)
50
+ box-shadow var(--efu-shadow-border)
51
+ border-radius 0.25rem
52
+ overflow-wrap break-word
53
+ overflow-x auto
54
+ font-weight 500
55
+ font-size .875em
56
+ margin-right 4px
57
+ vertical-align baseline
58
+ line-height 1
59
+ height 24px
@@ -0,0 +1,39 @@
1
+ .pace
2
+ pointer-events: none
3
+ user-select: none
4
+ z-index: 2000
5
+ position: fixed
6
+ margin: auto
7
+ top: 4px
8
+ left: 0
9
+ right: 0
10
+ height: 8px
11
+ border-radius: 8px
12
+ width: 4rem
13
+ background: var(--efu-secondbg)
14
+ border: var(--style-border)
15
+ overflow: hidden
16
+
17
+ &.pace-inactive
18
+ opacity: 0
19
+ transition: .3s
20
+ top: -8px
21
+
22
+ .pace-progress
23
+ opacity: 0
24
+ transition: .3s ease-in
25
+
26
+ .pace-progress
27
+ box-sizing: border-box
28
+ transform: translate3d(0, 0, 0)
29
+ max-width: 200px
30
+ z-index: 2000
31
+ display: block
32
+ position: absolute
33
+ top: 0
34
+ right: 100%
35
+ height: 100%
36
+ width: 100%
37
+ background: var(--efu-logo-color)
38
+ animation: gradient 2s ease infinite
39
+ background-size: 200%
@@ -0,0 +1,63 @@
1
+
2
+ #rightside
3
+ position: fixed
4
+ right: -2.5rem
5
+ bottom: 20px
6
+ z-index: 1000
7
+ opacity: 0
8
+ transition: all .5s
9
+
10
+ &.needEndHide
11
+ display block !important
12
+
13
+ &.hide.needEndHide
14
+ bottom 0 !important
15
+ transform: none !important
16
+
17
+ button
18
+ display: block
19
+ margin-bottom: 5px
20
+ width: 1.8rem
21
+ height: 1.8rem
22
+ border-radius: 50%
23
+ background-color: var(--btn-bg)
24
+ color: var(--btn-color)ß
25
+ text-align: center
26
+ font-size: 16px
27
+
28
+ &.pc
29
+ display: block
30
+ +maxWidth900()
31
+ display: none
32
+
33
+ &.mobile
34
+ display: none
35
+
36
+ +maxWidth900()
37
+ display: block
38
+
39
+ &.top
40
+ &:hover
41
+ #percent
42
+ display: none
43
+
44
+ i
45
+ display: block
46
+ transition: all .3s
47
+ transform: scale(1.3)
48
+
49
+ i
50
+ transition: all .3s
51
+ display: none
52
+
53
+ &.show
54
+ display: block
55
+
56
+ .rs_hide
57
+ transform: translate(45px, 0)
58
+ transition: all .4s
59
+ opacity 0
60
+
61
+ &.show
62
+ opacity .8
63
+ transform: translate(0, 0)
@@ -0,0 +1,17 @@
1
+ #universe
2
+ display block
3
+ position fixed
4
+ margin 0
5
+ padding 0
6
+ border 0
7
+ outline 0
8
+ left 0
9
+ top 0
10
+ width 100%
11
+ height 100%
12
+ pointer-events none
13
+ z-index 1
14
+
15
+ [data-theme=light]
16
+ #universe
17
+ display none