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

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 (39) hide show
  1. package/.github/workflows/main.yml +19 -0
  2. package/LICENSE +21 -21
  3. package/index.js +2 -2
  4. package/languages/default.yml +4 -4
  5. package/languages/en.yml +4 -4
  6. package/languages/zh-CN.yml +4 -4
  7. package/layout/_partial/_analytics/baidu.ejs +8 -8
  8. package/layout/_partial/_analytics/cnzz.ejs +3 -3
  9. package/layout/_partial/_analytics/google.ejs +6 -6
  10. package/layout/_partial/_analytics/gtags.ejs +7 -7
  11. package/layout/_partial/_analytics/gtm-body.ejs +5 -5
  12. package/layout/_partial/_analytics/gtm-head.ejs +8 -8
  13. package/layout/_partial/_analytics/la.ejs +3 -3
  14. package/layout/_partial/_analytics/tencent.ejs +8 -8
  15. package/layout/_partial/_comment/DiscussBot.ejs +16 -16
  16. package/layout/_partial/_comment/changyan.ejs +13 -13
  17. package/layout/_partial/_comment/disqus.ejs +17 -17
  18. package/layout/_partial/_comment/disqusjs.ejs +16 -16
  19. package/layout/_partial/_comment/giscus.ejs +12 -12
  20. package/layout/_partial/_comment/gitalk.ejs +13 -13
  21. package/layout/_partial/_comment/gitment.ejs +13 -13
  22. package/layout/_partial/_comment/livere.ejs +11 -11
  23. package/layout/_partial/_comment/utteranc.ejs +9 -9
  24. package/layout/_partial/_comment/valine.ejs +9 -9
  25. package/layout/_partial/analytics.ejs +17 -17
  26. package/layout/_partial/head.ejs +28 -28
  27. package/layout/_partial/header.ejs +9 -9
  28. package/layout/_partial/post-nav.ejs +32 -32
  29. package/layout/archive.ejs +79 -79
  30. package/layout/category.ejs +24 -24
  31. package/layout/index.ejs +62 -62
  32. package/layout/layout.ejs +12 -12
  33. package/layout/post.ejs +39 -39
  34. package/move_config.js +17 -17
  35. package/package.json +17 -17
  36. package/scripts/helper/css_auto_version.js +17 -17
  37. package/scripts/helper/js_auto_version.js +17 -17
  38. package/source/css/style.css +663 -622
  39. package/source/js/core.js +24 -24
@@ -1,244 +1,245 @@
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
+ height: 180px;;
209
+
210
+ }
211
+ .content .category .category-item:nth-child(4n + 4) {
212
+ margin-right: 1em;
213
+ }
214
+ .content .category .category-item:nth-child(3n + 3) {
215
+ margin-right: 0;
216
+ }
217
+ }
218
+
219
+ .content .category .category-item .cover {
220
+ width: 100%;
221
+ padding-bottom: 144%;
222
+ position: relative;
223
+ overflow: hidden;
224
+ height: 0;
225
+ border-radius: 3px;
226
+ background-color: #f6f3ed;
227
+ background-size: cover;
228
+ border: 1px solid #f7f3ed;
229
+ text-align: center;
230
+ }
231
+
232
+ /* .content .category .category-item .cover h1 {
233
+ background-color: #f6f3ed;
234
+ margin: 2.5em 1.6em;
235
+ text-align: center;
236
+ font-size: .9em;
237
+ padding: .5em;
238
+ border: 2px solid #A1615A;
239
+ box-shadow: 0 0 0 5px #f6f3ed;
240
+ color: #000!important;
241
+ background-color: #f6f3ed;
242
+ box-shadow: 0 0 0 5px #f6f3ed;
242
243
  } */
243
244
 
244
245
  .custom-show {
@@ -248,30 +249,61 @@ a:hover {
248
249
  bottom: 80px;
249
250
  text-align: center;
250
251
  }
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;
252
+
253
+ @media screen and (max-width: 768px) {
254
+ .custom-show {
255
+ bottom: 15px;
256
+ }
257
+ }
258
+
259
+
260
+ .custom-h1 {
261
+ font-size: 18px;
262
+ padding: .5em;
263
+ color: #000;
264
+ }
265
+
266
+ @media screen and (max-width: 768px) {
267
+ .custom-h1 {
268
+ font-size: 14px;
269
+ }
270
+ }
271
+
272
+ .custom-desc {
273
+ font-size: 12px;
274
+ color: #3f4c54;
275
+ }
276
+
277
+ @media screen and (max-width: 768px) {
278
+ .custom-desc {
279
+ font-size: 11px;
280
+ white-space: nowrap;
281
+ overflow: hidden;
282
+ text-overflow: ellipsis; /* 需要配合 overflow:hidden */
283
+ display: block; /* 或 inline-block,根据语义 */
284
+ margin: 0 5px;
285
+ }
286
+ }
287
+
288
+ .custom-count {
289
+ width: 100%;
290
+ font-size: 13px;
266
291
  margin-top: 20px;
267
- color: #3f4c54;
292
+ color: #3f4c54;
268
293
  }
269
-
270
- .content .category .category-item .cover.red {
271
- background-image: url(../image/p0452_m.jpg);
294
+
295
+ @media screen and (max-width: 768px) {
296
+ .custom-count {
297
+ font-size: 11px;
298
+ margin-top: 10px;
299
+ }
272
300
  }
273
301
 
274
- .content .category .category-item .cover.cover_docs {
302
+ .content .category .category-item .cover.red {
303
+ background-image: url(../image/p0452_m.jpg);
304
+ }
305
+
306
+ .content .category .category-item .cover.cover_docs {
275
307
  background: url("../image/docs.png");
276
308
  background-size: contain;
277
309
  /* border: 1px solid #f7f3ed; */
@@ -288,364 +320,373 @@ a:hover {
288
320
  width: 100%;
289
321
  resize: both;
290
322
  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
- }
323
+
324
+ }
325
+
326
+ .content .category .category-item .cover.red h1 {
327
+ border: 2px solid #A1615A;
328
+ }
329
+
330
+ .content .category .category-item .cover.purple {
331
+ background-image: url(../image/p0459_m.jpg);
332
+ }
333
+
334
+ .content .category .category-item .cover.purple h1 {
335
+ border: 2px solid #a2839c;
336
+ }
337
+
338
+ .content .category .category-item .cover.gray {
339
+ background-image: url(../image/p0402_m.jpg);
340
+ }
341
+
342
+ .content .category .category-item .cover.gray h1 {
343
+ border: 2px solid #989399;
344
+ }
345
+
346
+ .content .category .category-item .cover.blue {
347
+ background-image: url(../image/p0438_m.jpg);
348
+ }
349
+
350
+ .content .category .category-item .cover.blue h1 {
351
+ border: 2px solid #424f60;
352
+ }
353
+
354
+ .content .category .category-item .cover.green {
355
+ background-image: url(../image/p0440_m.jpg);
356
+ }
357
+
358
+ .content .category .category-item .cover.green h1 {
359
+ border: 2px solid #3f4c54;
360
+ }
361
+
362
+ .content .category .category-item .cover img {
363
+ /* display: block; */
364
+ /* position: absolute; */
365
+ left: 0;
366
+ top: 0;
367
+ object-fit: cover;
368
+ border: none;
369
+ /* width: 100%; */
370
+ /* height: 100%; */
371
+ }
372
+
373
+ @media screen and (max-width: 768px) {
374
+ .content .category .category-item .cover img {
375
+ margin-top: 20px !important;
376
+ height: 40px !important;
377
+ width: 40px !important;
378
+ }
379
+ }
380
+
381
+ .content .category .category-item .title {
382
+ margin-top: 5px;
383
+ line-height: 1em;
384
+ font-family: Noto Serif SC;
385
+ text-align: center;
386
+ }
387
+
388
+ .content .post {
389
+ font-family: Noto Serif SC;
390
+ padding: 3em 0;
391
+ }
392
+
393
+ .content .post .date {
394
+ text-align: right;
395
+ }
396
+
397
+ .content .info {
398
+ width: 100%;
399
+ text-align: center;
400
+ padding-top: 1rem;
401
+ }
402
+
403
+ .content .post-nav {
404
+ width: 100%;
405
+ display: flex;
406
+ justify-content: space-between;
407
+ flex-flow: row-reverse
408
+ }
409
+
410
+ .content .post-nav span {
411
+ display: block;
412
+ color: #bfbfbf;
413
+ }
414
+
415
+ .content .post-nav > * {
416
+ width: 50%;
417
+ }
418
+
419
+ .content .post-nav .new {
420
+ text-align: right;
421
+ }
422
+
423
+ .content .other {
424
+ background-color: #f4f4f4;
425
+ padding: 3em 0;
426
+ }
427
+
428
+ .content .catalogue {
429
+ list-style: none;
430
+ padding-left: 0;
431
+ margin: 3em 0;
432
+ }
433
+
434
+ .content .catalogue li {
435
+ line-height: 1em;
436
+ margin: 2em 0;
437
+ }
438
+
439
+ .content .catalogue li a {
440
+ display: flex;
441
+ justify-content: space-between;
442
+ flex-direction: row;
443
+ position: relative;
444
+ }
445
+
446
+ .content .catalogue .title {
447
+ background: #fff;
448
+ z-index: 1;
449
+ margin-right: 5em;
450
+ padding-right: 1em;
451
+ }
452
+
453
+ .content .catalogue .date {
454
+ width: 100%;
455
+ text-align: right;
456
+ position: absolute;
457
+ right: 0;
458
+ }
459
+
460
+ .content .catalogue .date:before {
461
+ content: " ";
462
+ width: 100%;
463
+ border-bottom: 1px dashed #000;
464
+ position: absolute;
465
+ top: 50%;
466
+ right: 0;
467
+ }
468
+
469
+ .content .catalogue .date span {
470
+ background: #fff;
471
+ z-index: 1;
472
+ padding-left: 1em;
473
+ position: relative;
474
+ }
475
+
476
+ .content .catalogue .hidden {
477
+ display: none;
478
+ }
479
+
480
+ .content .catalogue .display {
481
+ display: block;
482
+ }
483
+
484
+ .content .archive .display-btn {
485
+ cursor: pointer;
486
+ }
487
+
488
+ .content .tag-unordered {
489
+ word-break: break-word;
490
+ }
491
+
492
+ .content .tag-unordered .list-count::before {
493
+ content: "("
494
+ }
495
+
496
+ .content .tag-unordered .list-count::after {
497
+ content: ")"
498
+ }
499
+
500
+
501
+ .comment {
502
+ padding: 3em 1em;
503
+ }
504
+
505
+ .comment .utterances {
506
+ max-width: 100%;
507
+ }
508
+
509
+ .footer {
510
+ background-color: #f7f3ed;
511
+ border-top: 2px solid #eee;
512
+ }
513
+
514
+ .footer a {
515
+ color: #aa874b;
516
+ }
517
+
518
+ .footer-content {
519
+ height: 6em;
520
+ margin: auto;
521
+ display: -webkit-box;
522
+ display: -ms-flexbox;
523
+ display: flex;
524
+ flex-direction: row;
525
+ align-items: center;
526
+ justify-content: space-between;
527
+ flex-wrap: wrap;
528
+ }
529
+
530
+ .footer-left {
531
+ font-size: 2.2rem;
532
+ }
533
+
534
+ .footer-right {
535
+ font-size: 1.1rem;
536
+ text-align: right;
537
+ max-width: calc(100% - 14em);
538
+ }
539
+
540
+ .footer-links a {
541
+ margin-left: .5em;
542
+ }
543
+
544
+ article p {
545
+ line-height: 1.5em;
546
+ }
547
+
548
+ article a {
549
+ color: #aa874b;
550
+ word-break: break-all;
551
+ }
552
+
553
+ article > table {
554
+ margin: 1em 0;
555
+ padding: 0;
556
+ border-collapse: collapse;
557
+ }
558
+
559
+ article > table tr {
560
+ border-top: 1px solid #dfe2e5;
561
+ margin: 0;
562
+ padding: 0;
563
+ }
564
+
565
+ article > table tr:nth-child(2n), article > thead {
566
+ background-color: #f8f8f8;
567
+ }
568
+
569
+ article > table tr th {
570
+ font-weight: bold;
571
+ border: 1px solid #dfe2e5;
572
+ border-bottom: 0;
573
+ margin: 0;
574
+ padding: 6px 16px;
575
+ }
576
+
577
+ article > table tr td {
578
+ border: 1px solid #dfe2e5;
579
+ margin: 0;
580
+ padding: 6px 16px;
581
+ }
582
+
583
+ article > table tr th:first-child, article > table tr td:first-child {
584
+ margin-top: 0;
585
+ }
586
+
587
+ article > table tr th:last-child, article > table tr td:last-child {
588
+ margin-bottom: 0;
589
+ }
590
+
591
+ article blockquote {
592
+ margin: 0;
593
+ }
594
+
595
+ article > blockquote {
596
+ margin-left: -1em;
597
+ border-left: 4px solid #aa874b;
598
+ padding-left: calc(1em - 4px);
599
+ font-style: italic;
600
+ color: #777;
601
+ }
602
+
603
+ .highlight {
604
+ padding: 0 0.5em;
605
+ /* background: #fdf6e3; */
606
+ color: #657b83;
607
+ margin: 0;
608
+ border-radius: 3px;
609
+ width: 100%;
610
+ line-height: 20px;
611
+ }
612
+
613
+ article pre > code {
614
+ background-color: #fafafa;
615
+ /* color: #aa874b; */
616
+ padding: 10px 7px;
617
+ line-height: 20px;
618
+ border-radius: 3px;
619
+ margin: auto .2em;
620
+ display: block;
621
+ overflow-wrap: break-word;
622
+ word-wrap:break-word !important;
623
+ word-break:normal;
624
+ white-space: pre-wrap;
625
+ }
626
+
627
+ pre {
628
+ width: 100%;
629
+ overflow-wrap: break-word;
630
+ word-wrap:break-word !important;
631
+ word-break:normal;
632
+ white-space: pre-wrap;
633
+ }
634
+
635
+ article pre,
636
+ article pre > code {
637
+ margin: 0;
638
+ }
639
+
640
+ p > code {
641
+ color: #ad3da4;
642
+ font-weight: 500;
643
+ }
644
+
645
+ li > code {
646
+ color: #0000f7;
647
+ }
648
+
649
+ article ul {
650
+ list-style: square;
651
+ }
652
+
653
+ article a:hover {
654
+ text-decoration: underline;
655
+ }
656
+
657
+ article del,
658
+ article s {
659
+ color: #888;
660
+ }
661
+
662
+ article img {
663
+ text-align: center;
664
+ max-width: 100%;
665
+ zoom: 50% !important;
666
+ border-radius: 15px;
667
+ }
668
+
669
+ article h1 {
670
+ font-size: 2em;
671
+ }
672
+
673
+ article .catalogue {
674
+ margin: auto!important;
675
+ }
676
+
677
+ h2 {
678
+ margin-top: 40px !important;
679
+ }
680
+
681
+ h3 {
682
+ margin-top: 30px !important;
683
+ }
684
+
685
+ hr {
686
+ height: 1px; /* 设置水平线的高度 */
687
+ width: 100%; /* 设置水平线的宽度 */
688
+ color: #f4f4f4; /* 设置水平线的颜色 */
689
+ background-color: #f4f4f4; /* 设置水平线的背景颜色 */
690
+ border: none; /* 去除水平线的边框 */
691
+ margin: 20px auto; /* 设置水平线的外边距,使其居中显示 */
692
+ }