hexo-theme-solitude 1.4.6 → 1.5.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 (87) hide show
  1. package/CONTRIBUTING.md +16 -3
  2. package/README.md +2 -2
  3. package/README_EN.md +2 -2
  4. package/_config.yml +155 -230
  5. package/languages/en-US.yml +5 -2
  6. package/languages/zh-CN.yml +5 -2
  7. package/languages/zh-TW.yml +5 -2
  8. package/layout/404.pug +2 -2
  9. package/layout/includes/footer.pug +8 -6
  10. package/layout/includes/head/config.pug +7 -7
  11. package/layout/includes/head/opengraph.pug +5 -4
  12. package/layout/includes/head/pwa.pug +2 -3
  13. package/layout/includes/inject/body.pug +17 -19
  14. package/layout/includes/inject/head.pug +3 -2
  15. package/layout/includes/mixins/pagination.pug +1 -1
  16. package/layout/includes/nav.pug +3 -3
  17. package/layout/includes/page/says.pug +44 -7
  18. package/layout/includes/sidebar.pug +1 -1
  19. package/layout/includes/widgets/aside/asideInfoCard.pug +4 -3
  20. package/layout/includes/widgets/home/banner.pug +11 -4
  21. package/layout/includes/widgets/home/bbTimeList.pug +13 -7
  22. package/layout/includes/widgets/home/categoryGroup.pug +11 -8
  23. package/layout/includes/widgets/home/hometop.pug +1 -2
  24. package/layout/includes/widgets/home/postList.pug +3 -3
  25. package/layout/includes/widgets/nav/group.pug +13 -0
  26. package/layout/includes/widgets/nav/menu.pug +20 -16
  27. package/layout/includes/widgets/page/about/award.pug +1 -1
  28. package/layout/includes/widgets/page/banner.pug +8 -13
  29. package/layout/includes/widgets/page/equipment/content.pug +1 -1
  30. package/layout/includes/widgets/page/links/linksCard.pug +0 -1
  31. package/layout/includes/widgets/third-party/comments/waline.pug +2 -0
  32. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +2 -2
  33. package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
  34. package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -1
  35. package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
  36. package/layout/index.pug +6 -6
  37. package/layout/page.pug +0 -2
  38. package/package.json +1 -1
  39. package/plugins.yml +0 -5
  40. package/scripts/event/init.js +18 -17
  41. package/scripts/event/welcome.js +1 -1
  42. package/scripts/generator/gallery.js +29 -27
  43. package/scripts/helper/getArchiveLength.js +5 -9
  44. package/scripts/helper/related_post.js +28 -39
  45. package/scripts/helper/stylus.js +23 -8
  46. package/source/css/_global/animation.styl +313 -0
  47. package/source/css/_layout/basic.styl +10 -1
  48. package/source/css/_layout/header.styl +5 -5
  49. package/source/css/_layout/index.styl +0 -1
  50. package/source/css/_page/_about/skills.styl +1 -1
  51. package/source/css/_page/_home/category-bar.styl +14 -14
  52. package/source/css/_page/_home/home-top.styl +57 -45
  53. package/source/css/_page/_home/recent-post.styl +1 -1
  54. package/source/css/_page/equipment.styl +3 -2
  55. package/source/css/_page/home.styl +0 -15
  56. package/source/css/_page/index.styl +0 -2
  57. package/source/css/_page/links.styl +9 -8
  58. package/source/css/_page/says.styl +1 -2
  59. package/source/css/_page/share.styl +30 -67
  60. package/source/css/_widgets/_aside/index.styl +1 -1
  61. package/source/css/_widgets/_aside/info.styl +1 -1
  62. package/source/css/_widgets/_comment/twikoo.styl +4 -6
  63. package/source/css/_widgets/_comment/waline.styl +435 -72
  64. package/source/css/_widgets/_extra/console.styl +1 -1
  65. package/source/css/_widgets/_extra/fullpage.styl +1 -1
  66. package/source/css/_widgets/_mixins/footer.styl +1 -1
  67. package/source/css/_widgets/_post/content.styl +1 -11
  68. package/source/css/_widgets/_post/meta.styl +2 -2
  69. package/source/css/_widgets/_post/relatedPost.styl +1 -1
  70. package/source/css/_widgets/_post/tools.styl +1 -1
  71. package/source/css/_widgets/_search/algolia-search.styl +4 -2
  72. package/source/css/_widgets/_tags/note.styl +4 -0
  73. package/source/css/index.styl +0 -1
  74. package/source/js/comment/twikoo_commentBarrage.js +76 -75
  75. package/source/js/covercolor/local.js +11 -10
  76. package/source/js/main.js +27 -35
  77. package/source/js/music.js +89 -49
  78. package/layout/includes/page/rss.pug +0 -20
  79. package/layout/includes/widgets/home/bb/json.pug +0 -25
  80. package/layout/includes/widgets/home/bb/local.pug +0 -20
  81. package/layout/includes/widgets/home/bb/memos.pug +0 -28
  82. package/layout/includes/widgets/nav/left.pug +0 -10
  83. package/layout/includes/widgets/page/says/json.pug +0 -82
  84. package/layout/includes/widgets/page/says/local.pug +0 -44
  85. package/layout/includes/widgets/page/says/memos.pug +0 -111
  86. package/source/css/_global/animation.css +0 -813
  87. package/source/css/_page/rss.styl +0 -82
@@ -1,18 +1,18 @@
1
1
  #category-bar
2
- padding: 0.4rem 1rem 0.4rem 0.7rem;
3
- background: var(--sco-card-bg);
4
- border-radius: 12px;
5
- display: flex;
6
- white-space: nowrap;
7
- overflow: hidden;
8
- margin-bottom: 1rem;
9
- border: var(--style-border);
10
- transition: 0.3s;
11
- height: 50px;
12
- width: 100%;
13
- justify-content: space-between;
14
- -webkit-user-select: none;
15
- align-items: center;
2
+ padding 0.4rem 1rem 0.4rem 0.7rem
3
+ background var(--sco-card-bg)
4
+ border-radius 12px
5
+ display flex
6
+ white-space nowrap
7
+ overflow hidden
8
+ margin-bottom 1rem
9
+ border var(--style-border)
10
+ transition 0.3s
11
+ height 50px
12
+ width 100%
13
+ justify-content space-between
14
+ user-select none
15
+ align-items center
16
16
 
17
17
  +maxWidth1300()
18
18
  margin-bottom 1rem
@@ -5,7 +5,7 @@
5
5
  overflow-x auto
6
6
  width 100%
7
7
  margin-bottom 0
8
- -webkit-user-select none
8
+ user-select none
9
9
 
10
10
  +maxWidth768()
11
11
  border-radius 0
@@ -31,15 +31,27 @@
31
31
  flex-direction column
32
32
  justify-content space-between
33
33
 
34
+ .tags-group-wrapper
35
+ margin-top 0
36
+ display flex
37
+ flex-wrap wrap
38
+ animation rowup 60s linear infinite
39
+ width 300px
40
+ margin-left auto
41
+
42
+ .tags-group-icon-pair
43
+ display flex
44
+
45
+ .tags-group-icon:nth-child(even)
46
+ margin-left 4rem
47
+
34
48
  .categoryGroup
35
49
  display flex
36
50
  flex-direction column
37
51
  justify-content space-between
38
52
  min-width 200px
39
53
  +minWidth1200()
40
- flex-direction row
41
- height 24%
42
- animation slide-in .6s .2s backwards
54
+ display none
43
55
  +maxWidth768()
44
56
  min-width 130px
45
57
  margin-bottom .5rem
@@ -59,22 +71,6 @@
59
71
  height 47%
60
72
  box-shadow none
61
73
 
62
- &:nth-child(3)
63
- display none
64
- +minWidth1200()
65
- width calc(100% / 3 - .33rem)
66
- height 100%
67
- margin-right .5rem
68
-
69
- &:last-child
70
- margin-right 0
71
-
72
- &:hover
73
- width 50%
74
-
75
- &:nth-child(3)
76
- display flex
77
-
78
74
  a.categoryButton
79
75
  height 100%
80
76
  width 100%
@@ -129,30 +125,6 @@
129
125
  .categoryButtonText
130
126
  padding-left 21px
131
127
 
132
- &.bikan
133
- background linear-gradient(to right, #358bff, #15c6ff)
134
- background-size 200%
135
-
136
- [data-theme=dark] &
137
- background linear-gradient(to right, #0653b8, #2fcbff)
138
- background-size 200%
139
-
140
- &.remen
141
- background linear-gradient(to right, #f65, #ffbf37)
142
- background-size 200%
143
-
144
- [data-theme=dark] &
145
- background linear-gradient(to right, #e22a16, #da980c)
146
- background-size 200%
147
-
148
- &.shiyong
149
- background linear-gradient(to right, #18e7ae, #1eebeb)
150
- background-size 200%
151
-
152
- [data-theme=dark] &
153
- background linear-gradient(to right, #099e74, #0ea4a4)
154
- background-size 200%
155
-
156
128
  /.topGroup
157
129
  display: flex
158
130
 
@@ -340,4 +312,44 @@
340
312
  transform: scale(1.2)
341
313
 
342
314
  .banner-button-group
343
- bottom: 1rem
315
+ bottom: 1rem
316
+
317
+ .banners-links
318
+ display flex
319
+ position absolute
320
+ bottom 20px
321
+ left 40px
322
+ flex-direction column
323
+ justify-content space-between
324
+ flex-wrap wrap
325
+ height 120px
326
+
327
+ .tags-group-icon-pair
328
+ margin-left 1rem
329
+ user-select none
330
+
331
+ .banners-link-btn
332
+ display flex
333
+ flex-direction row
334
+ align-items center
335
+ padding 8px 18px 8px 14px
336
+ border-radius 60px
337
+ margin-bottom 12px
338
+ color var(--sco-white)
339
+ width 94px
340
+ position relative
341
+ background-size 200%
342
+
343
+ &:not(:last-child)
344
+ margin-right 10px
345
+
346
+ &:hover
347
+ background-position 100% 0
348
+
349
+ .banners-link-title
350
+ margin-left auto
351
+
352
+ for name in banner_group
353
+ .banners-link-{name}
354
+ background convert(getGroupColor(name))
355
+ background-size 200%
@@ -6,7 +6,7 @@
6
6
  justify-content space-between
7
7
  align-items flex-start
8
8
  align-content flex-start
9
- -webkit-user-select none
9
+ user-select none
10
10
  transition width .3s
11
11
 
12
12
  +maxWidth768()
@@ -26,6 +26,7 @@
26
26
  box-shadow var(--sco-shadow-border)
27
27
  min-height 400px
28
28
  position relative
29
+ user-select none
29
30
 
30
31
  +maxWidth1200()
31
32
  width calc(50% - 12px)
@@ -56,11 +57,11 @@
56
57
  white-space nowrap
57
58
  overflow hidden
58
59
  text-overflow ellipsis
59
- cursor pointer
60
60
  width fit-content
61
61
 
62
62
  &:hover
63
- color var(--sco-main)
63
+ color var(--sco-vip)
64
+ cursor pointer
64
65
 
65
66
  .equipment-item-content-item-specification
66
67
  font-size 12px
@@ -15,21 +15,6 @@
15
15
  > div:not(.author-content-item)
16
16
  animation slide-in .6s .2s backwards
17
17
 
18
- .tags-group-icon
19
- width: 120px
20
- height: 120px
21
- border-radius: 30px
22
- display: flex
23
- align-items: center
24
- justify-content: center
25
- color: #fff
26
- font-size: 66px
27
- font-weight: 700
28
- box-shadow: var(--sco-shadow-blackdeep)
29
-
30
- img
31
- width: 60%
32
-
33
18
  +minWidth768()
34
19
  > div:nth-child(1) > a::before
35
20
  height: 24px
@@ -8,8 +8,6 @@
8
8
 
9
9
  @import "error.styl"
10
10
 
11
- @import "rss.styl"
12
-
13
11
  if hexo-config('moments.enable')
14
12
  @import "moment.styl"
15
13
 
@@ -82,7 +82,6 @@
82
82
  width calc(50% - 16px)
83
83
 
84
84
  .img
85
- -webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
86
85
  border-radius 0
87
86
  height 120px
88
87
  width 100%
@@ -91,17 +90,16 @@
91
90
  padding 0
92
91
  transition all .3s ease 0s
93
92
  overflow hidden
94
- background-color #f6f6f6
95
93
 
96
94
  img
97
- width 100%
98
- height 100%
99
- object-fit cover
100
95
  border-radius 0
101
96
  transform scale(1.03)
102
97
  transition .3s
103
98
  margin 0
104
99
  max-width 100%
100
+ width 100%
101
+ height 100%
102
+ object-fit cover
105
103
 
106
104
  .img-alt
107
105
  display none
@@ -158,18 +156,21 @@
158
156
  box-shadow var(--sco-shadow-main)
159
157
 
160
158
  .site-card-tag
161
- left: -80px
159
+ left: -60px
162
160
 
163
161
  .img
164
162
  height 80px
163
+ transform scale(1.1)
164
+ filter brightness(.3)
165
+ border-radius 12px
166
+ background var(--sco-lighttext)
165
167
 
166
168
  img
169
+ border-radius 12px
167
170
  transform scale(1.1)
168
171
  filter brightness(.3)
169
- cursor pointer
170
172
 
171
173
  a
172
- border-bottom 2px solid var(--sco-none)
173
174
  color var(--sco-white)
174
175
  background var(--sco-main)
175
176
  box-shadow var(--sco-shadow-main)
@@ -11,7 +11,7 @@ if hexo-config('says.home_mini')
11
11
  height 50px
12
12
  width 100%
13
13
  justify-content space-between
14
- -webkit-user-select none
14
+ user-select none
15
15
  align-items center
16
16
  padding .5rem 1rem
17
17
 
@@ -108,7 +108,6 @@ if hexo-config('says.enable')
108
108
  display flex
109
109
  justify-content space-between
110
110
  width 100%
111
- -webkit-user-select none
112
111
  user-select none
113
112
 
114
113
  .bber-info
@@ -5,9 +5,8 @@ div#banners
5
5
  +minWidth1200()
6
6
  display flex
7
7
  width 100%
8
- height 76%
8
+ height 100%
9
9
  background var(--sco-card-bg)
10
- margin-bottom .5rem
11
10
  border var(--style-border)
12
11
  border-radius 12px
13
12
  overflow hidden
@@ -55,15 +54,15 @@ div#banners
55
54
  font-size 1rem
56
55
 
57
56
  .banners-title
58
- top 2rem
59
- left 1.5rem
57
+ top 2.6rem
58
+ left 2rem
60
59
  position absolute
61
60
  display flex
62
61
  flex-direction column
63
62
 
64
63
  &-big
65
64
  font-size 36px
66
- line-height 1
65
+ line-height 1.15
67
66
  font-weight 700
68
67
  margin-bottom 8px
69
68
 
@@ -72,38 +71,8 @@ div#banners
72
71
  line-height 1
73
72
  color var(--sco-secondtext)
74
73
  margin-top 8px
75
- margin-bottom .5rem
76
-
77
- #banner-hover
78
- position absolute
79
- width 100%
80
- height 100%
81
- top 0
82
- left 0
83
- border-radius 12px
84
- background var(--sco-theme)
85
- color var(--sco-card-bg)
86
- padding-left .5rem
87
- display flex
88
- flex-direction column
89
- justify-content center
90
- opacity 0
91
- transition cubic-bezier(.71, .15, .16, 1.15) .6s
92
-
93
- i
94
- font-size 80px
95
- opacity .4
96
-
97
- &:hover
98
- #banner-hover
99
- opacity 1
100
- padding-left 2rem
101
- background var(--sco-theme-op-deep)
102
- backdrop-filter blur(15px)
103
- transform translateZ(0)
104
- transition .3s
105
- background-size 200%
106
- cursor pointer
74
+ margin-bottom 0.5rem
75
+ margin-left 2px
107
76
 
108
77
  .flink
109
78
  .banners-title
@@ -116,15 +85,14 @@ div#banners
116
85
 
117
86
  .tags-group-all
118
87
  display flex
119
- transform rotate(-30deg)
120
88
 
121
89
  &.nowrapMove
122
- transform rotate(0)
123
90
  padding-bottom 2rem
124
91
 
125
92
  .tags-group-wrapper
126
93
  margin-top: 7rem
127
- animation: rowup 120s linear infinite
94
+ animation: rowleft 120s linear infinite
95
+ display flex
128
96
 
129
97
  .tags-group-icon
130
98
  border-radius 50%
@@ -135,36 +103,31 @@ div#banners
135
103
  border-radius 50%
136
104
  object-fit cover
137
105
 
138
- .tags-group-wrapper
139
- margin-top: 5rem
140
- display: flex
141
- flex-wrap: nowrap
142
- animation: rowup 60s linear infinite
106
+ .tags-group-icon-pair
107
+ margin-left 1rem
108
+ user-select none
143
109
 
144
- /.tags-group-icon-pair
145
- margin-left 1rem
146
- user-select none
110
+ a img
111
+ border-radius 50%
147
112
 
148
- a img
149
- border-radius 50%
113
+ /.tags-group-icon
114
+ width 120px
115
+ height 120px
116
+ border-radius 30px
117
+ display flex
118
+ align-items center
119
+ justify-content center
120
+ color #fff
121
+ font-size 66px
122
+ font-weight 700
123
+ box-shadow var(--sco-shadow-blackdeep)
124
+
125
+ &:nth-child(even)
126
+ margin-top 1rem
127
+ transform translate(-60px)
150
128
 
151
- .tags-group-icon
152
- width 120px
153
- height 120px
154
- display flex
155
- align-items center
156
- justify-content center
157
- color #fff
158
- font-size 66px
159
- font-weight 700
160
- box-shadow var(--sco-shadow-blackdeep)
161
-
162
- &:nth-child(even)
163
- margin-top 1rem
164
- transform translate(-60px)
165
-
166
- img
167
- width 60%
129
+ img
130
+ width 60%
168
131
 
169
132
  .author-content
170
133
  display flex
@@ -35,7 +35,7 @@
35
35
 
36
36
  + div, + ul
37
37
  padding 0
38
- -webkit-user-select none
38
+ user-select none
39
39
 
40
40
  .card-widget
41
41
  box-shadow var(--sco-shadow-border)
@@ -85,7 +85,7 @@
85
85
  padding 2px 8px
86
86
  border-radius 12px
87
87
  cursor pointer
88
- -webkit-user-select none
88
+ user-select none
89
89
  transition .3s
90
90
  margin auto
91
91
  min-width 100px
@@ -28,7 +28,7 @@
28
28
  .tk-action-link
29
29
  color var(--sco-lighttext) !important
30
30
  cursor pointer
31
- -webkit-user-select none
31
+ user-select none
32
32
  padding 0 12px 0 12px
33
33
  transition all .3s
34
34
  border-radius 8px
@@ -50,8 +50,6 @@
50
50
 
51
51
  .tk-content
52
52
  img
53
- max-height 1100px !important
54
- max-width 100% !important
55
53
  border-radius 12px
56
54
 
57
55
  .tk-avatar
@@ -211,7 +209,7 @@
211
209
  border var(--style-border-always)
212
210
  box-shadow var(--sco-shadow-border)
213
211
  border-radius 12px
214
- -webkit-user-select none
212
+ user-select none
215
213
 
216
214
  &:hover
217
215
  background var(--sco-theme) !important
@@ -286,7 +284,7 @@
286
284
  .el-input-group__prepend
287
285
  box-shadow none
288
286
  border-radius 12px 0 0 12px
289
- -webkit-user-select none
287
+ user-select none
290
288
 
291
289
  @media screen and (max-width: 768px)
292
290
  .tk-meta-input
@@ -516,4 +514,4 @@ button.el-button.tk-cancel.el-button--default.el-button--small
516
514
 
517
515
  .el-textarea .el-input__count
518
516
  color var(--sco-secondtext) !important
519
- -webkit-user-select none
517
+ user-select none