hexo-theme-clarity 1.0.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.
- package/.travis.yml +5 -0
- package/LICENSE +7 -0
- package/README-en.md +319 -0
- package/README.md +343 -0
- package/_config.yml +180 -0
- package/languages/de-DE.yml +22 -0
- package/languages/en.yml +37 -0
- package/languages/es-ES.yml +22 -0
- package/languages/fr-FR.yml +22 -0
- package/languages/ko.yml +22 -0
- package/languages/nb-NO.yml +38 -0
- package/languages/ru.yml +22 -0
- package/languages/zh-CN.yml +38 -0
- package/languages/zh-TW.yml +38 -0
- package/layout/_partial/after_footer.pug +60 -0
- package/layout/_partial/comments.pug +183 -0
- package/layout/_partial/darkmode.pug +13 -0
- package/layout/_partial/footer.pug +26 -0
- package/layout/_partial/head.pug +61 -0
- package/layout/_partial/helpers.pug +21 -0
- package/layout/_partial/mathjax.pug +6 -0
- package/layout/_partial/mathjax2.pug +1 -0
- package/layout/_partial/paginator.pug +3 -0
- package/layout/_partial/post_nav.pug +6 -0
- package/layout/_partial/tag.pug +2 -0
- package/layout/_partial/totop.pug +5 -0
- package/layout/_partial/wordcount.pug +11 -0
- package/layout/_widget/category.pug +4 -0
- package/layout/_widget/copyright.pug +27 -0
- package/layout/_widget/donate.pug +19 -0
- package/layout/_widget/info.pug +21 -0
- package/layout/_widget/links.pug +6 -0
- package/layout/_widget/recent_comments.pug +12 -0
- package/layout/_widget/recent_posts.pug +4 -0
- package/layout/_widget/search.pug +26 -0
- package/layout/_widget/tag.pug +5 -0
- package/layout/archive.pug +24 -0
- package/layout/base-without-sidebar.pug +38 -0
- package/layout/base.pug +47 -0
- package/layout/blogroll.pug +21 -0
- package/layout/index.pug +50 -0
- package/layout/page.pug +12 -0
- package/layout/post.pug +60 -0
- package/layout/single-column.pug +10 -0
- package/layout/tagcloud.pug +23 -0
- package/layout/timeline.pug +28 -0
- package/package.json +15 -0
- package/source/css/copycode.scss +32 -0
- package/source/css/copyright.scss +43 -0
- package/source/css/donate.scss +308 -0
- package/source/css/search.scss +13 -0
- package/source/css/style.scss +2536 -0
- package/source/img/alipay.svg +1 -0
- package/source/img/avatar.png +0 -0
- package/source/img/bei.png +0 -0
- package/source/img/bitcoin.svg +1 -0
- package/source/img/github.svg +1 -0
- package/source/img/like.svg +1 -0
- package/source/img/paypal.svg +1 -0
- package/source/img/wechat.svg +1 -0
- package/source/js/codeblock-resizer.js +51 -0
- package/source/js/copycode.js +30 -0
- package/source/js/copyright.js +17 -0
- package/source/js/donate.js +49 -0
- package/source/js/fancybox.js +19 -0
- package/source/js/love.js +1 -0
- package/source/js/recent-comments.js +54 -0
- package/source/js/search.js +101 -0
- package/source/js/share.js +60 -0
- package/source/js/smartresize.js +32 -0
- package/source/js/totop.js +12 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
#donate {
|
|
2
|
+
position: relative;
|
|
3
|
+
font-family: "Helvetica Neue", Ubuntu, "WenQuanYi Micro Hei", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Micro Hei Mono", "WenQuanYi Zen Hei", "WenQuanYi Zen Hei", "Apple LiGothic Medium", "SimHei", "ST Heiti", "WenQuanYi Zen Hei Sharp", Arial, sans-serif;
|
|
4
|
+
-webkit-font-smoothing: antialiased;
|
|
5
|
+
line-height: 1.8em;
|
|
6
|
+
text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
|
|
7
|
+
height: 15em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#donate img {
|
|
11
|
+
border-width: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#donate a {
|
|
15
|
+
color: #000;
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
outline: none;
|
|
18
|
+
border: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#donate .list,
|
|
22
|
+
.list li,
|
|
23
|
+
.list-left li {
|
|
24
|
+
list-style: none;
|
|
25
|
+
list-style-type: none;
|
|
26
|
+
margin: 0px;
|
|
27
|
+
padding: 0px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#donate .pos-f {
|
|
31
|
+
position: absolute;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#donate .left-100 {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#donate .blur {
|
|
40
|
+
-webkit-filter: blur(3px);
|
|
41
|
+
filter: blur(3px);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#donate .tr3 {
|
|
45
|
+
transition: all .3s;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#donate #DonateText {
|
|
49
|
+
position: absolute;
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
width: 70px;
|
|
52
|
+
height: 70px;
|
|
53
|
+
line-height: 70px;
|
|
54
|
+
color: #fff;
|
|
55
|
+
background: #ffd886 url(../img/like.svg) no-repeat center 10px;
|
|
56
|
+
background-size: 20px;
|
|
57
|
+
border-radius: 35px;
|
|
58
|
+
text-align: center;
|
|
59
|
+
left: calc(50% - 120px);
|
|
60
|
+
top: calc(50% - 60px);
|
|
61
|
+
transform: rotatez(-15deg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#donate #donateBox {
|
|
65
|
+
display: table;
|
|
66
|
+
left: calc(50% - 150px);
|
|
67
|
+
top: calc(50% - 15px);
|
|
68
|
+
background-color: #fff;
|
|
69
|
+
border: 1px solid #ddd;
|
|
70
|
+
border-radius: 6px;
|
|
71
|
+
width: 299px;
|
|
72
|
+
height: 28px;
|
|
73
|
+
float: left;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
#donate #donateBox li {
|
|
79
|
+
width: 74px;
|
|
80
|
+
/*float: left;*/
|
|
81
|
+
/* float: right; */
|
|
82
|
+
display: table-cell;
|
|
83
|
+
text-align: center;
|
|
84
|
+
border-right: 1px solid #ddd;
|
|
85
|
+
background: no-repeat center center;
|
|
86
|
+
background-color: rgba(204, 217, 220, 0.1);
|
|
87
|
+
background-size: 45px;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
height: 28px;
|
|
91
|
+
-webkit-filter: grayscale(1);
|
|
92
|
+
filter: grayscale(1);
|
|
93
|
+
opacity: 0.5;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#donate #donateBox li:hover {
|
|
97
|
+
background-color: rgba(204, 217, 220, 0.3);
|
|
98
|
+
-webkit-filter: grayscale(0);
|
|
99
|
+
filter: grayscale(0);
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#donate #donateBox>li:last-child {
|
|
104
|
+
border-width: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#donate #donateBox a {
|
|
108
|
+
display: block;
|
|
109
|
+
height: 100%;
|
|
110
|
+
width: 100%;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
#donate #donateBox #PayPal {
|
|
114
|
+
background-image: url(../img/paypal.svg);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
#donate #donateBox>#BTC {
|
|
118
|
+
background-image: url(../img/bitcoin.svg);
|
|
119
|
+
line-height: 28px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#donate #donateBox>#BTC:hover {
|
|
123
|
+
overflow: visible;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#donate #BTC>button {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#donate #donateBox #AliPay {
|
|
132
|
+
background-image: url(../img/alipay.svg);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
#donate #donateBox #WeChat {
|
|
136
|
+
background-image: url(../img/wechat.svg);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
#donate #QRBox {
|
|
140
|
+
top: 0;
|
|
141
|
+
left: 0;
|
|
142
|
+
z-index: 1;
|
|
143
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
144
|
+
display: none;
|
|
145
|
+
perspective: 400px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#donate #MainBox {
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
position: absolute;
|
|
151
|
+
text-align: center;
|
|
152
|
+
width: 200px;
|
|
153
|
+
height: 200px;
|
|
154
|
+
left: calc(50% - 100px);
|
|
155
|
+
top: calc(50% - 100px);
|
|
156
|
+
background: #fff no-repeat center center;
|
|
157
|
+
background-size: 190px;
|
|
158
|
+
border-radius: 6px;
|
|
159
|
+
box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.3);
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transition: all 1s ease-in-out;
|
|
162
|
+
transform-style: preserve-3d;
|
|
163
|
+
transform-origin: center center;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
#donate #github {
|
|
168
|
+
width: 24px;
|
|
169
|
+
height: 24px;
|
|
170
|
+
left: calc(50% + 135px);
|
|
171
|
+
top: calc(50% - 30px);
|
|
172
|
+
background: no-repeat center center url(../img/github.svg);
|
|
173
|
+
background-size: contain;
|
|
174
|
+
opacity: 0.3;
|
|
175
|
+
transform: rotatez(15deg);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
#donate #ps {
|
|
179
|
+
color: red;
|
|
180
|
+
text-align: center;
|
|
181
|
+
line-height: 28px !important;
|
|
182
|
+
font-size: 12px !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
#donate [data-footnote] {
|
|
186
|
+
position: relative;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
#donate [data-footnote]:hover {
|
|
191
|
+
overflow: visible;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
#donate [data-footnote]::before,
|
|
195
|
+
[data-footnote]::after {
|
|
196
|
+
position: absolute;
|
|
197
|
+
transition: all .3s;
|
|
198
|
+
transform: translate3d(-50%, 0, 0);
|
|
199
|
+
opacity: 0;
|
|
200
|
+
left: 37px;
|
|
201
|
+
z-index: 10;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
#donate [data-footnote]::before {
|
|
205
|
+
content: attr(data-footnote);
|
|
206
|
+
border-radius: 6px;
|
|
207
|
+
background-color: rgba(100, 100, 100, 0.8);
|
|
208
|
+
color: #fff;
|
|
209
|
+
height: 24px;
|
|
210
|
+
line-height: 24px;
|
|
211
|
+
padding: 0 6px;
|
|
212
|
+
font-size: 12px;
|
|
213
|
+
white-space: nowrap;
|
|
214
|
+
top: -24px;
|
|
215
|
+
left: 37px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
#donate [data-footnote]::after {
|
|
219
|
+
content: '';
|
|
220
|
+
border: 5px solid #333;
|
|
221
|
+
border-color: rgba(100, 100, 100, 0.8) transparent transparent transparent;
|
|
222
|
+
top: 0;
|
|
223
|
+
left: 37px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
#donate [data-footnote]:hover::before,
|
|
227
|
+
[data-footnote]:hover::after {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
#donate [data-footnote]:hover::before,
|
|
232
|
+
[data-footnote]:hover::after {
|
|
233
|
+
transform: translate3d(-50%, -7px, 0);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
#donate #MainBox.showQR {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
animation-name: showQR;
|
|
239
|
+
animation-duration: 3s;
|
|
240
|
+
animation-timing-function: ease-in-out;
|
|
241
|
+
animation-iteration-count: 1;
|
|
242
|
+
animation-fill-mode: forwards;
|
|
243
|
+
-webkit-animation: showQR 3s ease-in-out 0s 1 normal forwards;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@keyframes showQR {
|
|
247
|
+
from {
|
|
248
|
+
transform: rotateX(90deg);
|
|
249
|
+
}
|
|
250
|
+
8% {
|
|
251
|
+
opacity: 1;
|
|
252
|
+
transform: rotateX(-60deg);
|
|
253
|
+
}
|
|
254
|
+
18% {
|
|
255
|
+
opacity: 1;
|
|
256
|
+
transform: rotateX(40deg);
|
|
257
|
+
}
|
|
258
|
+
34% {
|
|
259
|
+
opacity: 1;
|
|
260
|
+
transform: rotateX(-28deg);
|
|
261
|
+
}
|
|
262
|
+
44% {
|
|
263
|
+
opacity: 1;
|
|
264
|
+
transform: rotateX(18deg);
|
|
265
|
+
}
|
|
266
|
+
58% {
|
|
267
|
+
opacity: 1;
|
|
268
|
+
transform: rotateX(-12deg);
|
|
269
|
+
}
|
|
270
|
+
72% {
|
|
271
|
+
opacity: 1;
|
|
272
|
+
transform: rotateX(9deg);
|
|
273
|
+
}
|
|
274
|
+
88% {
|
|
275
|
+
opacity: 1;
|
|
276
|
+
transform: rotateX(-5deg);
|
|
277
|
+
}
|
|
278
|
+
96% {
|
|
279
|
+
opacity: 1;
|
|
280
|
+
transform: rotateX(2deg);
|
|
281
|
+
}
|
|
282
|
+
to {
|
|
283
|
+
opacity: 1;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
#MainBox.hideQR {
|
|
288
|
+
opacity: 1;
|
|
289
|
+
animation-name: hideQR;
|
|
290
|
+
animation-duration: 0.5s;
|
|
291
|
+
animation-timing-function: ease-in-out;
|
|
292
|
+
animation-iteration-count: 1;
|
|
293
|
+
animation-fill-mode: forwards;
|
|
294
|
+
-webkit-animation: hideQR 0.5s ease-in-out 0s 1 normal forwards;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@keyframes hideQR {
|
|
298
|
+
from {}
|
|
299
|
+
20%,
|
|
300
|
+
50% {
|
|
301
|
+
transform: scale(1.08, 1.08);
|
|
302
|
+
opacity: 1;
|
|
303
|
+
}
|
|
304
|
+
to {
|
|
305
|
+
opacity: 0;
|
|
306
|
+
transform: rotateZ(40deg) scale(0.6, 0.6);
|
|
307
|
+
}
|
|
308
|
+
}
|