hexo-theme-solitude 1.10.5 → 1.10.6

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 (33) hide show
  1. package/README.md +1 -1
  2. package/layout/includes/inject/head.pug +1 -1
  3. package/layout/includes/widgets/home/hometop.pug +0 -1
  4. package/layout/includes/widgets/home/topGroup.pug +9 -8
  5. package/layout/includes/widgets/third-party/news-comment/artalk.pug +1 -1
  6. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -1
  7. package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -1
  8. package/package.json +1 -1
  9. package/source/css/_global/index.styl +27 -23
  10. package/source/css/_layout/article-container.styl +1 -1
  11. package/source/css/_layout/aside.styl +1 -0
  12. package/source/css/_layout/console.styl +2 -0
  13. package/source/css/_layout/header.styl +0 -27
  14. package/source/css/_layout/rightmenu.styl +1 -1
  15. package/source/css/_page/_about/about.styl +2 -1
  16. package/source/css/_page/_about/buff.styl +1 -1
  17. package/source/css/_page/_about/contentinfo.styl +2 -2
  18. package/source/css/_page/_about/maxim.styl +1 -1
  19. package/source/css/_page/_about/myphoto.styl +1 -1
  20. package/source/css/_page/_about/oneself.styl +2 -2
  21. package/source/css/_page/_about/personalities.styl +1 -1
  22. package/source/css/_page/_about/skills.styl +1 -1
  23. package/source/css/_page/_about/statistic.styl +1 -1
  24. package/source/css/_page/_home/home-top.styl +17 -96
  25. package/source/css/_page/_home/home.styl +1 -1
  26. package/source/css/_page/links.styl +0 -3
  27. package/source/css/_page/other.styl +127 -115
  28. package/source/css/_page/says.styl +3 -3
  29. package/source/css/_tags/gallery.styl +5 -3
  30. package/source/js/main.js +2 -22
  31. package/source/js/search/algolia.js +11 -0
  32. package/source/js/search/local.js +11 -0
  33. package/layout/includes/widgets/home/categoryGroup.pug +0 -12
package/README.md CHANGED
@@ -62,7 +62,7 @@
62
62
  - [x] 弹幕留言页
63
63
  - [ ] 首页顶部新样式
64
64
 
65
- > 如有問題請提 [issue](https://github.com/valor-x/hexo-theme-solitude/issues)
65
+ > 如有问题请提 [issue](https://github.com/valor-x/hexo-theme-solitude/issues)
66
66
 
67
67
  ## 应用
68
68
 
@@ -27,7 +27,7 @@ include ../head/pwa.pug
27
27
 
28
28
  script.
29
29
  console.log(
30
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.10.5",
30
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.10.6",
31
31
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
32
32
  "padding: 5px 10px;color:white;background:#3e9f50;",
33
33
  "padding: 5px 10px;color:white;background:#0084ff;border-radius:0 5px 5px 0",
@@ -3,6 +3,5 @@
3
3
  #bannerGroup
4
4
  #banners
5
5
  include ./banner.pug
6
- include ./categoryGroup.pug
7
6
  .topGroup
8
7
  include ./topGroup.pug
@@ -1,12 +1,13 @@
1
1
  - var filteredPosts = site.posts.data.filter(item => item.recommend === true).slice(0,6)
2
- each post in filteredPosts
3
- .recent-post-item
4
- .post_cover
5
- a(href=url_for(post.path), title=post.title)
6
- span.recent-post-top-text= _p('home.recommend')
7
- img.post_bg(alt=post.title, src=post.cover)
8
- .recent-post-info
9
- a.article-title(href=url_for(post.path), title=post.title)= post.title
2
+ .recent-post-group
3
+ each post in filteredPosts
4
+ .recent-post-item
5
+ .post_cover
6
+ a(href=url_for(post.path), title=post.title)
7
+ span.recent-post-top-text= _p('home.recommend')
8
+ img.post_bg(alt=post.title, src=post.cover)
9
+ .recent-post-info
10
+ a.article-title(href=url_for(post.path), title=post.title)= post.title
10
11
 
11
12
  mixin todayCardContent
12
13
  .todayCard-info
@@ -61,7 +61,7 @@ script.
61
61
  nick: e.nick,
62
62
  url: e.page_key,
63
63
  date: e.date,
64
- }))
64
+ })).slice(0, 6)
65
65
  utils.saveToLocal.set('artalk-newest-comments', artalk, !{theme.comment.newest_comment.storage})
66
66
  generateHtml(artalk, asideList)
67
67
  }).catch(error => {
@@ -46,7 +46,7 @@ script.
46
46
  nick: e.nick,
47
47
  url: `${e.url}#${e.id}`,
48
48
  date: new Date(e.created).toString()
49
- }))
49
+ })).slice(0, 6)
50
50
  utils.saveToLocal.set('twikoo-newest-comment', twikooArray, !{theme.comment.newest_comment.storage})
51
51
  generateHtml(twikooArray)
52
52
  }).catch((err) => {
@@ -39,7 +39,7 @@ script.
39
39
  'url': e.url + '#' + e.objectId,
40
40
  'date': e.time || e.insertedAt
41
41
  }
42
- })
42
+ }).slice(0, 6)
43
43
  utils.saveToLocal.set('waline-newest-comment', walineArray, !{theme.comment.newest_comment.storage})
44
44
  generateHtml(walineArray)
45
45
  }).catch(error => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.10.5",
3
+ "version": "1.10.6",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -86,15 +86,38 @@ main
86
86
 
87
87
  // scrollbar - chrome/safari
88
88
  *::-webkit-scrollbar
89
- width 5px
90
- height 5px
89
+ width 12px
90
+ height 6px
91
91
 
92
92
  *::-webkit-scrollbar-thumb
93
93
  background var(--scrollbar-color)
94
+ opacity .5
95
+ border-radius 8px
96
+ cursor pointer
97
+ border 2px solid var(--efu-background)
98
+
99
+ &:hover
100
+ background var(--efu-lighttext)
101
+ display block
94
102
 
95
103
  *::-webkit-scrollbar-track
96
104
  background-color transparent
97
105
 
106
+ ::-webkit-scrollbar-thumb
107
+ background var(--efu-card-border)
108
+ opacity .5
109
+ border-radius 8px
110
+ cursor pointer
111
+ border 2px solid var(--efu-background)
112
+
113
+ ::-webkit-scrollbar-thumb:hover
114
+ background var(--efu-main)
115
+ opacity 1
116
+ display block !important
117
+
118
+ ::-webkit-scrollbar-track
119
+ background-color var(--efu-none)
120
+
98
121
  if hexo-config('lazyload.enable') && !hexo-config('lazyload.placeholder')
99
122
  img
100
123
  &[data-lazy-src]:not(.loaded)
@@ -116,7 +139,7 @@ h1, h2, h3, h4, h5, h6
116
139
  padding-left 0
117
140
  font-weight 700
118
141
  position relative
119
- margin 1rem 0 0.7rem
142
+ margin .5rem 0
120
143
  color var(--efu-fontcolor)
121
144
 
122
145
  hr
@@ -319,25 +342,6 @@ li, ul
319
342
  margin 0
320
343
  padding 0
321
344
 
322
- ::-webkit-scrollbar
323
- width 10px
324
- height 6px
325
-
326
- ::-webkit-scrollbar-thumb
327
- background var(--efu-card-border)
328
- opacity .5
329
- border-radius 8px
330
- cursor pointer
331
- border 2px solid var(--efu-background)
332
-
333
- ::-webkit-scrollbar-thumb:hover
334
- background var(--efu-main)
335
- opacity 1
336
- display block !important
337
-
338
- ::-webkit-scrollbar-track
339
- background-color var(--efu-none)
340
-
341
345
  [data-theme=dark] img
342
346
  filter brightness(1)
343
347
 
@@ -383,7 +387,7 @@ i.solitude
383
387
  +maxWidth1200()
384
388
  width 100%
385
389
 
386
- > #post,#category,#tag,#archive
390
+ > #post, #category, #tag, #archive
387
391
  box-shadow var(--efu-shadow-border)
388
392
  padding 1rem 2rem
389
393
  border-radius 12px
@@ -191,7 +191,7 @@
191
191
  font-size 1.3rem
192
192
  line-height 1.3
193
193
  border-top 1px dashed var(--efu-theme-op)
194
- padding-top 1.5rem
194
+ padding-top 1rem
195
195
 
196
196
  h3
197
197
  font-size 1.1rem
@@ -678,6 +678,7 @@ if hexo-config('aside.card.style') == 2
678
678
  opacity 0
679
679
  transition .3s
680
680
  display flex
681
+ pointer-events none
681
682
  gap 5px
682
683
  .more-info
683
684
  if hexo-config('aside.position') == 0
@@ -35,11 +35,13 @@
35
35
  +maxHeight800()
36
36
  display none
37
37
 
38
+
38
39
  &.show
39
40
  .console-card-group
40
41
  transform translateY(0)
41
42
  opacity 1
42
43
  transition-delay .1s
44
+ max-height 80%
43
45
 
44
46
  .console-card-group-left
45
47
  margin-right .5rem
@@ -521,33 +521,6 @@
521
521
  padding 4px
522
522
  transition transform .3s ease 0s
523
523
 
524
- &.hide-menu
525
- #toggle-menu
526
- display inline-block
527
-
528
- +minWidth768()
529
- display none
530
-
531
- .site-page
532
- font-size inherit
533
-
534
- +maxWidth768()
535
- width 35px
536
- height 35px
537
- display flex
538
- align-items center
539
- justify-content center
540
-
541
- .menus_items
542
- position absolute
543
- left 0
544
- visibility hidden
545
- opacity 0
546
-
547
- #search-button
548
- span
549
- display none
550
-
551
524
  #search-button
552
525
  display inline
553
526
  padding 0 .4rem
@@ -23,7 +23,7 @@ if hexo-config('right_menu.enable')
23
23
  box-shadow var(--efu-shadow-theme)
24
24
 
25
25
  .rightMenu-group
26
- padding .5rem .3rem
26
+ padding .35rem .3rem
27
27
 
28
28
  &.rightMenu-small
29
29
  display flex
@@ -3,11 +3,12 @@
3
3
  padding-top 1rem
4
4
  flex-direction column
5
5
  align-items center
6
+ gap .5rem
6
7
 
7
8
  .author-title
8
9
  font-size 2rem
9
10
  font-weight 700
10
- margin 1rem 0
11
+ margin .5rem 0
11
12
  line-height 1
12
13
 
13
14
  if "tenyear" in $about
@@ -13,7 +13,7 @@
13
13
  animation gradient 15s ease infinite
14
14
  min-height 200px
15
15
  height fit-content
16
- width 59%
16
+ width 59.5%
17
17
 
18
18
  .card-content
19
19
  display flex
@@ -7,7 +7,7 @@
7
7
  background linear-gradient(120deg, #5b27ff 0, #00d4ff 100%)
8
8
  background-size 200%
9
9
  animation gradient 15s ease infinite
10
- width 59%
10
+ width 59.5%
11
11
 
12
12
  .title1
13
13
  opacity .8
@@ -28,7 +28,7 @@
28
28
  justify-content center
29
29
  align-items flex-start
30
30
  flex-direction column
31
- width 39%
31
+ width 39.5%
32
32
 
33
33
  h2
34
34
  margin-right auto
@@ -7,7 +7,7 @@
7
7
  align-items flex-start
8
8
  flex-direction column
9
9
  justify-content center
10
- width 39%
10
+ width 39.5%
11
11
 
12
12
  .maxim-title
13
13
  display flex
@@ -4,7 +4,7 @@
4
4
  min-height 240px
5
5
  position relative
6
6
  overflow hidden
7
- width 39%
7
+ width 39.5%
8
8
  display flex
9
9
  align-items center
10
10
  justify-content center
@@ -10,7 +10,8 @@
10
10
  width 100% !important
11
11
 
12
12
  &.mapAndInfo
13
- width 59%
13
+ width 59.5%
14
+ gap .5rem
14
15
 
15
16
  .author-content-item
16
17
  +minWidth1300()
@@ -22,7 +23,6 @@
22
23
  max-height 400px
23
24
  position relative
24
25
  overflow hidden
25
- margin-bottom 0.5rem
26
26
  height 60%
27
27
  background-size 100%
28
28
  transition 1s ease-in-out
@@ -1,7 +1,7 @@
1
1
  .author-content-item.personalities
2
2
  overflow hidden
3
3
  position relative
4
- width 59%
4
+ width 59.5%
5
5
  +maxWidth768()
6
6
  min-height 360px
7
7
 
@@ -4,7 +4,7 @@
4
4
  justify-content center
5
5
  align-items flex-start
6
6
  flex-direction column
7
- width 49%
7
+ width 49.5%
8
8
  min-height 450px
9
9
 
10
10
  .tags-group-all
@@ -5,7 +5,7 @@
5
5
 
6
6
  .about-statistic
7
7
  min-height 380px
8
- width 39%
8
+ width 39.5%
9
9
  background-size cover
10
10
  color var(--efu-white)
11
11
  overflow hidden
@@ -2,7 +2,6 @@
2
2
  .recent-top-post-group
3
3
  border-radius 12px
4
4
  overflow hidden
5
- overflow-x auto
6
5
  width 100%
7
6
  margin-bottom 0
8
7
  user-select none
@@ -15,15 +14,24 @@
15
14
  flex-direction row
16
15
  flex-wrap nowrap
17
16
  width 100%
18
- overflow-x scroll
19
17
  gap .5rem
20
18
 
21
19
  +maxWidth1200()
22
- gap 0
20
+ flex-direction column
23
21
 
24
22
  &::-webkit-scrollbar
25
23
  display none
26
24
 
25
+ .recent-post-group
26
+ display flex
27
+ flex-direction row
28
+ flex-wrap wrap
29
+ align-content space-between
30
+ gap .5rem
31
+
32
+ +maxWidth1200()
33
+ flex-wrap nowrap
34
+
27
35
  / #bannerGroup
28
36
  display flex
29
37
  +minWidth1201()
@@ -47,94 +55,17 @@
47
55
  .tags-group-icon:nth-child(even)
48
56
  margin-left 4rem
49
57
 
50
- .categoryGroup
51
- display flex
52
- flex-direction column
53
- justify-content space-between
54
- min-width 200px
55
- +minWidth1201()
56
- display none
57
- +maxWidth768()
58
- min-width 130px
59
- margin-left 1rem
60
- max-height 164px
61
- overflow hidden
62
- position relative
63
-
64
- .categoryItem
65
- overflow hidden
66
- transform scale(1)
67
- transition all .8s cubic-bezier(.65, .15, .37, 1.19)
68
- height 48%
69
- border-radius 12px
70
- +maxWidth768()
71
- border-radius 0
72
- height 47%
73
- box-shadow none
74
-
75
- a.categoryButton
76
- height 100%
77
- width 100%
78
- background var(--efu-card-bg)
79
- background-size 200%
80
- border-radius 12px
81
- display inline-block
82
- text-align left
83
- line-height 4em
84
- font-weight 700
85
- font-size .9rem
86
- color var(--efu-white)
87
- transition all .8s cubic-bezier(.39, .575, .565, 1)
88
- transform scale(1)
89
- overflow hidden
90
- +maxWidth768()
91
- border-radius 8px
92
-
93
- &:after
94
- top 50px
95
- width 1rem
96
- left 21px
97
- height 2px
98
- background var(--efu-white)
99
- content ""
100
- border-radius 1px
101
- position absolute
102
-
103
- i
104
- font-size 5rem
105
- opacity .2
106
- position absolute
107
- right 0
108
- top 20%
109
- transition .3s
110
- width 100px
111
- text-align center
112
- filter blur(2px)
113
- transform scale(1) rotate(15deg)
114
-
115
- +maxWidth768()
116
- display none
117
-
118
- &:hover
119
- i
120
- opacity .8
121
- transition .8s
122
- transition-delay .15s
123
- transform scale(1.03) rotate(0)
124
- font-size 2.5rem
125
- filter blur(0)
126
-
127
- .categoryButtonText
128
- padding-left 21px
129
-
130
58
  /.topGroup
131
- display: flex
59
+ display flex
60
+ gap .5rem
61
+ +maxWidth1200()
62
+ overflow-x auto
132
63
 
133
64
  +minWidth1201()
134
65
  display flex
135
66
  flex-direction row
136
67
  flex-wrap wrap
137
- justify-content space-between
68
+ justify-content flex-start
138
69
  height calc(328px + 0.5rem)
139
70
  align-content space-between
140
71
  width calc(50% - 0.25rem)
@@ -144,7 +75,7 @@
144
75
  .recent-post-item
145
76
  display flex
146
77
  flex-direction column
147
- width calc(100% / 3 - 0.25rem)
78
+ width calc(100% / 3 - 0.5rem)
148
79
  align-items flex-start
149
80
  background var(--efu-card-bg)
150
81
  border-radius 12px
@@ -159,10 +90,6 @@
159
90
  +maxWidth1200()
160
91
  width 200px
161
92
  min-width 200px
162
- margin-left .5rem
163
-
164
- &:last-child
165
- margin-right 1rem
166
93
 
167
94
  &:hover .post_cover a .recent-post-top-text
168
95
  left 0
@@ -214,7 +141,6 @@
214
141
  &:hover
215
142
  color var(--efu-fontcolor)
216
143
 
217
-
218
144
  .todayCard
219
145
  display none
220
146
 
@@ -227,7 +153,6 @@
227
153
  right 0
228
154
  background var(--efu-card-bg)
229
155
  border-radius 12px
230
- margin-left 0.5rem
231
156
  overflow hidden
232
157
  transition .3s
233
158
  display flex
@@ -315,10 +240,6 @@
315
240
 
316
241
  .banner-button-group
317
242
  bottom: 1rem
318
-
319
- +maxWidth768()
320
- margin-right 1rem
321
-
322
243
  .banners-links
323
244
  display flex
324
245
  position absolute
@@ -5,7 +5,7 @@ if hexo-config('hometop.enable') || hexo-config('says.enable')
5
5
  padding .5rem 1.5rem
6
6
 
7
7
  +maxWidth768()
8
- padding 0
8
+ padding 0 1rem
9
9
  margin-top 0
10
10
 
11
11
  if hexo-config('hometop.enable')
@@ -69,9 +69,6 @@
69
69
  +maxWidth768()
70
70
  width calc(33.3333% - 16px)
71
71
 
72
- +maxWidth600()
73
- width calc(50% - 16px)
74
-
75
72
  .img
76
73
  border-radius 0
77
74
  height 120px
@@ -1,137 +1,155 @@
1
1
  div#banners
2
- display none
3
- +minWidth1201()
2
+ display flex
3
+ width 100%
4
+ background var(--efu-card-bg)
5
+ border var(--style-border-always)
6
+ border-radius 12px
7
+ overflow hidden
8
+ position relative
9
+ box-shadow var(--efu-shadow-border)
10
+ flex-direction column
11
+ transition .3s
12
+ will-change transform
13
+ animation slide-in .6s .1s backwards
14
+
15
+ #home_top &
16
+ +maxWidth1200()
17
+ height calc(328px + .5rem)
18
+
19
+ :not(.flink)&:hover
20
+ box-shadow var(--efu-shadow-main)
21
+
22
+ .banner-button-group
23
+ position absolute
24
+ right 2rem
25
+ top 2rem
4
26
  display flex
5
- width 100%
6
- background var(--efu-card-bg)
7
- border var(--style-border)
27
+
28
+ +maxWidth768()
29
+ display none
30
+
31
+ .banner-button
32
+ padding 8px 12px
33
+ background var(--efu-fontcolor)
8
34
  border-radius 12px
9
- overflow hidden
10
- position relative
11
- box-shadow var(--efu-shadow-border)
12
- flex-direction column
35
+ color var(--efu-card-bg)
36
+ display flex
37
+ align-items center
38
+ z-index 1
13
39
  transition .3s
14
- will-change transform
15
- animation slide-in .6s .1s backwards
40
+ cursor pointer
41
+ box-shadow var(--efu-shadow-black)
42
+
43
+ &.secondary
44
+ background var(--efu-secondbg)
45
+ border var(--style-border-always)
46
+ color var(--efu-lighttext)
47
+ margin-right 1rem
48
+ box-shadow var(--efu-shadow-border)
49
+
50
+ &:hover
51
+ background var(--efu-theme)
52
+ color var(--efu-white)
53
+
54
+ i
55
+ margin-right 8px
56
+ font-size 1rem
57
+
58
+ /.banners-title
59
+ top 2.6rem
60
+ left 2rem
61
+ position absolute
62
+ display flex
63
+ flex-direction column
16
64
 
17
- :not(.flink)&:hover
18
- box-shadow var(--efu-shadow-main)
65
+ &-big
66
+ font-size 36px
67
+ line-height 1
68
+ font-weight 700
69
+ margin-bottom 8px
70
+
71
+ &-small
72
+ font-size 12px
73
+ line-height 1
74
+ color var(--efu-secondtext)
75
+ margin-top 8px
76
+ margin-bottom 0.5rem
77
+ margin-left 2px
78
+
79
+ /.flink
80
+ .banners-title
81
+ top 1.5rem
82
+
83
+ .bannerText
84
+ font-size 4rem
85
+ line-height 4rem
86
+ font-weight 700
19
87
 
20
- .banner-button-group
21
- position absolute
22
- right 2rem
23
- top 2rem
24
- display flex
88
+ /.tags-group-all
89
+ display flex
25
90
 
26
- .banner-button
27
- padding 8px 12px
28
- background var(--efu-fontcolor)
29
- border-radius 12px
30
- color var(--efu-card-bg)
31
- display flex
32
- align-items center
33
- z-index 1
34
- transition .3s
35
- cursor pointer
36
- box-shadow var(--efu-shadow-black)
37
-
38
- &.secondary
39
- background var(--efu-secondbg)
40
- border var(--style-border-always)
41
- color var(--efu-lighttext)
42
- margin-right 1rem
43
- box-shadow var(--efu-shadow-border)
44
-
45
- &:hover
46
- background var(--efu-theme)
47
- color var(--efu-white)
91
+ #home_top &
92
+ +maxWidth600()
93
+ opacity 0.06
94
+ filter blur(8px)
48
95
 
49
- i
50
- margin-right 8px
51
- font-size 1rem
96
+ &.nowrapMove
97
+ padding-bottom 2rem
52
98
 
53
- /.banners-title
54
- top 2.6rem
55
- left 2rem
56
- position absolute
99
+ .tags-group-wrapper
100
+ margin-top: 7rem
101
+ animation: rowleft 120s linear infinite
57
102
  display flex
58
- flex-direction column
59
-
60
- &-big
61
- font-size 36px
62
- line-height 1
63
- font-weight 700
64
- margin-bottom 8px
65
-
66
- &-small
67
- font-size 12px
68
- line-height 1
69
- color var(--efu-secondtext)
70
- margin-top 8px
71
- margin-bottom 0.5rem
72
- margin-left 2px
73
-
74
- /.flink
75
- .banners-title
76
- top 1.5rem
77
-
78
- .bannerText
79
- font-size 4rem
80
- line-height 4rem
81
- font-weight 700
82
-
83
- /.tags-group-all
84
- display flex
85
103
 
86
- &.nowrapMove
87
- padding-bottom 2rem
104
+ +maxWidth768()
105
+ margin-top 7.5rem
88
106
 
89
- .tags-group-wrapper
90
- margin-top: 7rem
91
- animation: rowleft 120s linear infinite
92
- display flex
107
+ .tags-group-icon
108
+ border-radius 50%
93
109
 
94
- .tags-group-icon
110
+ img
111
+ min-width 100%
112
+ min-height 100%
95
113
  border-radius 50%
114
+ object-fit cover
96
115
 
97
- img
98
- min-width 100%
99
- min-height 100%
100
- border-radius 50%
101
- object-fit cover
116
+ .tags-group-icon-pair
117
+ margin-left 1rem
118
+ user-select none
102
119
 
103
- .tags-group-icon-pair
104
- margin-left 1rem
105
- user-select none
120
+ a img
121
+ border-radius 50%
106
122
 
107
- a img
108
- border-radius 50%
123
+ /.tags-group-icon
124
+ width 120px
125
+ height 120px
126
+ border-radius 30px
127
+ display flex
128
+ align-items center
129
+ justify-content center
130
+ color #fff
131
+ font-size 66px
132
+ font-weight 700
133
+ box-shadow var(--efu-shadow-blackdeep)
109
134
 
110
- /.tags-group-icon
111
- width 120px
112
- height 120px
113
- border-radius 30px
114
- display flex
115
- align-items center
116
- justify-content center
117
- color #fff
118
- font-size 66px
119
- font-weight 700
120
- box-shadow var(--efu-shadow-blackdeep)
135
+ #page &
136
+ +maxWidth768()
137
+ width 50px
138
+ height 50px
121
139
 
122
- &:nth-child(even)
123
- margin-top 1rem
124
- transform translate(-60px)
140
+ &:nth-child(even)
141
+ margin-top 1rem
142
+ transform translate(-60px)
125
143
 
126
- img
127
- width 60%
144
+ img
145
+ width 60%
128
146
 
129
147
  .author-content
130
148
  display flex
131
149
  flex-wrap wrap
132
150
  justify-content space-between
133
151
  width 100%
134
- margin-top 1rem
152
+ gap .5rem
135
153
 
136
154
  +maxWidth768()
137
155
  margin-top 0
@@ -141,7 +159,6 @@ div#banners
141
159
  animation slide-in .6s 0s backwards
142
160
  +maxWidth768()
143
161
  width 100% !important
144
- margin-top 1rem
145
162
  padding 1rem
146
163
 
147
164
  .author-content.author-content-item.sharePage
@@ -152,7 +169,7 @@ div#banners
152
169
  margin-top 0
153
170
 
154
171
  .author-content-item
155
- width 49%
172
+ width 49.5%
156
173
  border-radius 12px
157
174
  background var(--efu-card-bg)
158
175
  border var(--style-border-always)
@@ -161,11 +178,6 @@ div#banners
161
178
  overflow hidden
162
179
  padding 1rem 2rem
163
180
 
164
- +maxWidth768()
165
- width 100%
166
- margin-top 1rem
167
- padding 1rem
168
-
169
181
  &.single
170
182
  width 100%
171
183
 
@@ -273,7 +273,7 @@ if hexo-config('says.enable')
273
273
  li
274
274
  &.item
275
275
  position relative
276
- width 33%
276
+ width calc(33% - .06rem)
277
277
  border var(--style-border-always)
278
278
  border-radius 12px
279
279
  padding 1rem 1rem .5rem
@@ -285,10 +285,11 @@ if hexo-config('says.enable')
285
285
  align-items flex-start
286
286
  background var(--efu-card-bg)
287
287
  margin-right .5rem
288
+ margin-bottom .5rem
288
289
  box-shadow var(--efu-shadow-border)
289
290
 
290
291
  +maxWidth1300()
291
- width 49%
292
+ width 49.5%
292
293
  margin-right 1%
293
294
 
294
295
  +maxWidth768()
@@ -311,7 +312,6 @@ if hexo-config('says.enable')
311
312
  display flex
312
313
  flex-direction row
313
314
  flex-wrap wrap
314
- justify-content space-between
315
315
 
316
316
  li
317
317
  &.item
@@ -3,7 +3,7 @@
3
3
  position: relative
4
4
  float: left
5
5
  overflow: hidden
6
- margin: 6px 4px
6
+ margin: 0
7
7
  width: calc(50% - 8px)
8
8
  height: 250px
9
9
  border-radius: 8px
@@ -92,8 +92,10 @@
92
92
  transform: translate3d(-100%, 0, 0)
93
93
 
94
94
  .gallery-group-main
95
- overflow: auto
96
- padding: 0 0 16px
95
+ overflow auto
96
+ display flex
97
+ gap .5rem
98
+ margin-top .5rem
97
99
 
98
100
  .gallery-item
99
101
  min-height 5rem
package/source/js/main.js CHANGED
@@ -163,7 +163,7 @@ let is_rm = typeof rm !== 'undefined'
163
163
  /**
164
164
  * sco
165
165
  * @description solitude 主题的一些方法
166
- * @type {{showConsole: (function(): boolean), setTimeState: sco.setTimeState, toTop: (function(): void), changeTimeFormat(*): void, hideCookie: sco.hideCookie, owoBig(*): void, switchDarkMode: sco.switchDarkMode, openAllTags: sco.openAllTags, switchHideAside: sco.switchHideAside, addRuntime: sco.addRuntime, refreshWaterFall: sco.refreshWaterFall, categoriesBarActive: sco.categoriesBarActive, addNavBackgroundInit: sco.addNavBackgroundInit, toPage: sco.toPage, changeSayHelloText: sco.changeSayHelloText, initConsoleState: (function(): void), switchComments(): void, switchKeyboard: sco.switchKeyboard, initAdjust: sco.initAdjust, listenToPageInputPress: sco.listenToPageInputPress, scrollTo: sco.scrollTo, musicToggle: sco.musicToggle, toTalk: sco.toTalk, switchCommentBarrage: sco.switchCommentBarrage, hideTodayCard: (function(): void), scrollCategoryBarToRight: sco.scrollCategoryBarToRight, scrollToComment: sco.scrollToComment, initbbtalk: sco.initbbtalk, tagPageActive: sco.tagPageActive, hideConsole: (function(): void), addPhotoFigcaption: sco.addPhotoFigcaption}}
166
+ * @type {{showConsole: (function(): boolean), setTimeState: sco.setTimeState, toTop: (function(): void), changeTimeFormat(*): void, hideCookie: sco.hideCookie, owoBig(*): void, switchDarkMode: sco.switchDarkMode, openAllTags: sco.openAllTags, switchHideAside: sco.switchHideAside, addRuntime: sco.addRuntime, refreshWaterFall: sco.refreshWaterFall, categoriesBarActive: sco.categoriesBarActive, addNavBackgroundInit: sco.addNavBackgroundInit, toPage: sco.toPage, changeSayHelloText: sco.changeSayHelloText, initConsoleState: (function(): void), switchComments(): void, switchKeyboard: sco.switchKeyboard, listenToPageInputPress: sco.listenToPageInputPress, scrollTo: sco.scrollTo, musicToggle: sco.musicToggle, toTalk: sco.toTalk, switchCommentBarrage: sco.switchCommentBarrage, hideTodayCard: (function(): void), scrollCategoryBarToRight: sco.scrollCategoryBarToRight, scrollToComment: sco.scrollToComment, initbbtalk: sco.initbbtalk, tagPageActive: sco.tagPageActive, hideConsole: (function(): void), addPhotoFigcaption: sco.addPhotoFigcaption}}
167
167
  */
168
168
  let sco = {
169
169
  /**
@@ -507,26 +507,6 @@ let sco = {
507
507
  const scrollTop = document.documentElement.scrollTop;
508
508
  (scrollTop !== 0) && document.getElementById("page-header").classList.add("nav-fixed", "nav-visible");
509
509
  },
510
- /**
511
- * initAdjust
512
- * @description 初始化调整
513
- */
514
- initAdjust: function () {
515
- const $blogName = document.getElementById('site-name');
516
- const $menusEle = document.querySelector('#menus .menus_items');
517
- const $searchEle = document.querySelector('#search-button');
518
- const $nav = document.getElementById('nav');
519
- const blogNameWidth = $blogName && $blogName.offsetWidth;
520
- const menusWidth = $menusEle && $menusEle.offsetWidth;
521
- const searchWidth = $searchEle && $searchEle.offsetWidth;
522
- const shouldHideMenu = window.innerWidth < 768 || blogNameWidth + menusWidth + searchWidth > $nav?.offsetWidth - 120;
523
- if (shouldHideMenu) {
524
- $nav?.classList.add('hide-menu');
525
- } else {
526
- $nav?.classList.remove('hide-menu');
527
- }
528
- $nav?.classList.add('show');
529
- },
530
510
  /**
531
511
  * toPage
532
512
  * @description 跳转到指定页
@@ -822,7 +802,7 @@ window.refreshFn = () => {
822
802
  }
823
803
  // 页面加载完成后执行
824
804
  document.addEventListener('DOMContentLoaded', () => {
825
- [sco.initAdjust, addCopyright, sco.initConsoleState, window.refreshFn, asideStatus, () => window.onscroll = percent].forEach(fn => fn());
805
+ [addCopyright, sco.initConsoleState, window.refreshFn, asideStatus, () => window.onscroll = percent].forEach(fn => fn());
826
806
  });
827
807
  // 一些快捷键绑定
828
808
  window.onkeydown = e => {
@@ -30,6 +30,17 @@ window.addEventListener("load", () => {
30
30
  }
31
31
  };
32
32
 
33
+ const addEventCtrlK = () => {
34
+ document.addEventListener("keydown", function (event) {
35
+ if (event.ctrlKey && event.key === "k") {
36
+ event.preventDefault();
37
+ openSearch();
38
+ }
39
+ });
40
+ }
41
+
42
+ addEventCtrlK()
43
+
33
44
  const searchClickFn = () => {
34
45
  utils.addEventListenerPjax(document.querySelector("#search-button > .search"), "click", openSearch);
35
46
 
@@ -37,6 +37,17 @@ window.addEventListener("load", () => {
37
37
 
38
38
  addEventTagList()
39
39
 
40
+ const addEventCtrlK = () => {
41
+ document.addEventListener("keydown", function (event) {
42
+ if (event.ctrlKey && event.key === "k") {
43
+ event.preventDefault();
44
+ openSearch();
45
+ }
46
+ });
47
+ }
48
+
49
+ addEventCtrlK()
50
+
40
51
  const searchFnOnce = () => {
41
52
  $searchMask.addEventListener("click", closeSearch);
42
53
  utils.addEventListenerPjax(document.querySelector("#local-search .search-close-button"), "click", closeSearch);
@@ -1,12 +0,0 @@
1
- - gg = theme.hometop.group
2
- - group = gg ? (Object.entries(gg)).slice(0, 2) : null
3
-
4
- if group
5
- .categoryGroup
6
- each item in group
7
- - var array = item[1].split('||')
8
- .categoryItem
9
- a.categoryButton(href=url_for(trim(array[0])) style="background-image:" + array[2] + ";")
10
- span.categoryButtonText= item[0]
11
- if array[1]
12
- i.solitude(class=trim(array[1]))