hexo-theme-solitude 1.5.11 → 1.6.0
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 +44 -10
- package/README.md +22 -2
- package/README_zh-cn.md +22 -2
- package/README_zh-tw.md +22 -2
- package/_config.yml +87 -71
- package/layout/includes/footer.pug +1 -1
- package/layout/includes/inject/head.pug +1 -2
- package/layout/includes/loading.pug +1 -1
- package/layout/includes/widgets/home/banner.pug +1 -1
- package/layout/includes/widgets/home/categoryGroup.pug +0 -1
- package/layout/includes/widgets/home/postList.pug +74 -29
- package/layout/includes/widgets/nav/group.pug +1 -1
- package/layout/page.pug +1 -1
- package/package.json +1 -1
- package/plugins.yml +0 -4
- package/scripts/event/cdn.js +4 -4
- package/scripts/event/merge_config.js +9 -1
- package/scripts/event/welcome.js +2 -2
- package/scripts/filter/checkThemeConfig.js +2 -2
- package/scripts/filter/default.js +4 -2
- package/scripts/filter/lazyload.js +18 -5
- package/scripts/filter/randomPosts.js +1 -1
- package/scripts/helper/stylus.js +8 -14
- package/source/css/_global/index.styl +362 -1
- package/source/css/_layout/aside.styl +751 -0
- package/source/css/_layout/capsule.styl +213 -0
- package/source/css/_layout/fullpage.styl +47 -0
- package/source/css/_layout/keyboard.styl +60 -0
- package/source/css/_layout/pace.styl +40 -0
- package/source/css/_layout/rightmenu.styl +79 -0
- package/source/css/_layout/universe.styl +18 -0
- package/source/css/_page/_home/home-top.styl +1 -3
- package/source/css/_page/_home/recent-post.styl +407 -170
- package/source/css/_page/douban.styl +111 -109
- package/source/css/_page/share.styl +1 -17
- package/source/css/{_widgets/_post → _post}/content.styl +0 -3
- package/source/css/index.styl +20 -5
- package/source/css/third_party/snackbar.min.css +1 -0
- package/source/css/{_global/var.styl → var.styl} +7 -1
- package/source/img/avatar.png +0 -0
- package/source/img/default.png +0 -0
- package/source/img/pwa/favicon.ico +0 -0
- package/source/img/pwa/favicon_128.ico +0 -0
- package/source/img/pwa/favicon_16.ico +0 -0
- package/source/img/pwa/favicon_256.ico +0 -0
- package/source/img/pwa/favicon_32.ico +0 -0
- package/source/js/main.js +1 -0
- package/layout/includes/recent-posts.pug +0 -9
- package/source/css/_layout/basic.styl +0 -308
- package/source/css/_layout/index.styl +0 -125
- package/source/css/_widgets/_aside/allinfo.styl +0 -168
- package/source/css/_widgets/_aside/flip.styl +0 -67
- package/source/css/_widgets/_aside/index.styl +0 -90
- package/source/css/_widgets/_aside/info.styl +0 -263
- package/source/css/_widgets/_aside/newPost.styl +0 -61
- package/source/css/_widgets/_aside/toc.styl +0 -108
- package/source/css/_widgets/_aside/welcome.styl +0 -14
- package/source/css/_widgets/_extra/fullpage.styl +0 -46
- package/source/css/_widgets/_extra/music.styl +0 -218
- package/source/css/_widgets/_extra/pace.styl +0 -39
- package/source/css/_widgets/_extra/rightmenu.styl +0 -78
- package/source/css/_widgets/_mixins/keyboard.styl +0 -59
- package/source/css/_widgets/index.styl +0 -56
- package/source/img/logo.png +0 -0
- /package/source/css/{_widgets/_comment → _comments}/index.styl +0 -0
- /package/source/css/{_widgets/_comment → _comments}/twikoo.styl +0 -0
- /package/source/css/{_widgets/_comment → _comments}/waline.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/article-sort.styl +0 -0
- /package/source/css/{_widgets/_extra → _layout}/console.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/footer.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/other.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/sidebar.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/commentBarrage.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/copyright.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/index.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/meta.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/pagination.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/postAI.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/relatedPost.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/tools.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/algolia-search.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/local-search.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/button.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/checkbox.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/fold.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/gallery.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/index.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/label.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/link.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/media.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/mermaid.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/note.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/span.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/tabs.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/timeline.styl +0 -0
- /package/source/js/{lately.min.js → third_party/lately.min.js} +0 -0
- /package/source/js/{sco-ai.min.js → third_party/sco-ai.min.js} +0 -0
- /package/source/js/{universe.min.js → third_party/universe.min.js} +0 -0
- /package/source/js/{waterfall.min.js → third_party/waterfall.min.js} +0 -0
@@ -0,0 +1,213 @@
|
|
1
|
+
if hexo-config('capsule.enable')
|
2
|
+
#nav-music
|
3
|
+
display flex
|
4
|
+
align-items center
|
5
|
+
z-index 8
|
6
|
+
position fixed
|
7
|
+
bottom 20px
|
8
|
+
left 20px
|
9
|
+
cursor pointer
|
10
|
+
transition .3s
|
11
|
+
transform-origin left bottom
|
12
|
+
box-shadow var(--efu-shadow-border)
|
13
|
+
border-radius 40px
|
14
|
+
overflow hidden
|
15
|
+
user-select none
|
16
|
+
|
17
|
+
+maxWidth798()
|
18
|
+
display none !important
|
19
|
+
|
20
|
+
span
|
21
|
+
user-select none
|
22
|
+
|
23
|
+
div
|
24
|
+
user-select none
|
25
|
+
|
26
|
+
&.playing
|
27
|
+
box-shadow 0 0 12px -3px var(--efu-none)
|
28
|
+
-webkit-animation playingShadow 5s linear infinite
|
29
|
+
|
30
|
+
.aplayer
|
31
|
+
background var(--efu-main-op-deep)
|
32
|
+
border var(--style-border-hover)
|
33
|
+
backdrop-filter saturate(180%) blur(20px)
|
34
|
+
-webkit-backdrop-filter blur(20px)
|
35
|
+
transform translateZ(0)
|
36
|
+
|
37
|
+
&.aplayer-withlrc
|
38
|
+
.aplayer-pic
|
39
|
+
box-shadow 0 0 14px #ffffffa6
|
40
|
+
-webkit-transform rotate(0) scale(1.1)
|
41
|
+
border-color var(--efu-white)
|
42
|
+
animation-play-state running
|
43
|
+
|
44
|
+
.aplayer-info
|
45
|
+
color var(--efu-white)
|
46
|
+
|
47
|
+
.aplayer-lrc
|
48
|
+
width 200px
|
49
|
+
margin-bottom 0
|
50
|
+
opacity 1
|
51
|
+
|
52
|
+
.aplayer-info
|
53
|
+
.aplayer-controller
|
54
|
+
.aplayer-bar-wrap
|
55
|
+
.aplayer-bar
|
56
|
+
opacity 1
|
57
|
+
|
58
|
+
.aplayer-played
|
59
|
+
animation-play-state running
|
60
|
+
|
61
|
+
#nav-music-hoverTips
|
62
|
+
opacity 0
|
63
|
+
|
64
|
+
.aplayer
|
65
|
+
background var(--efu-card-bg)
|
66
|
+
border-radius 60px
|
67
|
+
height 41px
|
68
|
+
display flex
|
69
|
+
margin 0
|
70
|
+
pointer-events none
|
71
|
+
transition .3s
|
72
|
+
border var(--style-border)
|
73
|
+
box-shadow none
|
74
|
+
|
75
|
+
&.aplayer-withlrc
|
76
|
+
.aplayer-pic
|
77
|
+
height 25px
|
78
|
+
width 25px
|
79
|
+
border-radius 40px
|
80
|
+
z-index 1
|
81
|
+
transition .3s
|
82
|
+
-webkit-transform rotate(0) scale(1)
|
83
|
+
border var(--style-border-always)
|
84
|
+
-webkit-animation changeright 24s linear infinite
|
85
|
+
animation-play-state paused
|
86
|
+
|
87
|
+
.aplayer-info
|
88
|
+
height 100%
|
89
|
+
color var(--efu-fontcolor)
|
90
|
+
margin-left 8px
|
91
|
+
padding 0
|
92
|
+
display flex
|
93
|
+
align-items center
|
94
|
+
|
95
|
+
.aplayer-lrc
|
96
|
+
width 0
|
97
|
+
opacity 0
|
98
|
+
transition .3s
|
99
|
+
margin-left 8px
|
100
|
+
margin-top -2px
|
101
|
+
|
102
|
+
.aplayer-notice
|
103
|
+
display none
|
104
|
+
|
105
|
+
.aplayer-miniswitcher
|
106
|
+
display none
|
107
|
+
|
108
|
+
.aplayer-body
|
109
|
+
position relative
|
110
|
+
display flex
|
111
|
+
align-items center
|
112
|
+
padding 0 12px 0 8px
|
113
|
+
|
114
|
+
.aplayer-pic
|
115
|
+
.aplayer-play
|
116
|
+
opacity 0
|
117
|
+
|
118
|
+
div
|
119
|
+
display none
|
120
|
+
|
121
|
+
.aplayer-info
|
122
|
+
.aplayer-music
|
123
|
+
margin 0
|
124
|
+
display flex
|
125
|
+
align-items center
|
126
|
+
padding 0
|
127
|
+
z-index 1
|
128
|
+
|
129
|
+
.aplayer-author
|
130
|
+
display none
|
131
|
+
|
132
|
+
.aplayer-title
|
133
|
+
cursor pointer
|
134
|
+
line-height 1
|
135
|
+
display inline-block
|
136
|
+
white-space nowrap
|
137
|
+
max-width 120px
|
138
|
+
overflow hidden
|
139
|
+
text-overflow ellipsis
|
140
|
+
transition .3s
|
141
|
+
|
142
|
+
.aplayer-controller
|
143
|
+
position absolute
|
144
|
+
width 100%
|
145
|
+
height 100%
|
146
|
+
top 0
|
147
|
+
left 0
|
148
|
+
|
149
|
+
.aplayer-time
|
150
|
+
display none
|
151
|
+
|
152
|
+
.aplayer-bar-wrap
|
153
|
+
margin 0
|
154
|
+
padding 0
|
155
|
+
|
156
|
+
.aplayer-bar
|
157
|
+
height 100%
|
158
|
+
background 0 0
|
159
|
+
opacity 0
|
160
|
+
|
161
|
+
.aplayer-loaded
|
162
|
+
display none
|
163
|
+
|
164
|
+
.aplayer-played
|
165
|
+
height 100%
|
166
|
+
opacity .1
|
167
|
+
background-color var(--efu-white) !important
|
168
|
+
-webkit-animation lightBar 5s ease infinite
|
169
|
+
animation-play-state paused
|
170
|
+
|
171
|
+
&.aplayer-withlist
|
172
|
+
.aplayer-info
|
173
|
+
border none
|
174
|
+
|
175
|
+
.aplayer-lrc
|
176
|
+
p
|
177
|
+
color #ffffffb3
|
178
|
+
filter blur(1px)
|
179
|
+
|
180
|
+
&.aplayer-lrc-current
|
181
|
+
color var(--efu-white)
|
182
|
+
border none
|
183
|
+
filter blur(0)
|
184
|
+
|
185
|
+
#nav-music-hoverTips
|
186
|
+
color var(--efu-white)
|
187
|
+
background var(--efu-main)
|
188
|
+
width 100%
|
189
|
+
height 100%
|
190
|
+
position absolute
|
191
|
+
top 0
|
192
|
+
left 0
|
193
|
+
align-items center
|
194
|
+
justify-content center
|
195
|
+
display flex
|
196
|
+
border-radius 40px
|
197
|
+
opacity 0
|
198
|
+
font-size 12px
|
199
|
+
z-index 2
|
200
|
+
pointer-events none
|
201
|
+
transition .3s
|
202
|
+
|
203
|
+
&:hover
|
204
|
+
&:not(.playing)
|
205
|
+
#nav-music-hoverTips
|
206
|
+
opacity 1
|
207
|
+
|
208
|
+
.aplayer-list
|
209
|
+
display none
|
210
|
+
|
211
|
+
#nav-music .aplayer .aplayer-lrc:after,
|
212
|
+
#nav-music .aplayer .aplayer-lrc:before
|
213
|
+
display none
|
@@ -0,0 +1,47 @@
|
|
1
|
+
if hexo-config('loading.fullpage')
|
2
|
+
#loading-box
|
3
|
+
user-select none
|
4
|
+
|
5
|
+
.loading-bg
|
6
|
+
display flex
|
7
|
+
width 100%
|
8
|
+
height 100%
|
9
|
+
position fixed
|
10
|
+
background var(--efu-background)
|
11
|
+
z-index 1999
|
12
|
+
opacity 1
|
13
|
+
transition 0.2s
|
14
|
+
pointer-events all
|
15
|
+
animation showLoading 0.3s 0s backwards
|
16
|
+
|
17
|
+
&.loaded .loading-bg
|
18
|
+
pointer-events none
|
19
|
+
transition 0.2s
|
20
|
+
animation hideLoading 0.3s 0s forwards
|
21
|
+
|
22
|
+
.loading-img
|
23
|
+
width 100px
|
24
|
+
margin auto
|
25
|
+
animation-duration 0.2s
|
26
|
+
animation-name loadingAction
|
27
|
+
border-radius 50px
|
28
|
+
animation-iteration-count infinite
|
29
|
+
animation-direction alternate
|
30
|
+
|
31
|
+
@keyframes loadingAction
|
32
|
+
from
|
33
|
+
opacity 1
|
34
|
+
to
|
35
|
+
opacity 0.6
|
36
|
+
|
37
|
+
@keyframes hideLoading
|
38
|
+
from
|
39
|
+
opacity 1
|
40
|
+
to
|
41
|
+
opacity 0
|
42
|
+
|
43
|
+
@keyframes showLoading
|
44
|
+
from
|
45
|
+
opacity 0
|
46
|
+
to
|
47
|
+
opacity 1
|
@@ -0,0 +1,60 @@
|
|
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
|
@@ -0,0 +1,40 @@
|
|
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%
|
@@ -0,0 +1,79 @@
|
|
1
|
+
if hexo-config('rightside.enable')
|
2
|
+
#rightMenu
|
3
|
+
display none
|
4
|
+
position fixed
|
5
|
+
padding 0 .25rem
|
6
|
+
width 9rem
|
7
|
+
height fit-content
|
8
|
+
top 10%
|
9
|
+
left 10%
|
10
|
+
background-color var(--efu-maskbgdeep)
|
11
|
+
backdrop-filter blur(20px)
|
12
|
+
transform translateZ(0)
|
13
|
+
color var(--efu-fontcolor)
|
14
|
+
border-radius 12px
|
15
|
+
z-index 99994
|
16
|
+
border var(--style-border)
|
17
|
+
user-select none
|
18
|
+
box-shadow var(--efu-shadow-black)
|
19
|
+
transition border .3s
|
20
|
+
|
21
|
+
&:hover
|
22
|
+
border var(--style-border-hover)
|
23
|
+
box-shadow var(--efu-shadow-theme)
|
24
|
+
|
25
|
+
.rightMenu-group
|
26
|
+
padding .5rem .3rem
|
27
|
+
|
28
|
+
&.rightMenu-small
|
29
|
+
display flex
|
30
|
+
justify-content space-between
|
31
|
+
|
32
|
+
.rightMenu-item
|
33
|
+
width 30px
|
34
|
+
height 30px
|
35
|
+
line-height 30px
|
36
|
+
display flex
|
37
|
+
align-items center
|
38
|
+
justify-content center
|
39
|
+
|
40
|
+
&.rightMenu-line
|
41
|
+
.rightMenu-item
|
42
|
+
display flex
|
43
|
+
|
44
|
+
.rightMenu-item
|
45
|
+
border-radius 8px
|
46
|
+
transition .3s
|
47
|
+
cursor pointer
|
48
|
+
margin .25rem 0
|
49
|
+
padding .25rem .5rem
|
50
|
+
|
51
|
+
&:hover
|
52
|
+
background-color var(--efu-lighttext)
|
53
|
+
color var(--efu-card-bg)
|
54
|
+
box-shadow var(--efu-shadow-main)
|
55
|
+
|
56
|
+
i
|
57
|
+
display inline-block
|
58
|
+
text-align center
|
59
|
+
line-height 1.5rem
|
60
|
+
width 1.5rem
|
61
|
+
padding 0 .25rem
|
62
|
+
margin 0 .25rem
|
63
|
+
|
64
|
+
span
|
65
|
+
line-height 1.5rem
|
66
|
+
|
67
|
+
.rightMenu-line
|
68
|
+
border-top 1px dashed var(--efu-theme-op)
|
69
|
+
|
70
|
+
#rightmenu-mask
|
71
|
+
position fixed
|
72
|
+
width 100vw
|
73
|
+
height 100vh
|
74
|
+
background 0 0
|
75
|
+
top 0
|
76
|
+
left 0
|
77
|
+
display none
|
78
|
+
margin 0 !important
|
79
|
+
z-index 99993
|
@@ -0,0 +1,18 @@
|
|
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
|