hexo-theme-solitude 1.11.3 → 1.12.1

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 (73) hide show
  1. package/.github/logo.svg +18 -42
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +7 -19
  4. package/README_en-US.md +16 -26
  5. package/README_zh-Hant.md +15 -25
  6. package/SECURITY.md +1 -1
  7. package/_config.yml +52 -37
  8. package/languages/default.yml +15 -0
  9. package/languages/en.yml +15 -1
  10. package/languages/zh-CN.yml +14 -0
  11. package/languages/zh-TW.yml +14 -0
  12. package/layout/includes/body/mode.pug +3 -3
  13. package/layout/includes/console.pug +4 -3
  14. package/layout/includes/inject/body.pug +2 -3
  15. package/layout/includes/inject/head.pug +3 -2
  16. package/layout/includes/widgets/aside/asideNewstComments.pug +9 -0
  17. package/layout/includes/widgets/aside/asideSwitch.pug +2 -0
  18. package/layout/includes/widgets/home/carousel.pug +18 -1
  19. package/layout/includes/widgets/home/postList.pug +4 -3
  20. package/layout/includes/widgets/post/copyright.pug +46 -0
  21. package/layout/includes/widgets/post/postMeta.pug +1 -1
  22. package/layout/includes/widgets/post/postNav.pug +4 -4
  23. package/layout/includes/widgets/third-party/comments/comment.pug +3 -1
  24. package/layout/includes/widgets/third-party/comments/giscus.pug +60 -0
  25. package/layout/includes/widgets/third-party/comments/js.pug +3 -1
  26. package/layout/includes/widgets/third-party/news-comment/artalk.pug +10 -12
  27. package/layout/includes/widgets/third-party/news-comment/newest-comment.pug +6 -5
  28. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +10 -9
  29. package/layout/includes/widgets/third-party/news-comment/valine.pug +9 -7
  30. package/layout/includes/widgets/third-party/news-comment/waline.pug +9 -7
  31. package/layout/post.pug +0 -22
  32. package/package.json +3 -3
  33. package/plugins.yml +6 -1
  34. package/scripts/event/merge_config.js +17 -16
  35. package/scripts/event/welcome.js +1 -1
  36. package/scripts/filter/default.js +2 -2
  37. package/scripts/filter/post_image.js +13 -0
  38. package/scripts/helper/page.js +6 -2
  39. package/source/css/_highlight/color.styl +69 -131
  40. package/source/css/_highlight/highlight/diff.styl +34 -62
  41. package/source/css/_highlight/index.styl +1 -1
  42. package/source/css/_highlight/prismjs/diff.styl +60 -59
  43. package/source/css/_layout/article-container.styl +1 -5
  44. package/source/css/_layout/aside.styl +52 -5
  45. package/source/css/_layout/console.styl +3 -78
  46. package/source/css/_page/_home/carousel.styl +2 -0
  47. package/source/css/_page/message.styl +2 -1
  48. package/source/css/_page/music.styl +8 -1
  49. package/source/css/_page/other.styl +1 -0
  50. package/source/css/_post/commentBarrage.styl +2 -11
  51. package/source/css/_post/copyright.styl +129 -2
  52. package/source/css/_post/meta.styl +4 -44
  53. package/source/css/_post/pagination.styl +13 -0
  54. package/source/css/_post/postAI.styl +2 -3
  55. package/source/css/_post/relatedPost.styl +115 -129
  56. package/source/css/_post/tools.styl +168 -271
  57. package/source/css/third_party/snackbar.min.css +1 -1
  58. package/source/img/404.avif +0 -0
  59. package/source/img/avatar.avif +0 -0
  60. package/source/img/default.avif +0 -0
  61. package/source/img/error_load.avif +0 -0
  62. package/source/img/happy-sticker.avif +0 -0
  63. package/source/img/loading.avif +0 -0
  64. package/source/img/recent_c.avif +0 -0
  65. package/source/js/main.js +98 -277
  66. package/source/js/music.js +1 -0
  67. package/source/js/right_menu.js +163 -136
  68. package/source/img/404.webp +0 -0
  69. package/source/img/avatar.png +0 -0
  70. package/source/img/default.png +0 -0
  71. package/source/img/error_load.webp +0 -0
  72. package/source/img/happy-sticker.png +0 -0
  73. package/source/img/loading.gif +0 -0
@@ -4,7 +4,7 @@
4
4
  padding 12px
5
5
  line-height 1.3
6
6
  border var(--style-border-always)
7
- margin-top 16px;
7
+ margin-top 16px
8
8
  min-height 101.22px
9
9
  box-shadow var(--efu-shadow-border)
10
10
 
@@ -81,13 +81,12 @@
81
81
 
82
82
  .blinking-cursor
83
83
  background-color var(--efu-lighttext)
84
- width: 14px
84
+ width 14px
85
85
  height 14px
86
86
  border-radius 16px
87
87
  display inline-block
88
88
  vertical-align middle
89
89
  animation blinking-cursor 2s infinite
90
- -webkit-animation blinking-cursor 2s infinite
91
90
  margin-left 4px
92
91
  margin-bottom 3px
93
92
  transform scale(.6)
@@ -1,163 +1,149 @@
1
1
  .relatedPosts
2
- margin-top: 2rem
2
+ margin-top 2rem
3
3
  user-select none
4
4
 
5
- > .relatedPosts-list
6
- > div
7
- position: relative
8
- display: inline-block
9
- overflow: hidden
10
- margin: 3px
11
- width: calc(33.333% - 6px)
12
- height: 200px
13
- background: var(--efu-main)
14
- vertical-align: bottom
5
+ .relatedPosts-list > div
6
+ position relative
7
+ display inline-block
8
+ overflow hidden
9
+ margin 3px
10
+ width calc(33.333% - 6px)
11
+ height 200px
12
+ background var(--efu-main)
13
+ vertical-align bottom
15
14
 
16
15
  .cover
17
- width: 360px
18
- min-width: 45%
19
- height: 100%
20
- transition: all .6s ease 0s
21
- object-fit: cover
22
- filter: brightness(.9)
23
- max-width: 45%
16
+ width 360px
17
+ min-width 45%
18
+ height 100%
19
+ transition all .6s ease 0s
20
+ object-fit cover
21
+ filter brightness(.9)
22
+ max-width 45%
24
23
 
25
24
  &::after
26
- content: ' '
27
- display: block
28
- position: absolute
29
- z-index: 0
30
- top: 0
31
- left: 0
32
- width: 100%
33
- height: 100%
34
- background: url(error_img) 50%
35
- background-size: cover
25
+ content ' '
26
+ display block
27
+ position absolute
28
+ z-index 0
29
+ top 0
30
+ left 0
31
+ width 100%
32
+ height 100%
33
+ background url(error_img) 50%
34
+ background-size cover
36
35
 
37
36
  .content
38
- padding: 0 1rem
39
- width: 100%
37
+ padding 0 1rem
38
+ width 100%
40
39
 
41
40
  .date
42
- color: var(--light-grey)
43
- font-size: 90%
41
+ color var(--light-grey)
42
+ font-size 90%
44
43
 
45
44
  .title
46
- color: var(--efu-white)
47
- -webkit-line-clamp: 2
48
- margin-right: auto
45
+ color var(--efu-white)
46
+ -webkit-line-clamp 2
47
+ margin-right auto
49
48
 
50
49
  a
51
- display: flex
52
- width: 100%
53
- height: 100%
50
+ display flex
51
+ width 100%
52
+ height 100%
54
53
 
55
- > .headline
56
- margin-bottom: .8rem
57
- font-weight: 700
58
- font-size: 20px
59
- display: flex
60
- align-items: center
54
+ .headline
55
+ margin-bottom .5rem
56
+ font-weight 700
57
+ font-size 20px
58
+ display flex
59
+ align-items center
61
60
 
62
61
  span
63
- margin-right: auto
64
- margin-left: 8px
62
+ margin-right auto
63
+ margin-left 8px
65
64
 
66
65
  a
67
- font-weight: 400
66
+ font-weight 400
68
67
 
69
68
  &:hover
70
69
  color var(--efu-lighttext)
71
70
 
72
71
  &-link
73
- display: block
74
- justify-content: space-between
75
- margin-left: 8px
76
- font-size: 13px
72
+ display block
73
+ justify-content space-between
74
+ margin-left 8px
75
+ font-size 13px
77
76
 
78
77
  .relatedPosts-list
79
- display: flex
80
- flex-wrap: wrap
81
- justify-content: space-between
82
- flex-direction: column
83
-
84
- @media screen and (max-width: 768px)
85
- .relatedPosts
86
- > .relatedPosts-list
87
- > div
88
- margin: 2px
89
- width: calc(50% - 4px)
90
- height: 150px
91
-
92
- @media screen and (max-width: 600px)
93
- .relatedPosts
94
- > .relatedPosts-list
95
- > div
96
- width: calc(100% - 4px)
97
-
98
- @media screen and (min-width: 768px)
99
- #post
100
- > div.relatedPosts
101
- > div.relatedPosts-list
102
- > div
103
- -webkit-mask-image: -webkit-radial-gradient(center, #fff, #000)
104
- border-radius: 12px
105
-
106
- .relatedPosts
107
- > .headline
108
- font-size: .8em
109
-
110
- @media screen and (max-width: 1300px)
111
- #post
112
- > div.relatedPosts
113
- > div.relatedPosts-list
114
- > div:nth-child(7)
115
- display: none
116
-
117
- > div:nth-child(8)
118
- display: none
119
-
120
- .relatedPosts
121
- > .relatedPosts-list
122
- > div
123
- background: var(--efu-secondbg)
124
- border: var(--style-border)
125
- transition: .3s
126
- cursor: pointer
127
- overflow: hidden
128
- width: 100%
129
- margin-bottom: 8px
130
-
131
- &:hover
132
- background: var(--efu-main)
133
-
134
- .content
135
- .title
136
- color: var(--efu-fontcolor)
137
- font-weight: 700
138
- line-height: 1.5
139
- -webkit-line-clamp: 4
140
- font-size: .9rem
141
- text-align: left
142
- overflow: hidden
143
-
144
- .date
145
- color: var(--efu-fontcolor)
146
- display: none
147
-
148
- &:hover
149
- a
150
- .title
151
- color: var(--efu-white)
78
+ display flex
79
+ flex-wrap wrap
80
+ justify-content space-between
81
+ flex-direction column
82
+
83
+ +maxWidth768()
84
+ .relatedPosts,
85
+ .relatedPosts-list > div
86
+ margin 2px
87
+ width calc(50% - 4px)
88
+ height 150px
89
+
90
+ +maxWidth600()
91
+ .relatedPosts,
92
+ .relatedPosts-list > div
93
+ width calc(100% - 4px)
94
+
95
+ +minWidth768()
96
+ #post > div.relatedPosts > div.relatedPosts-list > div
97
+ -webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
98
+ border-radius 12px
99
+
100
+ .relatedPosts > .headline
101
+ font-size .8em
102
+
103
+ +maxWidth1300()
104
+ #post > div.relatedPosts > div.relatedPosts-list > div:nth-child(7),
105
+ #post > div.relatedPosts > div.relatedPosts-list > div:nth-child(8)
106
+ display none
107
+
108
+ .relatedPosts > .relatedPosts-list > div
109
+ background var(--efu-secondbg)
110
+ border var(--style-border)
111
+ transition .3s
112
+ cursor pointer
113
+ overflow hidden
114
+ width 100%
115
+ margin-bottom 8px
116
+
117
+ &:hover
118
+ background var(--efu-main)
119
+
120
+ .content
121
+ .title
122
+ color var(--efu-fontcolor)
123
+ font-weight 700
124
+ line-height 1.5
125
+ -webkit-line-clamp 4
126
+ font-size .9rem
127
+ text-align left
128
+ overflow hidden
129
+
130
+ .date
131
+ color var(--efu-fontcolor)
132
+ display none
133
+
134
+ &:hover
135
+ a
136
+ .title
137
+ color var(--efu-white)
152
138
 
153
- @media screen and (max-width: 768px)
139
+ +maxWidth768()
154
140
  .relatedPosts
155
- display: none
141
+ display none
156
142
 
157
143
  > .relatedPosts-list
158
144
  > div
159
- border-radius: 4px
145
+ border-radius 4px
160
146
 
161
- @media screen and (min-width: 768px)
147
+ +minWidth768()
162
148
  .relatedPosts
163
- margin-top: 1rem
149
+ margin-top .5rem