hexo-theme-solitude 1.4.0 → 1.4.2

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 (59) hide show
  1. package/_config.yml +66 -15
  2. package/languages/en-US.yml +3 -2
  3. package/languages/zh-CN.yml +3 -2
  4. package/layout/404.pug +1 -1
  5. package/layout/includes/console.pug +4 -0
  6. package/layout/includes/head/config.pug +1 -1
  7. package/layout/includes/head.pug +1 -1
  8. package/layout/includes/inject/body.pug +6 -5
  9. package/layout/includes/keyboard.pug +65 -0
  10. package/layout/includes/layout.pug +4 -0
  11. package/layout/includes/page/about.pug +1 -1
  12. package/layout/includes/page/album.pug +56 -0
  13. package/layout/includes/page/gallery.pug +11 -0
  14. package/layout/includes/page/links.pug +2 -0
  15. package/layout/includes/page/moment.pug +28 -0
  16. package/layout/includes/widgets/page/moments/angle.pug +19 -0
  17. package/layout/includes/widgets/page/says/json.pug +2 -4
  18. package/layout/includes/widgets/page/says/local.pug +3 -7
  19. package/layout/includes/widgets/page/says/memos.pug +2 -4
  20. package/layout/includes/widgets/third-party/search/algolia-search.pug +20 -15
  21. package/layout/includes/widgets/third-party/search/local-search.pug +3 -0
  22. package/layout/page.pug +6 -0
  23. package/package.json +1 -1
  24. package/plugins.yml +6 -2
  25. package/source/css/_global/index.styl +1 -5
  26. package/source/css/_layout/basic.styl +6 -2
  27. package/source/css/_mode/index.styl +6 -1
  28. package/source/css/_page/about/author.styl +94 -0
  29. package/source/css/_page/about/buff.styl +34 -0
  30. package/source/css/_page/about/careers.styl +27 -0
  31. package/source/css/_page/about/contentinfo.styl +78 -0
  32. package/source/css/_page/about/game.styl +41 -0
  33. package/source/css/_page/about/index.styl +39 -1
  34. package/source/css/_page/about/like.styl +29 -0
  35. package/source/css/_page/about/maxim.styl +23 -0
  36. package/source/css/_page/about/myphoto.styl +34 -0
  37. package/source/css/_page/about/oneself.styl +91 -0
  38. package/source/css/_page/about/personalities.styl +25 -0
  39. package/source/css/_page/about/reward.styl +113 -0
  40. package/source/css/_page/about/skills.styl +75 -0
  41. package/source/css/_page/about/statistic.styl +55 -0
  42. package/source/css/_page/gallery/index.styl +96 -0
  43. package/source/css/_page/index.styl +24 -4
  44. package/source/css/_page/moment.styl +4 -2
  45. package/source/css/_widgets/_comment/twikoo.styl +20 -17
  46. package/source/css/_widgets/_mixins/keyboard.styl +59 -0
  47. package/source/css/_widgets/_search/algolia-search.styl +37 -16
  48. package/source/css/_widgets/_search/local-search.styl +18 -2
  49. package/source/css/_widgets/_tags/link.styl +1 -1
  50. package/source/css/_widgets/index.styl +4 -0
  51. package/source/css/index.styl +0 -1
  52. package/source/js/covercolor/api.js +22 -21
  53. package/source/js/covercolor/local.js +21 -15
  54. package/source/js/main.js +15 -1
  55. package/source/js/search/algolia.js +4 -2
  56. package/source/js/search/local.js +3 -1
  57. package/source/js/utils.js +1 -1
  58. package/source/css/_page/about.styl +0 -773
  59. package/source/img/avatar.png +0 -0
@@ -0,0 +1,75 @@
1
+ #about-page
2
+ .author-content-item.skills
3
+ display flex
4
+ justify-content center
5
+ align-items flex-start
6
+ flex-direction column
7
+ width 49%
8
+ min-height 450px
9
+
10
+ .tags-group-all
11
+ display flex
12
+ transform rotate(0)
13
+ transition .3s
14
+
15
+ .tags-group-wrapper
16
+ margin-top 20px
17
+ display flex
18
+ flex-wrap nowrap
19
+ animation rowup 60s linear infinite
20
+
21
+ .skills-style-group
22
+ position relative
23
+
24
+ .skills-list
25
+ display flex
26
+ opacity 0
27
+ transition .3s
28
+ position absolute
29
+ width 100%
30
+ top 0
31
+ left 0
32
+ flex-wrap wrap
33
+ flex-direction row
34
+ margin-top 10px
35
+
36
+ &:hover
37
+ .skills-style-group
38
+ .tags-group-all
39
+ opacity 0
40
+
41
+ .skills-list
42
+ opacity 1
43
+
44
+ .skill-info
45
+ display flex
46
+ align-items center
47
+ margin-right 10px
48
+ margin-top 10px
49
+ background var(--sco-background)
50
+ border-radius 40px
51
+ padding 4px 12px 4px 8px
52
+ border var(--style-border)
53
+ box-shadow var(--sco-shadow-border)
54
+
55
+ .etc
56
+ margin-right 10px
57
+ margin-top 10px
58
+
59
+ .skill-icon
60
+ width 32px
61
+ height 32px
62
+ border-radius 32px
63
+ display flex
64
+ align-items center
65
+ justify-content center
66
+ margin-right 8px
67
+ user-select none
68
+
69
+ img
70
+ width 18px
71
+ height 18px
72
+
73
+ .skill-name
74
+ font-weight 700
75
+ line-height 1
@@ -0,0 +1,55 @@
1
+ #about-page
2
+ .author-content-item
3
+ .card-content
4
+ z-index 2
5
+
6
+ .about-statistic
7
+ min-height 380px
8
+ width 39%
9
+ background-size cover
10
+ color var(--sco-white)
11
+ overflow hidden
12
+
13
+ &::after
14
+ box-shadow 0 -159px 173px 71px #0f1114 inset
15
+ position absolute
16
+ content ''
17
+ width 100%
18
+ height 100%
19
+ top 0
20
+ left 0
21
+
22
+ #statistic
23
+ font-size 16px
24
+ border-radius 15px
25
+ width 100%
26
+ color var(--sco-white)
27
+ display flex
28
+ justify-content space-between
29
+ flex-direction row
30
+ flex-wrap wrap
31
+ margin-top 1rem
32
+ margin-bottom 2rem
33
+
34
+ div
35
+ display flex
36
+ justify-content space-between
37
+ flex-direction column
38
+ width 50%
39
+ margin-bottom .5rem
40
+
41
+ span:first-child
42
+ opacity .8
43
+ font-size .6rem
44
+
45
+ span:last-child
46
+ font-weight 700
47
+ font-size 34px
48
+ line-height 1
49
+ white-space nowrap
50
+
51
+ .banner-button
52
+ background var(--sco-white-op)
53
+
54
+ .banner-button:hover
55
+ background var(--sco-theme)
@@ -0,0 +1,96 @@
1
+ #gallery
2
+ width 100%
3
+ display flex
4
+ flex-wrap wrap
5
+ justify-content start
6
+ padding 10px 0
7
+
8
+ .gallery-item
9
+ overflow hidden
10
+ border var(--style-border-always)
11
+ border-radius 12px
12
+ position relative
13
+ display flex
14
+ height 250px
15
+ width calc(100% / 3 - 10px)
16
+ cursor pointer
17
+
18
+ &:hover
19
+ .cover
20
+ filter brightness(0.5) blur(2px)
21
+ transition all .3s
22
+
23
+ .title::after
24
+ width 100%
25
+ transition all .3s
26
+
27
+ .desc
28
+ left 10%
29
+ transition left .35s
30
+ text-wrap unset
31
+
32
+ .cover
33
+ width 100%
34
+ object-fit cover
35
+ transition all 0.3s
36
+
37
+ .title
38
+ position absolute
39
+ top 10%
40
+ left 10%
41
+ font-weight 700
42
+ font-size 32px
43
+ color var(--sco-white)
44
+
45
+ &::after
46
+ top 55px
47
+ width 0
48
+ left 0
49
+ height 3px
50
+ background var(--sco-white)
51
+ content ""
52
+ border-radius 1px
53
+ position absolute
54
+ transition all .3s
55
+
56
+ .desc
57
+ position absolute
58
+ top 35%
59
+ left 100%
60
+ width 80%
61
+ color var(--sco-white)
62
+ font-size 1.1em
63
+ transition left .35s
64
+ letter-spacing 1px
65
+ text-wrap break-word
66
+
67
+ #album
68
+ margin 22px auto 0
69
+
70
+ .locate
71
+ display flex
72
+ position absolute
73
+ left 8px
74
+ top 8px
75
+ padding 4px 6px
76
+ border-radius 8px
77
+ background var(--sco-black-op)
78
+ font-size 12px
79
+ color var(--sco-white)
80
+ transition .3s
81
+ z-index 1
82
+ user-select none
83
+
84
+ #sco-container
85
+ margin-top 22px
86
+
87
+ .sco-gallery-item
88
+ margin-bottom 24px
89
+ overflow hidden
90
+ border-radius 8px
91
+ transition all .3s
92
+
93
+ .sco-gallery-image
94
+ width 100%
95
+ display block
96
+ height auto
@@ -10,7 +10,8 @@
10
10
 
11
11
  @import "rss.styl"
12
12
 
13
- @import "moment.styl"
13
+ if hexo-config('moments.enable')
14
+ @import "moment.styl"
14
15
 
15
16
  if hexo-config('says.enable')
16
17
  @import "says.styl"
@@ -21,13 +22,32 @@ if hexo-config('says.enable')
21
22
 
22
23
  @import "links.styl"
23
24
 
24
- if hexo-config('about')
25
- @import "about.styl"
26
- @import "about/index.styl"
25
+ if hexo-config('album.enable')
26
+ @import "gallery/index.styl"
27
+
28
+ @import "about/index.styl"
27
29
 
28
30
  if hexo-config('music.enable')
29
31
  @import "music.styl"
30
32
 
33
+ .author-content
34
+ display flex
35
+ flex-wrap wrap
36
+ justify-content space-between
37
+ width 100%
38
+ margin-top 1rem
39
+
40
+ +maxWidth768()
41
+ margin-top 0
42
+
43
+ .author-content-item
44
+ +maxWidth1300()
45
+ animation slide-in .6s 0s backwards
46
+ +maxWidth768()
47
+ width 100% !important
48
+ margin-top 1rem
49
+ padding 1rem
50
+
31
51
  .author-content.author-content-item.sharePage
32
52
  height 19rem
33
53
  background-size cover
@@ -150,7 +150,9 @@
150
150
  width: fit-content
151
151
 
152
152
  .cf-article .cf-img-avatar
153
- border-radius 50%
153
+ border-radius 50% !important
154
+ right -30px!important
155
+ bottom -30px!important
154
156
 
155
157
  #page
156
158
  .title-h2-a
@@ -165,7 +167,7 @@
165
167
  font-weight: 700
166
168
 
167
169
  &:hover
168
- color: var(--sco-hovertext)
170
+ color: var(--sco-main)
169
171
 
170
172
  .title-h2-a-left
171
173
  display: flex
@@ -122,15 +122,15 @@
122
122
  .el-button--primary
123
123
  border-color var(--sco-fontcolor) !important
124
124
  color var(--sco-card-bg) !important
125
- border-radius 4px !important
125
+ border-radius 12px !important
126
126
  box-shadow var(--sco-shadow-black)
127
127
  transition .3s
128
128
  width 5rem
129
129
  position absolute
130
- top -53px
130
+ top -44px
131
131
  right 0
132
132
  margin-left .5rem !important
133
- height 32px
133
+ height 34px
134
134
 
135
135
  .el-button--primary.is-disabled,
136
136
  .el-button--primary.is-disabled:active,
@@ -140,15 +140,15 @@
140
140
 
141
141
  .tk-row-actions-start
142
142
  position absolute
143
- top -100px
143
+ top -84px
144
144
  left 17px
145
145
 
146
146
  @media screen and (max-width: 768px)
147
147
  .tk-submit
148
148
  .el-button--primary
149
149
  width 5rem
150
- height 132px
151
- top -161px
150
+ height 122px
151
+ top -132px
152
152
 
153
153
  .tk-row-actions-start
154
154
  top -210px
@@ -169,14 +169,14 @@
169
169
  margin-left 0 !important
170
170
 
171
171
  .tk-row.actions
172
- margin-bottom .5rem !important
172
+ margin-bottom 0 !important
173
173
  margin-left 0 !important
174
- margin-top .5rem !important
174
+ margin-top 0 !important
175
175
  justify-content space-around !important
176
176
 
177
177
  .tk-meta-input
178
178
  position relative !important
179
- margin-top .8rem
179
+ margin-top 8px
180
180
  width calc(100% - 5.5rem)
181
181
 
182
182
  .tk-content
@@ -224,12 +224,13 @@
224
224
 
225
225
  .tk-comments-container
226
226
  > .tk-comment
227
- margin-top 0 !important
228
- margin-bottom .5rem !important
227
+ margin-top 0!important
228
+ margin-bottom 0.5rem!important
229
229
  background var(--sco-card-bg)
230
230
  transition .3s
231
231
  border-radius 12px
232
- padding .5rem 0 0
232
+ padding 0
233
+ padding-top 0.5rem
233
234
  border none
234
235
  border-top var(--style-border-dashed)
235
236
 
@@ -283,6 +284,7 @@
283
284
  .tk-meta-input
284
285
  .el-input
285
286
  .el-input-group__prepend
287
+ box-shadow none
286
288
  border-radius 12px 0 0 12px
287
289
  -webkit-user-select none
288
290
 
@@ -302,7 +304,6 @@
302
304
  .el-input
303
305
  margin-left 0 !important
304
306
  width 100% !important
305
- margin-bottom 8px
306
307
 
307
308
  .tk-icon
308
309
  position absolute
@@ -322,6 +323,7 @@ img.tk-avatar-img
322
323
  .el-input.el-input--small.el-input-group.el-input-group--prepend
323
324
  border-radius 12px
324
325
  background var(--sco-secondbg)
326
+ border var(--style-border-always)
325
327
 
326
328
  .el-input.el-input--small.el-input-group.el-input-group--prepend:nth-child(1):before
327
329
  content '输入QQ号会自动获取昵称和头像'
@@ -365,15 +367,16 @@ img.tk-avatar-img
365
367
  .el-input-group__append, .el-input-group__prepend
366
368
  background-color var(--sco-card-bg) !important
367
369
  color var(--sco-fontcolor) !important
368
- border-color var(--sco-card-border) !important
369
- border var(--style-border-always) !important
370
+ border 0 !important
370
371
  font-weight 700
371
372
 
372
373
  .el-input__inner
373
374
  background var(--sco-secondbg) !important
374
- border 1px solid var(--sco-card-border) !important
375
+ border 0 !important
375
376
  color var(--sco-fontcolor) !important
376
377
  padding-left 8px
378
+ height 32px
379
+ line-height 32px
377
380
  border-radius 12px
378
381
 
379
382
  .page
@@ -412,7 +415,7 @@ img.tk-avatar-img
412
415
  border-radius 8px !important
413
416
 
414
417
  .el-button:hover
415
- background var(--sco-main) !important
418
+ background var(--sco-black) !important
416
419
  color var(--sco-white) !important
417
420
 
418
421
  .el-button.tk-preview
@@ -0,0 +1,59 @@
1
+ #keyboard-tips
2
+ position fixed
3
+ top 80px
4
+ left 20px
5
+ z-index 999
6
+ background var(--sco-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(--sco-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(--sco-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(--sco-card-bg)
46
+ color var(--sco-fontcolor)
47
+ border var(--style-border)
48
+ border-color var(--sco-secondtext)
49
+ border-bottom 2px solid var(--sco-secondtext)
50
+ box-shadow var(--sco-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
@@ -12,10 +12,13 @@
12
12
  border var(--style-border)
13
13
  transition 0.3s
14
14
  border-radius 8px
15
+ animation slide-in .6s ease 0s 1 normal none running
15
16
 
16
17
  &:hover
17
18
  border var(--style-border-hover)
18
19
  box-shadow var(--sco-shadow-theme)
20
+ +maxWidth768()
21
+ border none
19
22
 
20
23
  +maxWidth768()
21
24
  top 0
@@ -23,20 +26,35 @@
23
26
  margin 0
24
27
  width 100%
25
28
  height 100%
29
+ border 0
30
+
31
+ .algolia-navbar
32
+ display flex
33
+ align-items center
34
+ margin-bottom 8px
35
+
36
+ .algolia-tips
37
+ color var(--sco-secondtext)
38
+ right 0
39
+ margin-left auto
40
+ opacity .8
26
41
 
27
42
  .search-close-button
28
- position absolute
29
- top 0.8rem
30
- right 1rem
31
- color var(--sco-gray)
43
+ color var(--sco-secondtext)
32
44
  font-size 1.4em
33
45
  line-height 1
34
46
  cursor pointer
35
- transition color .2s ease-in-out 0s
47
+ padding 4px
48
+ border-radius 50px
49
+ margin-left 4px
50
+ transition .3s
36
51
 
37
52
  &:hover
38
53
  color var(--sco-main)
39
54
 
55
+ .algolia-tips-text
56
+ margin-left .4rem
57
+
40
58
  #algolia-input-panel
41
59
  margin-bottom 8px
42
60
 
@@ -65,7 +83,7 @@
65
83
  visibility hidden
66
84
 
67
85
  #search-results
68
- padding 8px
86
+ padding-top 8px
69
87
  max-height calc(80vh - 130px)
70
88
  overflow-y auto
71
89
 
@@ -134,18 +152,9 @@
134
152
  right 0
135
153
  margin auto
136
154
 
137
- #algolia-stats
138
- margin-bottom 10px
139
- color var(--sco-gray)
140
- font-size .8rem
141
- font-weight bold
142
-
143
155
  .algolia-tips-text
144
156
  margin-left .4rem
145
157
 
146
- #algolia-search-results
147
- padding-top 8px
148
-
149
158
  #search-mask
150
159
  position fixed
151
160
  inset 0
@@ -155,4 +164,16 @@
155
164
  backdrop-filter blur(12px)
156
165
  -webkit-backdrop-filter blur(12px)
157
166
  transform translateZ(0)
158
- background var(--sco-maskbgdeep)
167
+ background var(--sco-maskbgdeep)
168
+
169
+ #algolia-hits
170
+ .tag-list
171
+ padding 4px 8px
172
+ border-radius 8px
173
+ margin-right 0.5rem
174
+ margin-top 0.5rem
175
+ border var(--style-border-always)
176
+
177
+ &:hover
178
+ background var(--sco-main)
179
+ color var(--sco-white)
@@ -12,10 +12,13 @@
12
12
  border var(--style-border)
13
13
  transition 0.3s
14
14
  border-radius 8px
15
+ animation slide-in .6s ease 0s 1 normal none running
15
16
 
16
17
  &:hover
17
18
  border var(--style-border-hover)
18
19
  box-shadow var(--sco-shadow-theme)
20
+ +maxWidth768()
21
+ border none
19
22
 
20
23
  +maxWidth768()
21
24
  top 0
@@ -23,6 +26,7 @@
23
26
  margin 0
24
27
  width 100%
25
28
  height 100%
29
+ border 0
26
30
 
27
31
  .search-dialog-title
28
32
  font-weight 700
@@ -116,7 +120,7 @@
116
120
  max-width 100%
117
121
  width 100%
118
122
  padding-top 8px
119
- margin-bottom 8px
123
+ padding-bottom 8px
120
124
 
121
125
  input
122
126
  height 100%
@@ -138,4 +142,16 @@
138
142
  backdrop-filter blur(12px)
139
143
  -webkit-backdrop-filter blur(12px)
140
144
  transform translateZ(0)
141
- background var(--sco-maskbgdeep)
145
+ background var(--sco-maskbgdeep)
146
+
147
+ #search-hits
148
+ .tag-list
149
+ padding 4px 8px
150
+ border-radius 8px
151
+ margin-right 0.5rem
152
+ margin-top 0.5rem
153
+ border var(--style-border-always)
154
+
155
+ &:hover
156
+ background var(--sco-main)
157
+ color var(--sco-white)
@@ -8,7 +8,7 @@
8
8
  border-width 1px !important
9
9
  margin-top 1rem
10
10
 
11
- &:hover
11
+ /#article-container a.tag-Link:not(.headerlink):hover
12
12
  border var(--style-border-hover)
13
13
 
14
14
  .tag-link-tips
@@ -4,6 +4,10 @@
4
4
  // 手机端侧边栏
5
5
  @import "_mixins/sidebar.styl"
6
6
 
7
+ // keyboard(键盘)
8
+ if hexo-config('keyboard.enable')
9
+ @import "_mixins/keyboard.styl"
10
+
7
11
  // article-sort (归档)
8
12
  @import "_mixins/article-sort.styl"
9
13
 
@@ -12,5 +12,4 @@ if hexo-config('css_prefix')
12
12
  // widgets
13
13
  @import '_widgets/index.styl'
14
14
 
15
- // dark
16
15
  @import '_mode/*'