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