hexo-theme-solitude 1.12.0 → 1.12.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.
- package/.github/logo.svg +18 -42
- package/README.md +7 -16
- package/README_en-US.md +7 -17
- package/README_zh-Hant.md +13 -23
- package/_config.yml +27 -23
- package/languages/default.yml +14 -0
- package/languages/en.yml +14 -1
- package/languages/zh-CN.yml +13 -0
- package/languages/zh-TW.yml +13 -0
- package/layout/includes/body/mode.pug +3 -3
- package/layout/includes/inject/body.pug +2 -0
- package/layout/includes/inject/head.pug +2 -1
- package/layout/includes/widgets/home/carousel.pug +18 -1
- package/layout/includes/widgets/home/postList.pug +4 -3
- package/layout/includes/widgets/page/about/other.pug +71 -70
- 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/news-comment/twikoo.pug +1 -0
- package/layout/includes/widgets/third-party/news-comment/valine.pug +1 -0
- package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -0
- package/layout/post.pug +0 -22
- package/package.json +1 -1
- package/plugins.yml +6 -1
- package/scripts/event/merge_config.js +1 -0
- package/scripts/filter/post_image.js +13 -0
- package/scripts/helper/page.js +6 -2
- package/scripts/tags/btns.js +35 -0
- package/source/css/_global/index.styl +1 -0
- package/source/css/_highlight/color.styl +69 -131
- package/source/css/_highlight/highlight/diff.styl +34 -62
- package/source/css/_highlight/prismjs/diff.styl +60 -59
- package/source/css/_layout/article-container.styl +1 -5
- package/source/css/_layout/recent-post.styl +19 -7
- package/source/css/_page/_home/carousel.styl +2 -0
- 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 +1 -31
- 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 +166 -274
- package/source/css/_tags/btns.styl +212 -0
- package/source/css/third_party/snackbar.min.css +1 -1
- package/source/css/third_party/tianli_talk.styl +16 -1
- package/source/js/main.js +97 -277
- package/source/js/music.js +1 -0
- package/source/js/right_menu.js +163 -136
@@ -0,0 +1,212 @@
|
|
1
|
+
[data-theme="dark"]
|
2
|
+
div
|
3
|
+
&.btns
|
4
|
+
filter brightness(0.7)
|
5
|
+
a
|
6
|
+
background 0 0
|
7
|
+
div
|
8
|
+
&.btns
|
9
|
+
margin 0 -8px
|
10
|
+
display flex
|
11
|
+
flex-wrap wrap
|
12
|
+
align-items flex-start
|
13
|
+
overflow visible
|
14
|
+
line-height 1.8
|
15
|
+
b
|
16
|
+
font-size 0.875rem
|
17
|
+
&.wide
|
18
|
+
& > a
|
19
|
+
padding-left 32px
|
20
|
+
padding-right 32px
|
21
|
+
&.fill
|
22
|
+
& > a
|
23
|
+
flex-grow 1
|
24
|
+
width auto
|
25
|
+
&.around
|
26
|
+
justify-content space-around
|
27
|
+
&.center
|
28
|
+
justify-content center
|
29
|
+
&.grid2
|
30
|
+
& > a
|
31
|
+
width calc(100% / 2 - 16px)
|
32
|
+
&.grid3
|
33
|
+
& > a
|
34
|
+
width calc(100% / 3 - 16px)
|
35
|
+
&.grid4
|
36
|
+
& > a
|
37
|
+
width calc(100% / 4 - 16px)
|
38
|
+
&.grid5
|
39
|
+
& > a
|
40
|
+
width calc(100% / 5 - 16px)
|
41
|
+
a
|
42
|
+
transition all 0.28s ease
|
43
|
+
-moz-transition all 0.28s ease
|
44
|
+
-webkit-transition all 0.28s ease
|
45
|
+
-o-transition all 0.28s ease
|
46
|
+
margin 8px
|
47
|
+
margin-top calc(1.25 * 16px + 32px)
|
48
|
+
min-width 120px
|
49
|
+
font-weight bold
|
50
|
+
display flex
|
51
|
+
justify-content flex-start
|
52
|
+
align-content center
|
53
|
+
align-items center
|
54
|
+
flex-direction column
|
55
|
+
padding 8px
|
56
|
+
text-align center
|
57
|
+
background #f6f6f6
|
58
|
+
border-radius 4px
|
59
|
+
border-bottom none!important
|
60
|
+
& > i
|
61
|
+
background #2196f3!important
|
62
|
+
&:first-child
|
63
|
+
color #fff
|
64
|
+
background #2196f3
|
65
|
+
b
|
66
|
+
font-weight bold
|
67
|
+
line-height 1.3
|
68
|
+
img
|
69
|
+
margin 0.4em auto !important
|
70
|
+
&:not([href])
|
71
|
+
cursor default
|
72
|
+
color inherit
|
73
|
+
a[href]:hover
|
74
|
+
background: var(--efu-main)
|
75
|
+
color: var(--efu-white) !important
|
76
|
+
& > i
|
77
|
+
&:first-child
|
78
|
+
background: var(--efu-main)
|
79
|
+
|
80
|
+
div.btns,
|
81
|
+
div.btns p,
|
82
|
+
div.btns a
|
83
|
+
font-size 0.8125rem
|
84
|
+
color #555
|
85
|
+
|
86
|
+
@media screen and (max-width: 1200px)
|
87
|
+
div
|
88
|
+
&.btns
|
89
|
+
&.grid2
|
90
|
+
& > a
|
91
|
+
width calc(100% / 2 - 16px)
|
92
|
+
|
93
|
+
@media screen and (max-width: 768px)
|
94
|
+
div
|
95
|
+
&.btns
|
96
|
+
&.grid2
|
97
|
+
& > a
|
98
|
+
width calc(100% / 2 - 16px)
|
99
|
+
|
100
|
+
@media screen and (max-width: 500px)
|
101
|
+
div
|
102
|
+
&.btns
|
103
|
+
&.grid2
|
104
|
+
& > a
|
105
|
+
width calc(100% / 1 - 16px)
|
106
|
+
|
107
|
+
@media screen and (max-width: 1200px)
|
108
|
+
div
|
109
|
+
&.btns
|
110
|
+
&.grid3
|
111
|
+
& > a
|
112
|
+
width calc(100% / 3 - 16px)
|
113
|
+
|
114
|
+
@media screen and (max-width: 768px)
|
115
|
+
div
|
116
|
+
&.btns
|
117
|
+
&.grid3
|
118
|
+
& > a
|
119
|
+
width calc(100% / 3 - 16px)
|
120
|
+
|
121
|
+
@media screen and (max-width: 500px)
|
122
|
+
div
|
123
|
+
&.btns
|
124
|
+
&.grid3
|
125
|
+
& > a
|
126
|
+
width calc(100% / 1 - 16px)
|
127
|
+
|
128
|
+
@media screen and (max-width: 1200px)
|
129
|
+
div
|
130
|
+
&.btns
|
131
|
+
&.grid4
|
132
|
+
& > a
|
133
|
+
width calc(100% / 3 - 16px)
|
134
|
+
|
135
|
+
@media screen and (max-width: 768px)
|
136
|
+
div
|
137
|
+
&.btns
|
138
|
+
&.grid4
|
139
|
+
& > a
|
140
|
+
width calc(100% / 3 - 16px)
|
141
|
+
|
142
|
+
@media screen and (max-width: 500px)
|
143
|
+
div
|
144
|
+
&.btns
|
145
|
+
&.grid4
|
146
|
+
& > a
|
147
|
+
width calc(100% / 2 - 16px)
|
148
|
+
|
149
|
+
@media screen and (max-width: 1200px)
|
150
|
+
div
|
151
|
+
&.btns
|
152
|
+
&.grid5
|
153
|
+
& > a
|
154
|
+
width calc(100% / 4 - 16px)
|
155
|
+
|
156
|
+
@media screen and (max-width: 768px)
|
157
|
+
div
|
158
|
+
&.btns
|
159
|
+
&.grid5
|
160
|
+
& > a
|
161
|
+
width calc(100% / 3 - 16px)
|
162
|
+
|
163
|
+
@media screen and (max-width: 500px)
|
164
|
+
div
|
165
|
+
&.btns
|
166
|
+
&.grid5
|
167
|
+
& > a
|
168
|
+
width calc(100% / 2 - 16px)
|
169
|
+
|
170
|
+
div.btns a > img:first-child,
|
171
|
+
div.btns a > i:first-child
|
172
|
+
transition all 0.28s ease
|
173
|
+
-moz-transition all 0.28s ease
|
174
|
+
-webkit-transition all 0.28s ease
|
175
|
+
-o-transition all 0.28s ease
|
176
|
+
height 64px
|
177
|
+
width 64px
|
178
|
+
box-shadow 0 1px 2px 0 rgba(0, 0, 0, 0.1)
|
179
|
+
margin 16px 8px 4px 8px
|
180
|
+
margin-top calc(-1.25 * 16px - 32px)
|
181
|
+
border 2px solid #fff
|
182
|
+
background #fff
|
183
|
+
line-height 60px
|
184
|
+
font-size 28px
|
185
|
+
|
186
|
+
div.btns a > img:first-child.auto,
|
187
|
+
div.btns a > i:first-child.auto
|
188
|
+
width auto
|
189
|
+
|
190
|
+
div.btns a p,
|
191
|
+
div.btns a b
|
192
|
+
margin 0.25em
|
193
|
+
font-weight normal
|
194
|
+
line-height 1.25
|
195
|
+
word-wrap break-word
|
196
|
+
|
197
|
+
div.btns a[href]:hover,
|
198
|
+
div.btns a[href]:hover b
|
199
|
+
color #ff5722
|
200
|
+
|
201
|
+
div.btns a[href]:hover > img:first-child,
|
202
|
+
div.btns a[href]:hover > i:first-child
|
203
|
+
transform scale(1.1) translateY(-8px)
|
204
|
+
box-shadow 0 4px 8px 0 rgba(0, 0, 0, 0.1)
|
205
|
+
|
206
|
+
div.btns.circle a > img:first-child,
|
207
|
+
div.btns.circle a > i:first-child
|
208
|
+
border-radius 32px
|
209
|
+
|
210
|
+
div.btns.rounded a > img:first-child,
|
211
|
+
div.btns.rounded a > i:first-child
|
212
|
+
border-radius 16px
|
@@ -1 +1 @@
|
|
1
|
-
@keyframes snackbar-progress{0%{width:0}to{width:100%}}.snackbar-container{transition
|
1
|
+
@keyframes snackbar-progress{0%{width:0}to{width:100%}}.snackbar-container{transition:.5s;font-size:14px;position:fixed;align-items:center;line-height:22px;padding:18px 24px;bottom:-100px;top:-100px;opacity:0;z-index:9999;background:var(--efu-lighttext)!important;color:var(--efu-card-bg);border-radius:0;display:flex;justify-content:center;max-width:none;min-width:100%;margin:0;left:0;height:60px;transform:none}.snackbar-container p{color:var(--efu-card-bg)!important;font-weight:700!important;text-align:center;font-size:.8rem!important;display:flex;justify-content:center}.snackbar-container .action{display:inline-block;font-size:inherit;margin:0 0 0 24px;min-width:min-content;cursor:pointer;color:var(--efu-card-bg)!important;background:var(--efu-lighttext)!important;padding:4px 6px;font-weight:700;border-radius:8px;transition:.3s;border:var(--style-border)}.snackbar-container .action:hover{background:var(--efu-card-bg)!important;color:var(--efu-lighttext)!important}.snackbar-container:after{position:absolute;width:0;height:100%;left:0;top:0;background:var(--efu-white);opacity:.1;content:"";animation:snackbar-progress var(--efu-snackbar-time) linear forwards;pointer-events:none}.snackbar-pos.top-center,.snackbar-pos.top-left{bottom:auto;top:0;left:0}.snackbar-pos.top-right{bottom:auto;top:0;right:0}
|
@@ -32,6 +32,12 @@
|
|
32
32
|
opacity 0
|
33
33
|
transition .3s
|
34
34
|
|
35
|
+
#post_chat_button
|
36
|
+
display none
|
37
|
+
|
38
|
+
+maxWidth768()
|
39
|
+
display block
|
40
|
+
|
35
41
|
#postChat_iframeContainer
|
36
42
|
z-index 1000
|
37
43
|
border var(--style-border-always)
|
@@ -39,12 +45,21 @@
|
|
39
45
|
animation to_show_fromLeftBottom .2s ease-out
|
40
46
|
border-radius 12px
|
41
47
|
|
48
|
+
+maxWidth768()
|
49
|
+
width 100% !important
|
50
|
+
height 100% !important
|
51
|
+
bottom 0 !important
|
52
|
+
left 0 !important
|
53
|
+
max-width 100% !important
|
54
|
+
max-height 100% !important
|
55
|
+
border-radius 0 !important
|
56
|
+
|
42
57
|
#efuTalk.on span.efuTalkTitle, #efuTalk:hover span.efuTalkTitle
|
43
58
|
color var(--efu-card-bg)
|
44
59
|
opacity 1
|
45
60
|
|
46
61
|
#postChat_button
|
47
|
-
display none!important
|
62
|
+
display none !important
|
48
63
|
|
49
64
|
#efuTalk i.solitude.efuTalkIcon
|
50
65
|
width 18px
|