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