hexo-theme-yet-the-books-optimize 1.0.4 → 1.0.5

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 (38) hide show
  1. package/LICENSE +21 -21
  2. package/index.js +2 -2
  3. package/languages/default.yml +4 -4
  4. package/languages/en.yml +4 -4
  5. package/languages/zh-CN.yml +4 -4
  6. package/layout/_partial/_analytics/baidu.ejs +8 -8
  7. package/layout/_partial/_analytics/cnzz.ejs +3 -3
  8. package/layout/_partial/_analytics/google.ejs +6 -6
  9. package/layout/_partial/_analytics/gtags.ejs +7 -7
  10. package/layout/_partial/_analytics/gtm-body.ejs +5 -5
  11. package/layout/_partial/_analytics/gtm-head.ejs +8 -8
  12. package/layout/_partial/_analytics/la.ejs +3 -3
  13. package/layout/_partial/_analytics/tencent.ejs +8 -8
  14. package/layout/_partial/_comment/DiscussBot.ejs +16 -16
  15. package/layout/_partial/_comment/changyan.ejs +13 -13
  16. package/layout/_partial/_comment/disqus.ejs +17 -17
  17. package/layout/_partial/_comment/disqusjs.ejs +16 -16
  18. package/layout/_partial/_comment/giscus.ejs +12 -12
  19. package/layout/_partial/_comment/gitalk.ejs +13 -13
  20. package/layout/_partial/_comment/gitment.ejs +13 -13
  21. package/layout/_partial/_comment/livere.ejs +11 -11
  22. package/layout/_partial/_comment/utteranc.ejs +9 -9
  23. package/layout/_partial/_comment/valine.ejs +9 -9
  24. package/layout/_partial/analytics.ejs +17 -17
  25. package/layout/_partial/head.ejs +28 -28
  26. package/layout/_partial/header.ejs +9 -9
  27. package/layout/_partial/post-nav.ejs +32 -32
  28. package/layout/archive.ejs +79 -79
  29. package/layout/category.ejs +24 -24
  30. package/layout/index.ejs +62 -62
  31. package/layout/layout.ejs +12 -12
  32. package/layout/post.ejs +39 -39
  33. package/move_config.js +17 -17
  34. package/package.json +17 -17
  35. package/scripts/helper/css_auto_version.js +17 -17
  36. package/scripts/helper/js_auto_version.js +17 -17
  37. package/source/css/style.css +623 -622
  38. package/source/js/core.js +24 -24
@@ -1,244 +1,244 @@
1
- body {
2
- margin: 0;
3
- font-size: 14px;
4
- }
5
-
6
- @media screen and (max-width: 768px) {
7
- body {
8
- font-size: 14px;
9
- }
10
- }
11
-
12
- body * {
13
- font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
14
- }
15
-
16
- a {
17
- transition: color 0.2s ease;
18
- text-decoration: none;
19
- color: #000;
20
- }
21
-
22
- /* 设置表格的边框样式 */
23
- table {
24
- border-collapse: collapse;
25
- width: 100%;
26
- }
27
-
28
- /* 设置表格行的背景颜色交替显示 */
29
- tr:nth-child(even) {
30
- background-color: #f2f2f2;
31
- }
32
-
33
- /* 设置表头的背景颜色和字体样式 */
34
- th {
35
- background-color: #333;
36
- color: white;
37
- padding: 8px;
38
- text-align: left;
39
- }
40
-
41
- /* 设置表格单元格的边框样式和内边距 */
42
- td {
43
- border: 1px solid #ddd;
44
- padding: 8px;
45
- }
46
-
47
- img {
48
- margin: 15px 0;
49
- border: 1px solid #eee;
50
- border-radius: 5px;
51
- }
52
-
53
- a:hover {
54
- color: #aa874b;
55
- }
56
-
57
- ::selection {
58
- background-color: #aa874b;
59
- color: #fff;
60
- }
61
- ::-moz-selection {
62
- background-color: #aa874b;
63
- color: #fff;
64
- }
65
-
66
- .container {
67
- max-width: 992px;
68
- margin: 0 auto;
69
- padding: 0 1em;
70
- }
71
-
72
- .header {
73
- height: 4em;
74
- background-color: transparent;
75
- line-height: 4em;
76
- background-color: #fff;
77
- border-bottom: 2px solid #eee;
78
- }
79
-
80
- .header.home {
81
- background-color: #f6f3ed;
82
- border-bottom: 2px solid #f6f3ed;
83
- }
84
-
85
- .header .container {
86
- display: flex;
87
- flex-direction: row;
88
- }
89
-
90
- .header .logo {
91
- font-weight: 700;
92
- white-space: nowrap;
93
- overflow: hidden;
94
- text-overflow: ellipsis;
95
- max-width: 10em;
96
- }
97
-
98
- .header .nav {
99
- display: flex;
100
- flex-direction: row;
101
- list-style: none;
102
- margin: 0;
103
- margin-left: auto;
104
- }
105
-
106
- .header .nav .nav-item {
107
- margin-left: 1.5em;
108
- }
109
-
110
- .content {
111
- min-height: calc(100vh - 10em);
112
- }
113
-
114
- .content.home {
115
- background-color: #fff;
116
- }
117
-
118
- .content .banner {
119
- background-color: #f7f3ed;
120
- display: block;
121
- position: relative;
122
- padding: 5rem 0;
123
- }
124
-
125
- .content.home .banner {
126
- margin-bottom: calc(1.5rem + 4rem);
127
- }
128
-
129
- .content .banner h1 {
130
- text-align: center;
131
- color: #aa874b;
132
- display: block;
133
- margin: 0 auto;
134
- }
135
-
136
- .content.home .banner {
137
- padding: 3rem 0;
138
- }
139
-
140
- .content .banner .search {
141
- position: relative;
142
- bottom: -4.5rem;
143
- width: 100%;
144
- }
145
-
146
- .content .banner .search form {
147
- background-color: #fff;
148
- border-radius: 30px;
149
- box-shadow: 0 2px 10px rgb(170 135 75 / 15%);
150
- width: 74%;
151
- margin: auto 13%;
152
- position: relative;
153
- display: flex;
154
- }
155
-
156
- .content .banner .search #search_value {
157
- width: 100%;
158
- border: none;
159
- background-color: transparent;
160
- padding: 1rem 2rem;
161
- font-size: 1rem;
162
- box-sizing: border-box;
163
- outline: 0;
164
- }
165
-
166
- .content .banner .search .submit {
167
- border: none;
168
- background-color: transparent;
169
- padding: 1rem 2rem;
170
- font-size: 1rem;
171
- box-sizing: border-box;
172
- outline: 0;
173
- }
174
-
175
- @media screen and (max-width: 768px) {
176
- .content .banner .search form {
177
- width: 90%;
178
- margin: auto 5%;
179
- }
180
- }
181
-
182
- .content .category {
183
- margin-top: 2em;
184
- display: flex;
185
- flex-wrap: wrap;
186
- }
187
-
188
- .content .category .category-item {
189
- flex: 0 0 calc(25% - 1.5em);
190
- max-width: calc(25% - 1.5em);
191
- margin: 0;
192
- height: 280px;;
193
- margin-right: 2em;
194
- margin-bottom: 2em;
195
- overflow: hidden;
196
- }
197
-
198
- .content .category .category-item:nth-child(4n + 4) {
199
- margin-right: 0;
200
- }
201
-
202
- @media screen and (max-width: 768px) {
203
- .content .category .category-item {
204
- flex: 0 0 calc(33.3333333333333% - 0.66666666666666666em);
205
- max-width: calc(33.3333333333333% - 0.66666666666666666em);
206
- margin-right: 1em;
207
- margin-bottom: 1em;
208
-
209
- }
210
- .content .category .category-item:nth-child(4n + 4) {
211
- margin-right: 1em;
212
- }
213
- .content .category .category-item:nth-child(3n + 3) {
214
- margin-right: 0;
215
- }
216
- }
217
-
218
- .content .category .category-item .cover {
219
- width: 100%;
220
- padding-bottom: 144%;
221
- position: relative;
222
- overflow: hidden;
223
- height: 0;
224
- border-radius: 3px;
225
- background-color: #f6f3ed;
226
- background-size: cover;
227
- border: 1px solid #f7f3ed;
228
- text-align: center;
229
- }
230
-
231
- /* .content .category .category-item .cover h1 {
232
- background-color: #f6f3ed;
233
- margin: 2.5em 1.6em;
234
- text-align: center;
235
- font-size: .9em;
236
- padding: .5em;
237
- border: 2px solid #A1615A;
238
- box-shadow: 0 0 0 5px #f6f3ed;
239
- color: #000!important;
240
- background-color: #f6f3ed;
241
- box-shadow: 0 0 0 5px #f6f3ed;
1
+ body {
2
+ margin: 0;
3
+ font-size: 14px;
4
+ }
5
+
6
+ @media screen and (max-width: 768px) {
7
+ body {
8
+ font-size: 14px;
9
+ }
10
+ }
11
+
12
+ body * {
13
+ font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
14
+ }
15
+
16
+ a {
17
+ transition: color 0.2s ease;
18
+ text-decoration: none;
19
+ color: #000;
20
+ }
21
+
22
+ /* 设置表格的边框样式 */
23
+ table {
24
+ border-collapse: collapse;
25
+ width: 100%;
26
+ }
27
+
28
+ /* 设置表格行的背景颜色交替显示 */
29
+ tr:nth-child(even) {
30
+ background-color: #f2f2f2;
31
+ }
32
+
33
+ /* 设置表头的背景颜色和字体样式 */
34
+ th {
35
+ background-color: #333;
36
+ color: white;
37
+ padding: 8px;
38
+ text-align: left;
39
+ }
40
+
41
+ /* 设置表格单元格的边框样式和内边距 */
42
+ td {
43
+ border: 1px solid #ddd;
44
+ padding: 8px;
45
+ }
46
+
47
+ img {
48
+ margin: 15px 0;
49
+ border: 1px solid #eee;
50
+ border-radius: 5px;
51
+ }
52
+
53
+ a:hover {
54
+ color: #aa874b;
55
+ }
56
+
57
+ ::selection {
58
+ background-color: #aa874b;
59
+ color: #fff;
60
+ }
61
+ ::-moz-selection {
62
+ background-color: #aa874b;
63
+ color: #fff;
64
+ }
65
+
66
+ .container {
67
+ max-width: 992px;
68
+ margin: 0 auto;
69
+ padding: 0 1em;
70
+ }
71
+
72
+ .header {
73
+ height: 4em;
74
+ background-color: transparent;
75
+ line-height: 4em;
76
+ background-color: #fff;
77
+ border-bottom: 2px solid #eee;
78
+ }
79
+
80
+ .header.home {
81
+ background-color: #f6f3ed;
82
+ border-bottom: 2px solid #f6f3ed;
83
+ }
84
+
85
+ .header .container {
86
+ display: flex;
87
+ flex-direction: row;
88
+ }
89
+
90
+ .header .logo {
91
+ font-weight: 700;
92
+ white-space: nowrap;
93
+ overflow: hidden;
94
+ text-overflow: ellipsis;
95
+ max-width: 10em;
96
+ }
97
+
98
+ .header .nav {
99
+ display: flex;
100
+ flex-direction: row;
101
+ list-style: none;
102
+ margin: 0;
103
+ margin-left: auto;
104
+ }
105
+
106
+ .header .nav .nav-item {
107
+ margin-left: 1.5em;
108
+ }
109
+
110
+ .content {
111
+ min-height: calc(100vh - 10em);
112
+ }
113
+
114
+ .content.home {
115
+ background-color: #fff;
116
+ }
117
+
118
+ .content .banner {
119
+ background-color: #f7f3ed;
120
+ display: block;
121
+ position: relative;
122
+ padding: 5rem 0;
123
+ }
124
+
125
+ .content.home .banner {
126
+ margin-bottom: calc(1.5rem + 4rem);
127
+ }
128
+
129
+ .content .banner h1 {
130
+ text-align: center;
131
+ color: #aa874b;
132
+ display: block;
133
+ margin: 0 auto;
134
+ }
135
+
136
+ .content.home .banner {
137
+ padding: 3rem 0;
138
+ }
139
+
140
+ .content .banner .search {
141
+ position: relative;
142
+ bottom: -4.5rem;
143
+ width: 100%;
144
+ }
145
+
146
+ .content .banner .search form {
147
+ background-color: #fff;
148
+ border-radius: 30px;
149
+ box-shadow: 0 2px 10px rgb(170 135 75 / 15%);
150
+ width: 74%;
151
+ margin: auto 13%;
152
+ position: relative;
153
+ display: flex;
154
+ }
155
+
156
+ .content .banner .search #search_value {
157
+ width: 100%;
158
+ border: none;
159
+ background-color: transparent;
160
+ padding: 1rem 2rem;
161
+ font-size: 1rem;
162
+ box-sizing: border-box;
163
+ outline: 0;
164
+ }
165
+
166
+ .content .banner .search .submit {
167
+ border: none;
168
+ background-color: transparent;
169
+ padding: 1rem 2rem;
170
+ font-size: 1rem;
171
+ box-sizing: border-box;
172
+ outline: 0;
173
+ }
174
+
175
+ @media screen and (max-width: 768px) {
176
+ .content .banner .search form {
177
+ width: 90%;
178
+ margin: auto 5%;
179
+ }
180
+ }
181
+
182
+ .content .category {
183
+ margin-top: 2em;
184
+ display: flex;
185
+ flex-wrap: wrap;
186
+ }
187
+
188
+ .content .category .category-item {
189
+ flex: 0 0 calc(25% - 1.5em);
190
+ max-width: calc(25% - 1.5em);
191
+ margin: 0;
192
+ height: 280px;;
193
+ margin-right: 2em;
194
+ margin-bottom: 2em;
195
+ overflow: hidden;
196
+ }
197
+
198
+ .content .category .category-item:nth-child(4n + 4) {
199
+ margin-right: 0;
200
+ }
201
+
202
+ @media screen and (max-width: 768px) {
203
+ .content .category .category-item {
204
+ flex: 0 0 calc(33.3333333333333% - 0.66666666666666666em);
205
+ max-width: calc(33.3333333333333% - 0.66666666666666666em);
206
+ margin-right: 1em;
207
+ margin-bottom: 1em;
208
+
209
+ }
210
+ .content .category .category-item:nth-child(4n + 4) {
211
+ margin-right: 1em;
212
+ }
213
+ .content .category .category-item:nth-child(3n + 3) {
214
+ margin-right: 0;
215
+ }
216
+ }
217
+
218
+ .content .category .category-item .cover {
219
+ width: 100%;
220
+ padding-bottom: 144%;
221
+ position: relative;
222
+ overflow: hidden;
223
+ height: 0;
224
+ border-radius: 3px;
225
+ background-color: #f6f3ed;
226
+ background-size: cover;
227
+ border: 1px solid #f7f3ed;
228
+ text-align: center;
229
+ }
230
+
231
+ /* .content .category .category-item .cover h1 {
232
+ background-color: #f6f3ed;
233
+ margin: 2.5em 1.6em;
234
+ text-align: center;
235
+ font-size: .9em;
236
+ padding: .5em;
237
+ border: 2px solid #A1615A;
238
+ box-shadow: 0 0 0 5px #f6f3ed;
239
+ color: #000!important;
240
+ background-color: #f6f3ed;
241
+ box-shadow: 0 0 0 5px #f6f3ed;
242
242
  } */
243
243
 
244
244
  .custom-show {
@@ -248,30 +248,30 @@ a:hover {
248
248
  bottom: 80px;
249
249
  text-align: center;
250
250
  }
251
-
252
- .custom-h1 {
253
- font-size: 18px;
254
- padding: .5em;
255
- color: #000;
256
- }
257
-
258
- .custom-desc {
259
- font-size: 12px;
260
- color: #3f4c54;
261
- }
262
-
263
- .custom-count {
264
- width: 100%;
265
- font-size: 13px;
251
+
252
+ .custom-h1 {
253
+ font-size: 18px;
254
+ padding: .5em;
255
+ color: #000;
256
+ }
257
+
258
+ .custom-desc {
259
+ font-size: 12px;
260
+ color: #3f4c54;
261
+ }
262
+
263
+ .custom-count {
264
+ width: 100%;
265
+ font-size: 13px;
266
266
  margin-top: 20px;
267
- color: #3f4c54;
267
+ color: #3f4c54;
268
268
  }
269
-
270
- .content .category .category-item .cover.red {
271
- background-image: url(../image/p0452_m.jpg);
269
+
270
+ .content .category .category-item .cover.red {
271
+ background-image: url(../image/p0452_m.jpg);
272
272
  }
273
273
 
274
- .content .category .category-item .cover.cover_docs {
274
+ .content .category .category-item .cover.cover_docs {
275
275
  background: url("../image/docs.png");
276
276
  background-size: contain;
277
277
  /* border: 1px solid #f7f3ed; */
@@ -288,364 +288,365 @@ a:hover {
288
288
  width: 100%;
289
289
  resize: both;
290
290
  border: none; */
291
-
292
- }
293
-
294
- .content .category .category-item .cover.red h1 {
295
- border: 2px solid #A1615A;
296
- }
297
-
298
- .content .category .category-item .cover.purple {
299
- background-image: url(../image/p0459_m.jpg);
300
- }
301
-
302
- .content .category .category-item .cover.purple h1 {
303
- border: 2px solid #a2839c;
304
- }
305
-
306
- .content .category .category-item .cover.gray {
307
- background-image: url(../image/p0402_m.jpg);
308
- }
309
-
310
- .content .category .category-item .cover.gray h1 {
311
- border: 2px solid #989399;
312
- }
313
-
314
- .content .category .category-item .cover.blue {
315
- background-image: url(../image/p0438_m.jpg);
316
- }
317
-
318
- .content .category .category-item .cover.blue h1 {
319
- border: 2px solid #424f60;
320
- }
321
-
322
- .content .category .category-item .cover.green {
323
- background-image: url(../image/p0440_m.jpg);
324
- }
325
-
326
- .content .category .category-item .cover.green h1 {
327
- border: 2px solid #3f4c54;
328
- }
329
-
330
- .content .category .category-item .cover img {
331
- /* display: block; */
332
- /* position: absolute; */
333
- left: 0;
334
- top: 0;
335
- object-fit: cover;
336
- border: none;
337
- /* width: 100%; */
338
- /* height: 100%; */
339
- }
340
-
341
- .content .category .category-item .title {
342
- margin-top: 5px;
343
- line-height: 1em;
344
- font-family: Noto Serif SC;
345
- text-align: center;
346
- }
347
-
348
- .content .post {
349
- font-family: Noto Serif SC;
350
- padding: 3em 0;
351
- }
352
-
353
- .content .post .date {
354
- text-align: right;
355
- }
356
-
357
- .content .info {
358
- width: 100%;
359
- text-align: center;
360
- padding-top: 1rem;
361
- }
362
-
363
- .content .post-nav {
364
- width: 100%;
365
- display: flex;
366
- justify-content: space-between;
367
- flex-flow: row-reverse
368
- }
369
-
370
- .content .post-nav span {
371
- display: block;
372
- color: #bfbfbf;
373
- }
374
-
375
- .content .post-nav > * {
376
- width: 50%;
377
- }
378
-
379
- .content .post-nav .new {
380
- text-align: right;
381
- }
382
-
383
- .content .other {
384
- background-color: #f4f4f4;
385
- padding: 3em 0;
386
- }
387
-
388
- .content .catalogue {
389
- list-style: none;
390
- padding-left: 0;
391
- margin: 3em 0;
392
- }
393
-
394
- .content .catalogue li {
395
- line-height: 1em;
396
- margin: 2em 0;
397
- }
398
-
399
- .content .catalogue li a {
400
- display: flex;
401
- justify-content: space-between;
402
- flex-direction: row;
403
- position: relative;
404
- }
405
-
406
- .content .catalogue .title {
407
- background: #fff;
408
- z-index: 1;
409
- margin-right: 5em;
410
- padding-right: 1em;
411
- }
412
-
413
- .content .catalogue .date {
414
- width: 100%;
415
- text-align: right;
416
- position: absolute;
417
- right: 0;
418
- }
419
-
420
- .content .catalogue .date:before {
421
- content: " ";
422
- width: 100%;
423
- border-bottom: 1px dashed #000;
424
- position: absolute;
425
- top: 50%;
426
- right: 0;
427
- }
428
-
429
- .content .catalogue .date span {
430
- background: #fff;
431
- z-index: 1;
432
- padding-left: 1em;
433
- position: relative;
434
- }
435
-
436
- .content .catalogue .hidden {
437
- display: none;
438
- }
439
-
440
- .content .catalogue .display {
441
- display: block;
442
- }
443
-
444
- .content .archive .display-btn {
445
- cursor: pointer;
446
- }
447
-
448
- .content .tag-unordered {
449
- word-break: break-word;
450
- }
451
-
452
- .content .tag-unordered .list-count::before {
453
- content: "("
454
- }
455
-
456
- .content .tag-unordered .list-count::after {
457
- content: ")"
458
- }
459
-
460
-
461
- .comment {
462
- padding: 3em 1em;
463
- }
464
-
465
- .comment .utterances {
466
- max-width: 100%;
467
- }
468
-
469
- .footer {
470
- background-color: #f7f3ed;
471
- border-top: 2px solid #eee;
472
- }
473
-
474
- .footer a {
475
- color: #aa874b;
476
- }
477
-
478
- .footer-content {
479
- height: 6em;
480
- margin: auto;
481
- display: -webkit-box;
482
- display: -ms-flexbox;
483
- display: flex;
484
- flex-direction: row;
485
- align-items: center;
486
- justify-content: space-between;
487
- flex-wrap: wrap;
488
- }
489
-
490
- .footer-left {
491
- font-size: 2.2rem;
492
- }
493
-
494
- .footer-right {
495
- font-size: 1.1rem;
496
- text-align: right;
497
- max-width: calc(100% - 14em);
498
- }
499
-
500
- .footer-links a {
501
- margin-left: .5em;
502
- }
503
-
504
- article p {
505
- line-height: 1.5em;
506
- }
507
-
508
- article a {
509
- color: #aa874b;
510
- word-break: break-all;
511
- }
512
-
513
- article > table {
514
- margin: 1em 0;
515
- padding: 0;
516
- border-collapse: collapse;
517
- }
518
-
519
- article > table tr {
520
- border-top: 1px solid #dfe2e5;
521
- margin: 0;
522
- padding: 0;
523
- }
524
-
525
- article > table tr:nth-child(2n), article > thead {
526
- background-color: #f8f8f8;
527
- }
528
-
529
- article > table tr th {
530
- font-weight: bold;
531
- border: 1px solid #dfe2e5;
532
- border-bottom: 0;
533
- margin: 0;
534
- padding: 6px 16px;
535
- }
536
-
537
- article > table tr td {
538
- border: 1px solid #dfe2e5;
539
- margin: 0;
540
- padding: 6px 16px;
541
- }
542
-
543
- article > table tr th:first-child, article > table tr td:first-child {
544
- margin-top: 0;
545
- }
546
-
547
- article > table tr th:last-child, article > table tr td:last-child {
548
- margin-bottom: 0;
549
- }
550
-
551
- article blockquote {
552
- margin: 0;
553
- }
554
-
555
- article > blockquote {
556
- margin-left: -1em;
557
- border-left: 4px solid #aa874b;
558
- padding-left: calc(1em - 4px);
559
- font-style: italic;
560
- color: #777;
561
- }
562
-
563
- .highlight {
564
- padding: 0 0.5em;
565
- /* background: #fdf6e3; */
566
- color: #657b83;
567
- margin: 0;
568
- border-radius: 3px;
569
- width: 100%;
570
- line-height: 20px;
571
- }
572
-
573
- article pre > code {
574
- background-color: #fafafa;
575
- /* color: #aa874b; */
576
- padding: 10px 7px;
577
- line-height: 20px;
578
- border-radius: 3px;
579
- margin: auto .2em;
580
- display: block;
581
- overflow-wrap: break-word;
582
- word-wrap:break-word !important;
583
- word-break:normal;
584
- white-space: pre-wrap;
585
- }
586
-
587
- pre {
588
- width: 100%;
589
- overflow-wrap: break-word;
590
- word-wrap:break-word !important;
591
- word-break:normal;
592
- white-space: pre-wrap;
593
- }
594
-
595
- article pre,
596
- article pre > code {
597
- margin: 0;
598
- }
599
-
600
- p > code {
601
- color: #0000f7;
602
- }
603
-
604
- li > code {
605
- color: #0000f7;
606
- }
607
-
608
- article ul {
609
- list-style: square;
610
- }
611
-
612
- article a:hover {
613
- text-decoration: underline;
614
- }
615
-
616
- article del,
617
- article s {
618
- color: #888;
619
- }
620
-
621
- article img {
622
- text-align: center;
623
- max-width: 100%;
624
- zoom: 50% !important;
625
- border-radius: 15px;
626
- }
627
-
628
- article h1 {
629
- font-size: 2em;
630
- }
631
-
632
- article .catalogue {
633
- margin: auto!important;
634
- }
635
-
636
- h2 {
637
- margin-top: 40px !important;
638
- }
639
-
640
- h3 {
641
- margin-top: 30px !important;
642
- }
643
-
644
- hr {
645
- height: 1px; /* 设置水平线的高度 */
646
- width: 100%; /* 设置水平线的宽度 */
647
- color: #f4f4f4; /* 设置水平线的颜色 */
648
- background-color: #f4f4f4; /* 设置水平线的背景颜色 */
649
- border: none; /* 去除水平线的边框 */
650
- margin: 20px auto; /* 设置水平线的外边距,使其居中显示 */
651
- }
291
+
292
+ }
293
+
294
+ .content .category .category-item .cover.red h1 {
295
+ border: 2px solid #A1615A;
296
+ }
297
+
298
+ .content .category .category-item .cover.purple {
299
+ background-image: url(../image/p0459_m.jpg);
300
+ }
301
+
302
+ .content .category .category-item .cover.purple h1 {
303
+ border: 2px solid #a2839c;
304
+ }
305
+
306
+ .content .category .category-item .cover.gray {
307
+ background-image: url(../image/p0402_m.jpg);
308
+ }
309
+
310
+ .content .category .category-item .cover.gray h1 {
311
+ border: 2px solid #989399;
312
+ }
313
+
314
+ .content .category .category-item .cover.blue {
315
+ background-image: url(../image/p0438_m.jpg);
316
+ }
317
+
318
+ .content .category .category-item .cover.blue h1 {
319
+ border: 2px solid #424f60;
320
+ }
321
+
322
+ .content .category .category-item .cover.green {
323
+ background-image: url(../image/p0440_m.jpg);
324
+ }
325
+
326
+ .content .category .category-item .cover.green h1 {
327
+ border: 2px solid #3f4c54;
328
+ }
329
+
330
+ .content .category .category-item .cover img {
331
+ /* display: block; */
332
+ /* position: absolute; */
333
+ left: 0;
334
+ top: 0;
335
+ object-fit: cover;
336
+ border: none;
337
+ /* width: 100%; */
338
+ /* height: 100%; */
339
+ }
340
+
341
+ .content .category .category-item .title {
342
+ margin-top: 5px;
343
+ line-height: 1em;
344
+ font-family: Noto Serif SC;
345
+ text-align: center;
346
+ }
347
+
348
+ .content .post {
349
+ font-family: Noto Serif SC;
350
+ padding: 3em 0;
351
+ }
352
+
353
+ .content .post .date {
354
+ text-align: right;
355
+ }
356
+
357
+ .content .info {
358
+ width: 100%;
359
+ text-align: center;
360
+ padding-top: 1rem;
361
+ }
362
+
363
+ .content .post-nav {
364
+ width: 100%;
365
+ display: flex;
366
+ justify-content: space-between;
367
+ flex-flow: row-reverse
368
+ }
369
+
370
+ .content .post-nav span {
371
+ display: block;
372
+ color: #bfbfbf;
373
+ }
374
+
375
+ .content .post-nav > * {
376
+ width: 50%;
377
+ }
378
+
379
+ .content .post-nav .new {
380
+ text-align: right;
381
+ }
382
+
383
+ .content .other {
384
+ background-color: #f4f4f4;
385
+ padding: 3em 0;
386
+ }
387
+
388
+ .content .catalogue {
389
+ list-style: none;
390
+ padding-left: 0;
391
+ margin: 3em 0;
392
+ }
393
+
394
+ .content .catalogue li {
395
+ line-height: 1em;
396
+ margin: 2em 0;
397
+ }
398
+
399
+ .content .catalogue li a {
400
+ display: flex;
401
+ justify-content: space-between;
402
+ flex-direction: row;
403
+ position: relative;
404
+ }
405
+
406
+ .content .catalogue .title {
407
+ background: #fff;
408
+ z-index: 1;
409
+ margin-right: 5em;
410
+ padding-right: 1em;
411
+ }
412
+
413
+ .content .catalogue .date {
414
+ width: 100%;
415
+ text-align: right;
416
+ position: absolute;
417
+ right: 0;
418
+ }
419
+
420
+ .content .catalogue .date:before {
421
+ content: " ";
422
+ width: 100%;
423
+ border-bottom: 1px dashed #000;
424
+ position: absolute;
425
+ top: 50%;
426
+ right: 0;
427
+ }
428
+
429
+ .content .catalogue .date span {
430
+ background: #fff;
431
+ z-index: 1;
432
+ padding-left: 1em;
433
+ position: relative;
434
+ }
435
+
436
+ .content .catalogue .hidden {
437
+ display: none;
438
+ }
439
+
440
+ .content .catalogue .display {
441
+ display: block;
442
+ }
443
+
444
+ .content .archive .display-btn {
445
+ cursor: pointer;
446
+ }
447
+
448
+ .content .tag-unordered {
449
+ word-break: break-word;
450
+ }
451
+
452
+ .content .tag-unordered .list-count::before {
453
+ content: "("
454
+ }
455
+
456
+ .content .tag-unordered .list-count::after {
457
+ content: ")"
458
+ }
459
+
460
+
461
+ .comment {
462
+ padding: 3em 1em;
463
+ }
464
+
465
+ .comment .utterances {
466
+ max-width: 100%;
467
+ }
468
+
469
+ .footer {
470
+ background-color: #f7f3ed;
471
+ border-top: 2px solid #eee;
472
+ }
473
+
474
+ .footer a {
475
+ color: #aa874b;
476
+ }
477
+
478
+ .footer-content {
479
+ height: 6em;
480
+ margin: auto;
481
+ display: -webkit-box;
482
+ display: -ms-flexbox;
483
+ display: flex;
484
+ flex-direction: row;
485
+ align-items: center;
486
+ justify-content: space-between;
487
+ flex-wrap: wrap;
488
+ }
489
+
490
+ .footer-left {
491
+ font-size: 2.2rem;
492
+ }
493
+
494
+ .footer-right {
495
+ font-size: 1.1rem;
496
+ text-align: right;
497
+ max-width: calc(100% - 14em);
498
+ }
499
+
500
+ .footer-links a {
501
+ margin-left: .5em;
502
+ }
503
+
504
+ article p {
505
+ line-height: 1.5em;
506
+ }
507
+
508
+ article a {
509
+ color: #aa874b;
510
+ word-break: break-all;
511
+ }
512
+
513
+ article > table {
514
+ margin: 1em 0;
515
+ padding: 0;
516
+ border-collapse: collapse;
517
+ }
518
+
519
+ article > table tr {
520
+ border-top: 1px solid #dfe2e5;
521
+ margin: 0;
522
+ padding: 0;
523
+ }
524
+
525
+ article > table tr:nth-child(2n), article > thead {
526
+ background-color: #f8f8f8;
527
+ }
528
+
529
+ article > table tr th {
530
+ font-weight: bold;
531
+ border: 1px solid #dfe2e5;
532
+ border-bottom: 0;
533
+ margin: 0;
534
+ padding: 6px 16px;
535
+ }
536
+
537
+ article > table tr td {
538
+ border: 1px solid #dfe2e5;
539
+ margin: 0;
540
+ padding: 6px 16px;
541
+ }
542
+
543
+ article > table tr th:first-child, article > table tr td:first-child {
544
+ margin-top: 0;
545
+ }
546
+
547
+ article > table tr th:last-child, article > table tr td:last-child {
548
+ margin-bottom: 0;
549
+ }
550
+
551
+ article blockquote {
552
+ margin: 0;
553
+ }
554
+
555
+ article > blockquote {
556
+ margin-left: -1em;
557
+ border-left: 4px solid #aa874b;
558
+ padding-left: calc(1em - 4px);
559
+ font-style: italic;
560
+ color: #777;
561
+ }
562
+
563
+ .highlight {
564
+ padding: 0 0.5em;
565
+ /* background: #fdf6e3; */
566
+ color: #657b83;
567
+ margin: 0;
568
+ border-radius: 3px;
569
+ width: 100%;
570
+ line-height: 20px;
571
+ }
572
+
573
+ article pre > code {
574
+ background-color: #fafafa;
575
+ /* color: #aa874b; */
576
+ padding: 10px 7px;
577
+ line-height: 20px;
578
+ border-radius: 3px;
579
+ margin: auto .2em;
580
+ display: block;
581
+ overflow-wrap: break-word;
582
+ word-wrap:break-word !important;
583
+ word-break:normal;
584
+ white-space: pre-wrap;
585
+ }
586
+
587
+ pre {
588
+ width: 100%;
589
+ overflow-wrap: break-word;
590
+ word-wrap:break-word !important;
591
+ word-break:normal;
592
+ white-space: pre-wrap;
593
+ }
594
+
595
+ article pre,
596
+ article pre > code {
597
+ margin: 0;
598
+ }
599
+
600
+ p > code {
601
+ color: #ad3da4;
602
+ font-weight: 500;
603
+ }
604
+
605
+ li > code {
606
+ color: #0000f7;
607
+ }
608
+
609
+ article ul {
610
+ list-style: square;
611
+ }
612
+
613
+ article a:hover {
614
+ text-decoration: underline;
615
+ }
616
+
617
+ article del,
618
+ article s {
619
+ color: #888;
620
+ }
621
+
622
+ article img {
623
+ text-align: center;
624
+ max-width: 100%;
625
+ zoom: 50% !important;
626
+ border-radius: 15px;
627
+ }
628
+
629
+ article h1 {
630
+ font-size: 2em;
631
+ }
632
+
633
+ article .catalogue {
634
+ margin: auto!important;
635
+ }
636
+
637
+ h2 {
638
+ margin-top: 40px !important;
639
+ }
640
+
641
+ h3 {
642
+ margin-top: 30px !important;
643
+ }
644
+
645
+ hr {
646
+ height: 1px; /* 设置水平线的高度 */
647
+ width: 100%; /* 设置水平线的宽度 */
648
+ color: #f4f4f4; /* 设置水平线的颜色 */
649
+ background-color: #f4f4f4; /* 设置水平线的背景颜色 */
650
+ border: none; /* 去除水平线的边框 */
651
+ margin: 20px auto; /* 设置水平线的外边距,使其居中显示 */
652
+ }