minearm-website 0.0.3-beta.3 → 0.1.3

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 (42) hide show
  1. package/Dockerfile +12 -0
  2. package/{LICENSE → LICENSE.md} +2 -2
  3. package/README.md +19 -4
  4. package/astro.config.ts +37 -32
  5. package/cz.yaml +7 -0
  6. package/docker-compose.yml +11 -0
  7. package/netlify.toml +4 -0
  8. package/package.json +63 -63
  9. package/public/13.png +0 -0
  10. package/public/scripts/mdata.json +3 -3
  11. package/public/scripts/searchData.json +47 -0
  12. package/src/content/blog/{default/history → history}//350/277/221/344/273/243/347/257/207//344/270/255/345/233/275/345/205/261/344/272/247/345/205/232/345/205/232/345/217/262.md +2361 -2361
  13. package/src/content/blog/{default/it → it}/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +41 -29
  14. package/src/content/config.ts +1 -0
  15. package/src/layouts/BaseLayout.astro +0 -1
  16. package/src/layouts/DefaultMdLayout.astro +0 -4
  17. package/src/layouts/HomeLayout.astro +0 -2
  18. package/src/layouts/TagsLayout.astro +0 -1
  19. package/src/pages/404.md +1 -2
  20. package/src/pages/[...page].astro +8 -4
  21. package/src/pages/about/index.md +19 -5
  22. package/src/pages/categories/index.astro +2 -2
  23. package/src/pages/friends/index.md +2 -2
  24. package/src/pages/tags/index.astro +3 -2
  25. package/src/styles/blog/dist/blog.css +59 -0
  26. package/src/styles/blog/dist/code.css +59 -0
  27. package/src/styles/blog/dist/index.css +1 -0
  28. package/src/styles/blog/dist/post.css +246 -0
  29. package/src/styles/components/dist/footer.css +29 -0
  30. package/src/styles/components/dist/index.css +1 -0
  31. package/src/styles/components/dist/page-content.css +60 -0
  32. package/src/styles/dist/animation.css +8 -0
  33. package/src/styles/dist/custom.css +10 -0
  34. package/src/styles/dist/global.css +1095 -0
  35. package/src/styles/dist/mixin.css +0 -0
  36. package/src/theme_config.ts +4 -4
  37. package/src/components/Search.astro +0 -30
  38. package/src/components/icons/game.astro +0 -10
  39. package/src/components/postlist/postsList.astro +0 -57
  40. /package/src/content/blog/{default/Extended Search.md → Extended Search.md} +0 -0
  41. /package/src/content/blog/{default/Mail.md → Mail.md} +0 -0
  42. /package/src/content/blog/{default/history → history}//345/205/254/345/205/203/345/211/215//347/247/246/345/247/213/347/232/207/347/273/237/344/270/200/345/205/255/345/233/275.md" +0 -0
@@ -0,0 +1,1095 @@
1
+ #site-header .menu-items .menu-item.mine .menu-item-icon {
2
+ width: 20px;
3
+ }
4
+ #site-header .menu-items .menu-child.equipment .menu-child-icon, #site-header .menu-items .menu-child.friends .menu-child-icon {
5
+ width: 22px;
6
+ }
7
+
8
+ .social-media.csdn .social-icon {
9
+ width: 26px !important;
10
+ }
11
+
12
+ .aside-content {
13
+ user-select: none;
14
+ color: var(--font-black-white);
15
+ font-family: var(--heading-font-family);
16
+ }
17
+ .aside-content .sticky-container {
18
+ position: sticky;
19
+ top: calc(var(--header-nav-height) + 1rem);
20
+ }
21
+ .aside-content .aside-card {
22
+ width: 100%;
23
+ height: fit-content;
24
+ margin-bottom: 1rem;
25
+ border-radius: 15px;
26
+ background: white;
27
+ box-shadow: var(--card-shadow);
28
+ transition: 0.3s;
29
+ }
30
+ .aside-content .aside-card:hover {
31
+ box-shadow: var(--card-tiny-shadow);
32
+ }
33
+
34
+ .author-info-card {
35
+ padding: 1rem 0.5rem;
36
+ }
37
+ .author-info-card .author-info {
38
+ display: flex;
39
+ align-items: center;
40
+ flex-direction: column;
41
+ margin: 0 auto 1rem;
42
+ }
43
+ .author-info-card .author-info .author-avatar {
44
+ width: 128px;
45
+ height: 128px;
46
+ margin-bottom: 1rem;
47
+ border-radius: 50%;
48
+ }
49
+ .author-info-card .author-info .author-name {
50
+ margin: 0 auto 1rem;
51
+ font-size: 22px;
52
+ }
53
+ .author-info-card .author-info .author-desc {
54
+ width: 100%;
55
+ text-align: center;
56
+ font-size: 16px;
57
+ }
58
+ .author-info-card .blog-counts {
59
+ display: flex;
60
+ align-items: center;
61
+ width: 85%;
62
+ margin: 0 auto 1rem;
63
+ }
64
+ .author-info-card .blog-counts .blog-count {
65
+ display: block;
66
+ flex: 1;
67
+ cursor: pointer;
68
+ }
69
+ .author-info-card .blog-counts .blog-count .count {
70
+ text-align: center;
71
+ }
72
+ .author-info-card .blog-counts .blog-count .tag {
73
+ text-align: center;
74
+ }
75
+ .author-info-card .social-medias {
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ height: 36px;
80
+ }
81
+ .author-info-card .social-medias .social-media {
82
+ margin: 0 0.3rem;
83
+ }
84
+ .author-info-card .social-medias .social-media .social-link .social-icon {
85
+ width: 34px;
86
+ height: 34px;
87
+ padding: 4px;
88
+ transition: 0.3s;
89
+ color: var(--button-background-black);
90
+ border-radius: 5px;
91
+ }
92
+ .author-info-card .social-medias .social-media .social-link:hover .social-icon {
93
+ animation: var(--shak-hard-animation);
94
+ }
95
+
96
+ .announcement-card {
97
+ padding: 0.5rem 1rem;
98
+ }
99
+ .announcement-card .announcement-headline {
100
+ display: flex;
101
+ align-items: center;
102
+ margin-bottom: 0.2rem;
103
+ font-size: var(--header-button-icon-size);
104
+ }
105
+ .announcement-card .announcement-headline .announcement-icon {
106
+ width: var(--header-button-icon-size);
107
+ height: var(--header-button-icon-size);
108
+ }
109
+ .announcement-card .announcement-headline .announcement-title {
110
+ margin-left: 0.5rem;
111
+ font-weight: 600;
112
+ }
113
+
114
+ #site-footer {
115
+ position: relative;
116
+ bottom: 0;
117
+ display: flex;
118
+ align-items: center;
119
+ justify-content: center;
120
+ width: 100%;
121
+ margin-top: 1rem;
122
+ padding: 15px 25px;
123
+ user-select: none;
124
+ background: var(--background-white);
125
+ }
126
+ #site-footer .footer-container {
127
+ display: flex;
128
+ flex-basis: auto;
129
+ justify-content: space-between;
130
+ width: 100%;
131
+ max-width: 1400px;
132
+ padding: 0 2rem;
133
+ justify-items: center;
134
+ }
135
+ #site-footer .footer-container .footer-link {
136
+ text-decoration: none;
137
+ color: var(--font-black-white);
138
+ font-weight: 600;
139
+ }
140
+ #site-footer .footer-container .footer-link:hover {
141
+ color: var(--theme-color);
142
+ }
143
+
144
+ #site-header {
145
+ position: fixed;
146
+ z-index: 9999;
147
+ top: 0;
148
+ width: 100%;
149
+ height: var(--header-nav-height);
150
+ margin-bottom: 1rem;
151
+ padding: 0;
152
+ user-select: none;
153
+ transition: 0.3s ease-in-out;
154
+ background: var(--navbar-bg-color);
155
+ background-size: 4px 4px;
156
+ backdrop-filter: blur(5px);
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ }
161
+ #site-header.not-top {
162
+ box-shadow: var(--header-shadow);
163
+ }
164
+ #site-header:not(.not-top) #menu-totop {
165
+ margin-left: -32px;
166
+ transform: translateY(-4rem);
167
+ }
168
+ #site-header .header-menu {
169
+ width: 100%;
170
+ min-width: 780px;
171
+ max-width: 1400px;
172
+ margin: 0;
173
+ padding: 0 1.8rem;
174
+ transform: translateZ(0);
175
+ display: flex;
176
+ align-items: center;
177
+ justify-content: center;
178
+ }
179
+ #site-header .header-menu .header-nav {
180
+ margin: 0 15px;
181
+ display: flex;
182
+ align-items: center;
183
+ justify-content: center;
184
+ }
185
+ #site-header .header-menu .header-nav.nav-left {
186
+ position: absolute;
187
+ left: 0;
188
+ }
189
+ #site-header .header-menu .header-nav.nav-left .site-name {
190
+ display: inline;
191
+ font-size: 1.5rem;
192
+ font-weight: 900;
193
+ }
194
+ #site-header .header-menu .header-nav.nav-left .site-logo {
195
+ width: 34px;
196
+ height: 34px;
197
+ margin: 0 10px;
198
+ }
199
+ #site-header .header-menu .header-nav.nav-right {
200
+ position: absolute;
201
+ right: 0;
202
+ }
203
+
204
+ .menu-items {
205
+ display: flex;
206
+ align-items: center;
207
+ justify-content: center;
208
+ }
209
+ .menu-items .menu-item {
210
+ margin: 0 4px;
211
+ padding: 4px 8px;
212
+ transition: 0.2s;
213
+ border-radius: 20px;
214
+ display: flex;
215
+ align-items: center;
216
+ justify-content: center;
217
+ }
218
+ .menu-items .menu-item:hover {
219
+ padding: 4px 14px;
220
+ background: var(--theme-color);
221
+ box-shadow: var(--card-tiny-shadow);
222
+ }
223
+ .menu-items .menu-item:hover .menu-item-icon,
224
+ .menu-items .menu-item:hover .menu-item-name {
225
+ color: var(--background-white);
226
+ }
227
+ .menu-items .menu-item:hover .menu-children {
228
+ display: flex;
229
+ animation: 0.3s ease 0.1s 1 normal both running come-up;
230
+ }
231
+ .menu-items .menu-item:hover.has-child::before {
232
+ position: absolute;
233
+ bottom: -40px;
234
+ width: 300px;
235
+ height: 40px;
236
+ content: "";
237
+ }
238
+ .menu-items .menu-item .menu-item-link,
239
+ .menu-items .menu-item .menu-child-link {
240
+ text-decoration: none;
241
+ display: flex;
242
+ align-items: center;
243
+ justify-content: center;
244
+ }
245
+ .menu-items .menu-item .menu-item-icon,
246
+ .menu-items .menu-item .menu-child-icon {
247
+ width: var(--header-item-icon-size);
248
+ height: var(--header-item-icon-size);
249
+ margin-right: 2px;
250
+ transition: 0.2s;
251
+ color: var(--font-black-white);
252
+ }
253
+ .menu-items .menu-item .menu-item-icon i,
254
+ .menu-items .menu-item .menu-child-icon i {
255
+ width: 100%;
256
+ height: 100%;
257
+ }
258
+ .menu-items .menu-item .menu-item-icon i::before,
259
+ .menu-items .menu-item .menu-child-icon i::before {
260
+ font-size: var(--header-item-icon-size);
261
+ }
262
+ .menu-items .menu-item .menu-item-name,
263
+ .menu-items .menu-item .menu-child-name {
264
+ margin: 0 3px;
265
+ transition: 0.2s;
266
+ color: var(--font-black-white);
267
+ font-size: 1.1rem;
268
+ }
269
+ .menu-items .menu-children {
270
+ position: absolute;
271
+ top: 35px;
272
+ display: none;
273
+ align-items: center;
274
+ margin-top: 8px;
275
+ padding: 8px 10px;
276
+ transition: 0.3s;
277
+ white-space: nowrap;
278
+ border-width: 1px;
279
+ border-style: solid;
280
+ border-color: var(--background-white);
281
+ border-radius: 100px;
282
+ background: var(--background-white);
283
+ box-shadow: var(--card-shadow);
284
+ }
285
+ .menu-items .menu-children:hover {
286
+ border-color: var(--theme-color);
287
+ }
288
+ .menu-items .menu-children .menu-child {
289
+ display: inline-flex;
290
+ margin: 0 2px;
291
+ padding: 5px 10px;
292
+ list-style: none;
293
+ transition: 0.2s;
294
+ border-radius: 100px;
295
+ }
296
+ .menu-items .menu-children .menu-child:hover {
297
+ padding: 5px 15px;
298
+ background: var(--theme-color);
299
+ }
300
+ .menu-items .menu-children .menu-child:hover .menu-child-icon,
301
+ .menu-items .menu-children .menu-child:hover .menu-child-name {
302
+ color: var(--button-background-white);
303
+ }
304
+
305
+ .menu-buttons {
306
+ display: flex;
307
+ align-items: center;
308
+ justify-content: center;
309
+ }
310
+ .menu-buttons .menu-button {
311
+ margin: 0 5px;
312
+ padding: 5px;
313
+ cursor: pointer;
314
+ transition: 0.3s ease-in-out;
315
+ border-radius: 5px;
316
+ }
317
+ .menu-buttons .menu-button:hover {
318
+ background: var(--theme-color);
319
+ }
320
+ .menu-buttons .menu-button:hover .menu-button-link .menu-button-icon {
321
+ color: var(--button-background-white);
322
+ }
323
+ .menu-buttons .menu-button .menu-button-link {
324
+ transition: 0.2s;
325
+ text-decoration: none;
326
+ }
327
+ .menu-buttons .menu-button .menu-button-link .menu-button-icon {
328
+ width: var(--header-button-icon-size);
329
+ height: var(--header-button-icon-size);
330
+ color: var(--font-black-white);
331
+ display: flex;
332
+ align-items: center;
333
+ justify-content: center;
334
+ }
335
+ .menu-buttons .menu-button.percent:hover {
336
+ width: 32px;
337
+ height: 32px;
338
+ margin: 0 4px;
339
+ background: var(--theme-color);
340
+ }
341
+ .menu-buttons .menu-button.percent:hover #percent {
342
+ display: none;
343
+ }
344
+
345
+ #menu-totop {
346
+ width: 24px;
347
+ height: 24px;
348
+ margin: 0 8px;
349
+ transition: all 0.4s var(--elastic-animation);
350
+ border-radius: 50px;
351
+ background: var(--button-background-black);
352
+ display: flex;
353
+ align-items: center;
354
+ justify-content: center;
355
+ }
356
+ #menu-totop #percent {
357
+ color: white;
358
+ font-size: 14px;
359
+ }
360
+ #menu-totop #totop {
361
+ width: 14px;
362
+ color: white;
363
+ }
364
+ #menu-totop.tobottom #totop {
365
+ animation: var(--appear-animation);
366
+ }
367
+ #menu-totop.tobottom #percent {
368
+ display: none;
369
+ }
370
+ #menu-totop:not(.tobottom, :hover) #percent {
371
+ animation: var(--appear-animation);
372
+ }
373
+ #menu-totop:not(.tobottom, :hover) #totop {
374
+ display: none;
375
+ }
376
+ #menu-totop:hover {
377
+ transform: scale(1.3);
378
+ background: var(--theme-color);
379
+ }
380
+
381
+ .main-content {
382
+ user-select: none;
383
+ color: var(--font-black-white);
384
+ font-family: var(--heading-font-family);
385
+ }
386
+ .main-content .main-card {
387
+ width: 100%;
388
+ height: fit-content;
389
+ margin-bottom: 1rem;
390
+ border-radius: 15px;
391
+ background: white;
392
+ box-shadow: var(--card-shadow);
393
+ transition: 0.3s;
394
+ }
395
+ .main-content .main-card:hover {
396
+ box-shadow: var(--card-tiny-shadow);
397
+ }
398
+
399
+ .posts-list .post-card {
400
+ display: flex;
401
+ height: 214px;
402
+ cursor: pointer;
403
+ }
404
+ .posts-list .post-card a {
405
+ text-decoration: none;
406
+ }
407
+ .posts-list .post-card .post-card-cover {
408
+ display: flex;
409
+ overflow: hidden;
410
+ justify-content: center;
411
+ width: 420px;
412
+ height: 100%;
413
+ margin-right: 1rem;
414
+ transition: 0.3s ease-in-out;
415
+ border-radius: 15px 0 0 15px;
416
+ background: white;
417
+ }
418
+ .posts-list .post-card .post-card-cover img {
419
+ height: 100%;
420
+ transition: 0.3s ease-in-out;
421
+ }
422
+ .posts-list .post-card:hover .post-card-cover {
423
+ filter: brightness(0.8);
424
+ }
425
+ .posts-list .post-card:hover .post-card-cover img {
426
+ transform: scale(1.1);
427
+ }
428
+ .posts-list .post-card .post-card-info {
429
+ display: flex;
430
+ flex: 6;
431
+ flex-direction: column;
432
+ margin: 2rem 0;
433
+ }
434
+ .posts-list .post-card .post-card-info .post-card-header {
435
+ display: flex;
436
+ align-items: center;
437
+ flex: 1;
438
+ }
439
+ .posts-list .post-card .post-card-info .post-card-header .post-card-category {
440
+ display: flex;
441
+ align-items: center;
442
+ transition: 0.3s;
443
+ color: var(--font-dark-grey);
444
+ }
445
+ .posts-list .post-card .post-card-info .post-card-header .post-card-category:hover {
446
+ color: var(--theme-color);
447
+ }
448
+ .posts-list .post-card .post-card-info .post-card-header .post-card-category::before {
449
+ margin-top: 2px;
450
+ margin-right: 2px;
451
+ content: "&";
452
+ opacity: 0.4;
453
+ color: var(--font-light-grey);
454
+ font-weight: 900;
455
+ }
456
+ .posts-list .post-card .post-card-info .post-card-title {
457
+ flex: 1;
458
+ padding-right: 1rem;
459
+ padding-bottom: 0.2rem;
460
+ transition: 0.3s;
461
+ color: var(--font-black-white);
462
+ font-size: 24px;
463
+ font-weight: 600;
464
+ }
465
+ .posts-list .post-card .post-card-info .post-card-title:hover {
466
+ color: var(--theme-color);
467
+ }
468
+ .posts-list .post-card .post-card-info .post-card-desc {
469
+ overflow: hidden;
470
+ flex: 2;
471
+ padding-right: 2rem;
472
+ word-break: break-all;
473
+ color: var(--font-black-white);
474
+ font-size: 18px;
475
+ }
476
+ .posts-list .post-card .post-card-info .post-card-footer {
477
+ display: flex;
478
+ align-items: center;
479
+ flex: 1;
480
+ justify-content: space-between;
481
+ padding-right: 2.5rem;
482
+ }
483
+ .posts-list .post-card .post-card-info .post-card-footer .post-card-tags {
484
+ display: flex;
485
+ padding: 0;
486
+ }
487
+ .posts-list .post-card .post-card-info .post-card-footer .post-card-tags .post-card-tag {
488
+ margin: 0 0.2rem;
489
+ }
490
+ .posts-list .post-card .post-card-info .post-card-footer .post-card-tags .post-card-tag a {
491
+ transition: 0.3s;
492
+ color: var(--font-dark-grey);
493
+ }
494
+ .posts-list .post-card .post-card-info .post-card-footer .post-card-tags .post-card-tag a::before {
495
+ margin-right: 2px;
496
+ content: "#";
497
+ opacity: 0.4;
498
+ color: var(--font-light-grey);
499
+ font-weight: 900;
500
+ }
501
+ .posts-list .post-card .post-card-info .post-card-footer .post-card-tags .post-card-tag:hover a {
502
+ color: var(--theme-color);
503
+ }
504
+ .posts-list .post-card .post-card-info .post-card-footer .post-card-update a {
505
+ transition: 0.3s;
506
+ color: var(--font-dark-grey);
507
+ }
508
+ .posts-list .post-card .post-card-info .post-card-footer .post-card-update:hover a {
509
+ color: var(--theme-color);
510
+ }
511
+
512
+ #main-container {
513
+ display: flex;
514
+ align-items: center;
515
+ flex-direction: column;
516
+ }
517
+ #main-container .hero-shoot {
518
+ position: relative;
519
+ top: var(--header-nav-height);
520
+ display: flex;
521
+ flex-direction: column;
522
+ width: 100vw;
523
+ height: calc(100vh - var(--header-nav-height));
524
+ margin-bottom: 1rem;
525
+ font-family: var(--heading-font-family);
526
+ }
527
+ #main-container .hero-shoot .hero-img {
528
+ position: absolute;
529
+ z-index: 1;
530
+ inset: 0;
531
+ }
532
+ #main-container .hero-shoot .hero-img::after {
533
+ position: absolute;
534
+ z-index: 2;
535
+ display: block;
536
+ content: " ";
537
+ opacity: 0.2;
538
+ background: var(--light-grey);
539
+ inset: 0;
540
+ }
541
+ #main-container .hero-shoot .hero-title {
542
+ position: relative;
543
+ z-index: 3;
544
+ top: -var(--header-nav-height);
545
+ display: block;
546
+ margin: calc(50vh - 80px - var(--header-nav-height) - 2rem) auto 2rem;
547
+ background: linear-gradient(315deg, #ff94d6 25%, #ffa238);
548
+ background-clip: text;
549
+ font-size: 80px;
550
+ -webkit-text-fill-color: transparent;
551
+ }
552
+ #main-container .hero-shoot .hero-desc {
553
+ z-index: 3;
554
+ margin: 0 auto;
555
+ color: var(--font-white);
556
+ font-size: 40px;
557
+ }
558
+
559
+ #inner-container {
560
+ display: flex;
561
+ max-width: 1350px;
562
+ padding: 4.2rem 1.5rem 0;
563
+ }
564
+ #inner-container .main-content {
565
+ width: 930px;
566
+ margin: 0 0.5rem;
567
+ }
568
+ #inner-container .aside-content {
569
+ width: 300px;
570
+ margin: 0 0.5rem;
571
+ }
572
+
573
+ .pagination {
574
+ display: flex;
575
+ align-items: center;
576
+ justify-content: space-between;
577
+ margin-top: 1rem;
578
+ transition: opacity 0.3s ease-out 0s, transform 0.3s ease-out 0s;
579
+ transform-origin: center top;
580
+ text-align: center;
581
+ opacity: 1;
582
+ }
583
+ .pagination .pagination-link {
584
+ display: flex;
585
+ align-items: center;
586
+ justify-content: center;
587
+ height: 30px;
588
+ padding-right: 0.7rem;
589
+ padding-left: 0.7rem;
590
+ transition: 0.3s;
591
+ text-decoration: none;
592
+ color: var(--font-black-white);
593
+ border-radius: 15px;
594
+ background: white;
595
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
596
+ }
597
+ .pagination .pagination-link.disable {
598
+ pointer-events: none;
599
+ opacity: 0;
600
+ }
601
+ .pagination .pagination-link:hover {
602
+ color: white;
603
+ background: var(--theme-color);
604
+ }
605
+ .pagination .pagination-pre {
606
+ order: 1;
607
+ }
608
+ .pagination .pagination-next {
609
+ order: 3;
610
+ }
611
+ .pagination .pagination-list {
612
+ display: flex;
613
+ align-items: center;
614
+ flex-grow: 1;
615
+ flex-shrink: 1;
616
+ justify-content: center;
617
+ order: 2;
618
+ }
619
+ .pagination .pagination-list li .pagination-number {
620
+ display: flex;
621
+ align-items: center;
622
+ justify-content: center;
623
+ width: 30px;
624
+ height: 30px;
625
+ margin: 0 5px;
626
+ transition: 0.3s;
627
+ text-decoration: none;
628
+ color: var(--font-black-white);
629
+ border-radius: 15px;
630
+ background: white;
631
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
632
+ }
633
+ .pagination .pagination-list li .pagination-number.active {
634
+ color: white;
635
+ background: var(--theme-color);
636
+ }
637
+ .pagination .pagination-list li .pagination-number:not(.active):hover {
638
+ margin: 0 10px;
639
+ transform: scale(1.2);
640
+ color: white;
641
+ background: var(--theme-color);
642
+ }
643
+
644
+ .post-header {
645
+ width: 100%;
646
+ padding-top: calc(var(--header-nav-height) + 2rem);
647
+ font-family: var(--heading-font-family);
648
+ user-select: none;
649
+ display: flex;
650
+ flex-direction: column;
651
+ justify-content: center;
652
+ align-items: center;
653
+ background: linear-gradient(var(--theme-color), var(--body-background-color));
654
+ }
655
+ .post-header .post-header-waves-area {
656
+ position: relative;
657
+ bottom: 0;
658
+ margin-top: 2rem;
659
+ margin-bottom: -10px;
660
+ }
661
+ .post-header .post-info .post-title {
662
+ font-size: 50px;
663
+ color: var(--font-white-black);
664
+ }
665
+ .post-header .post-info .post-metas {
666
+ display: flex;
667
+ flex-direction: column;
668
+ align-items: center;
669
+ }
670
+ .post-header .post-info .post-metas .post-meta {
671
+ display: flex;
672
+ margin: 0.3rem 0;
673
+ }
674
+ .post-header .post-info .post-metas .post-meta .meta-icon {
675
+ font-size: 18px;
676
+ margin: 0 0.3rem;
677
+ color: var(--font-white-black);
678
+ }
679
+ .post-container {
680
+ margin-top: 2rem;
681
+ max-width: 1400px;
682
+ width: 100%;
683
+ display: flex;
684
+ }
685
+ .post-container .post-main {
686
+ margin: 1rem 1rem;
687
+ border-radius: 15px;
688
+ background: white;
689
+ }
690
+ .post-container .post-aside {
691
+ border-radius: 15px;
692
+ }
693
+ .post-container .post-main {
694
+ flex: 4;
695
+ order: 2;
696
+ padding: 1rem 2rem;
697
+ box-shadow: var(--card-shadow);
698
+ transition: 0.3s;
699
+ }
700
+ .post-container .post-main:hover {
701
+ box-shadow: var(--card-tiny-shadow);
702
+ }
703
+ .post-container .post-aside {
704
+ flex: 1;
705
+ order: 1;
706
+ }
707
+
708
+ [data-theme=dark]:root {
709
+ --astro-code-color-background: #1f2430;
710
+ --astro-code-color-text: #cccac2;
711
+ --astro-code-token-constant: #dfbfff;
712
+ --astro-code-token-string: #d5ff80;
713
+ --astro-code-token-comment: #b8cfe6;
714
+ --astro-code-token-keyword: #ffad66;
715
+ --astro-code-token-parameter: #695380;
716
+ --astro-code-token-function: #ffcb6f;
717
+ --astro-code-token-string-expression: #5ccfe6;
718
+ --astro-code-token-punctuation: #cccac2;
719
+ --astro-code-token-link: #87d96c;
720
+ --astro-code-color-ansi-black: #000000;
721
+ --astro-code-color-ansi-black-dim: #00000080;
722
+ --astro-code-color-ansi-red: #bb0000;
723
+ --astro-code-color-ansi-red-dim: #bb000080;
724
+ --astro-code-color-ansi-green: #00bb00;
725
+ --astro-code-color-ansi-green-dim: #00bb0080;
726
+ --astro-code-color-ansi-yellow: #bbbb00;
727
+ --astro-code-color-ansi-yellow-dim: #bbbb0080;
728
+ --astro-code-color-ansi-blue: #0000bb;
729
+ --astro-code-color-ansi-blue-dim: #0000bb80;
730
+ --astro-code-color-ansi-magenta: #ff00ff;
731
+ --astro-code-color-ansi-magenta-dim: #ff00ff80;
732
+ --astro-code-color-ansi-cyan: #00bbbb;
733
+ --astro-code-color-ansi-cyan-dim: #00bbbb80;
734
+ --astro-code-color-ansi-white: #eeeeee;
735
+ --astro-code-color-ansi-white-dim: #eeeeee80;
736
+ --astro-code-color-ansi-bright-black: #555555;
737
+ --astro-code-color-ansi-bright-black-dim: #55555580;
738
+ --astro-code-color-ansi-bright-red: #ff5555;
739
+ --astro-code-color-ansi-bright-red-dim: #ff555580;
740
+ --astro-code-color-ansi-bright-green: #00ff00;
741
+ --astro-code-color-ansi-bright-green-dim: #00ff0080;
742
+ --astro-code-color-ansi-bright-yellow: #ffff55;
743
+ --astro-code-color-ansi-bright-yellow-dim: #ffff5580;
744
+ --astro-code-color-ansi-bright-blue: #5555ff;
745
+ --astro-code-color-ansi-bright-blue-dim: #5555ff80;
746
+ --astro-code-color-ansi-bright-magenta: #ff55ff;
747
+ --astro-code-color-ansi-bright-magenta-dim: #ff55ff80;
748
+ --astro-code-color-ansi-bright-cyan: #55ffff;
749
+ --astro-code-color-ansi-bright-cyan-dim: #55ffff80;
750
+ --astro-code-color-ansi-bright-white: #ffffff;
751
+ --astro-code-color-ansi-bright-white-dim: #ffffff80;
752
+ }
753
+
754
+ [data-theme=light]:root {
755
+ --astro-code-color-background: #fdfdfd;
756
+ --astro-code-color-text: #8a9199;
757
+ --astro-code-token-constant: #a37acc;
758
+ --astro-code-token-string: #86b300;
759
+ --astro-code-token-comment: #787b8099;
760
+ --astro-code-token-keyword: #fa8d3e;
761
+ --astro-code-token-parameter: #9f40ffcc;
762
+ --astro-code-token-function: #f2ae49;
763
+ --astro-code-token-string-expression: #55b4d4;
764
+ --astro-code-token-punctuation: #5c6166;
765
+ --astro-code-token-link: #6cbf43;
766
+ }
767
+
768
+ .post-main {
769
+ display: flex;
770
+ flex-direction: column;
771
+ font-size: var(--font-post-size);
772
+ }
773
+ .post-main h1,
774
+ .post-main h2,
775
+ .post-main h3,
776
+ .post-main h4,
777
+ .post-main h5,
778
+ .post-main h6 {
779
+ cursor: default;
780
+ transition: 0.3s ease-in-out;
781
+ user-select: none;
782
+ font-family: var(--heading-font-family);
783
+ }
784
+ .post-main h1:before,
785
+ .post-main h2:before,
786
+ .post-main h3:before,
787
+ .post-main h4:before,
788
+ .post-main h5:before,
789
+ .post-main h6:before {
790
+ content: "#";
791
+ }
792
+ .post-main h1:hover,
793
+ .post-main h2:hover,
794
+ .post-main h3:hover,
795
+ .post-main h4:hover,
796
+ .post-main h5:hover,
797
+ .post-main h6:hover {
798
+ color: var(--theme-color);
799
+ margin-left: 10px;
800
+ }
801
+ .post-main img {
802
+ cursor: pointer;
803
+ width: 100%;
804
+ transition: 0.3s;
805
+ }
806
+ .post-main img:hover {
807
+ transform: scale(1.03);
808
+ filter: brightness(0.8);
809
+ }
810
+ .post-main .image {
811
+ display: flex;
812
+ flex-direction: column;
813
+ align-items: center;
814
+ }
815
+ .post-main .image .img-wrap {
816
+ width: 80%;
817
+ border-radius: 15px;
818
+ display: flex;
819
+ overflow: hidden;
820
+ box-shadow: var(--card-shadow);
821
+ transition: 0.3s;
822
+ }
823
+ .post-main .image .img-wrap:hover {
824
+ box-shadow: var(--card-tiny-shadow);
825
+ }
826
+ .post-main .image .img-comment {
827
+ margin-top: 5px;
828
+ color: var(--font-light-grey);
829
+ }
830
+ .post-main p > code {
831
+ font-size: 16px;
832
+ color: var(--font-code-color);
833
+ background: var(--font-code-background);
834
+ padding: 0px 4px 2px 4px;
835
+ border-radius: 4px;
836
+ }
837
+ .post-main blockquote {
838
+ margin: 0;
839
+ padding: 0.5rem 2rem;
840
+ margin: 0.5rem 0;
841
+ display: flex;
842
+ justify-content: center;
843
+ }
844
+ .post-main blockquote i {
845
+ margin: 0 1rem;
846
+ font-size: 24px;
847
+ color: var(--font-light-grey);
848
+ }
849
+ .post-main blockquote i.fa-quote-right {
850
+ align-self: end;
851
+ }
852
+ .post-main blockquote p {
853
+ margin: 0;
854
+ }
855
+ .post-main ul {
856
+ list-style-type: disc;
857
+ padding-left: 20px;
858
+ }
859
+ .post-main ol {
860
+ padding-left: 20px;
861
+ }
862
+ .post-main .table-wrap {
863
+ margin: 0 auto;
864
+ border-radius: 10px;
865
+ overflow: hidden;
866
+ box-shadow: var(--card-shadow);
867
+ transition: 0.3s;
868
+ user-select: none;
869
+ }
870
+ .post-main .table-wrap:hover {
871
+ box-shadow: var(--card-tiny-shadow);
872
+ }
873
+ .post-main table {
874
+ display: table;
875
+ border-spacing: 0px;
876
+ border-collapse: collapse;
877
+ empty-cells: show;
878
+ }
879
+ .post-main table thead {
880
+ background: #eee;
881
+ }
882
+ .post-main table th,
883
+ .post-main table td {
884
+ border: 1px solid #e3e8f7;
885
+ padding: 0.3rem 0.6rem;
886
+ vertical-align: middle;
887
+ }
888
+ .post-main mark {
889
+ position: relative;
890
+ background: none;
891
+ }
892
+ .post-main mark:before {
893
+ position: absolute;
894
+ content: "";
895
+ left: 0;
896
+ top: calc((var(--font-post-size) / 2));
897
+ width: 100%;
898
+ height: calc((var(--font-post-size) / 2));
899
+ background: var(--mark-background);
900
+ opacity: 0.4;
901
+ }
902
+ .post-main a {
903
+ text-decoration: none;
904
+ color: var(--link-color);
905
+ }
906
+ .post-main .link i {
907
+ margin-left: 4px;
908
+ font-size: 16px;
909
+ height: 100%;
910
+ }
911
+ .post-main .contains-task-list {
912
+ list-style-type: none;
913
+ padding: 0;
914
+ }
915
+
916
+ .post-aside {
917
+ margin-top: 1rem;
918
+ width: 300px;
919
+ }
920
+ .post-aside .card-toc {
921
+ font-size: 18px;
922
+ padding: 0.5rem 1rem;
923
+ }
924
+ .post-aside .card-toc .card-toc-header {
925
+ font-size: 24px;
926
+ font-weight: 600;
927
+ margin: 10px 0;
928
+ }
929
+ .post-aside .card-toc .toc {
930
+ list-style-type: none;
931
+ padding: 0;
932
+ margin: 0;
933
+ padding-left: 10px;
934
+ margin-left: 5px;
935
+ border-left: 2px solid var(--border-light-grey);
936
+ }
937
+ .post-aside .card-toc .toc .toc-item {
938
+ transition: 0.2s;
939
+ font-weight: 600;
940
+ }
941
+ .post-aside .card-toc .toc .toc-item .toc-link {
942
+ display: block;
943
+ max-width: 90%;
944
+ text-decoration: none;
945
+ color: var(--font-black-white);
946
+ transition: 0.3s;
947
+ }
948
+ .post-aside .card-toc .toc .toc-item .toc-link .toc-text {
949
+ width: 100%;
950
+ display: inline-block;
951
+ white-space: nowrap;
952
+ overflow: hidden;
953
+ text-overflow: ellipsis;
954
+ color: var(--font-light-grey);
955
+ transition: 0.2s;
956
+ }
957
+ .post-aside .card-toc .toc .toc-item .toc-link .toc-text:before {
958
+ content: "#";
959
+ display: inline;
960
+ }
961
+ .post-aside .card-toc .toc .toc-item:hover .toc-link .toc-text {
962
+ padding-left: 10px;
963
+ color: var(--theme-color);
964
+ }
965
+
966
+ .code-block {
967
+ position: relative;
968
+ margin: 0.5rem 3rem;
969
+ border-radius: 10px;
970
+ overflow: hidden;
971
+ user-select: none;
972
+ box-shadow: var(--card-shadow);
973
+ transition: 0.3s;
974
+ }
975
+ .code-block:hover {
976
+ box-shadow: var(--card-tiny-shadow);
977
+ }
978
+ .code-block .code-lang {
979
+ padding: 0.5rem 1rem;
980
+ background: var(--codeblock-background-grey);
981
+ font-weight: 600;
982
+ color: var(--font-light-grey);
983
+ }
984
+ .code-block .code-wrap {
985
+ padding: 0 1rem;
986
+ font-size: var(--font-code-size);
987
+ background: var(--astro-code-color-background);
988
+ }
989
+ .code-block .code-wrap pre {
990
+ margin: 0;
991
+ padding: 1rem;
992
+ }
993
+ .code-block .code-copy {
994
+ position: absolute;
995
+ top: 2.8rem;
996
+ right: 0.5rem;
997
+ width: 36px;
998
+ height: 36px;
999
+ color: var(--codeblock-copybutton-grey);
1000
+ opacity: 0;
1001
+ cursor: pointer;
1002
+ transition: 0.3s;
1003
+ }
1004
+ .code-block .code-copy i {
1005
+ font-size: 36px;
1006
+ }
1007
+ .code-block .code-copy:hover {
1008
+ opacity: 1;
1009
+ }
1010
+
1011
+ .target-to {
1012
+ animation: 0.5s blink 3;
1013
+ }
1014
+
1015
+ * {
1016
+ box-sizing: border-box;
1017
+ font-family: var(--default-font-family);
1018
+ }
1019
+
1020
+ ::-webkit-scrollbar {
1021
+ width: 8px;
1022
+ height: 8px;
1023
+ }
1024
+
1025
+ ::-webkit-scrollbar-thumb {
1026
+ border-radius: 3px;
1027
+ background: rgba(0, 0, 0, 0.12);
1028
+ box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
1029
+ }
1030
+
1031
+ ::-webkit-scrollbar-track {
1032
+ border-radius: 3px;
1033
+ background: rgba(0, 0, 0, 0.06);
1034
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1035
+ }
1036
+
1037
+ ul,
1038
+ ol {
1039
+ list-style-type: none;
1040
+ }
1041
+
1042
+ body {
1043
+ margin: 0;
1044
+ background: var(--body-background-color);
1045
+ }
1046
+
1047
+ :root {
1048
+ --theme-color: #007aff;
1049
+ --light-grey: #999;
1050
+ --font-black-white: #363636;
1051
+ --font-white-black: white;
1052
+ --font-light-grey: #999;
1053
+ --font-dark-grey: #444;
1054
+ --font-white: white;
1055
+ --font-code-color: rgb(255 136 0);
1056
+ --font-code-background: #eee;
1057
+ --background-white: white;
1058
+ --background-grey: #eee;
1059
+ --navbar-bg-color: rgb(255 255 255 / 80%);
1060
+ --button-background-black: #363636;
1061
+ --button-background-white: var(--font-white);
1062
+ --body-background-color: #f7f9fe;
1063
+ --codeblock-background-grey: var(--background-grey);
1064
+ --codeblock-copybutton-grey: #999;
1065
+ --border-light-grey: #ddd;
1066
+ --mark-background: #dfbfff;
1067
+ --link-color: #87d96c;
1068
+ }
1069
+
1070
+ :root {
1071
+ --header-nav-height: 4rem;
1072
+ --header-item-icon-size: 18px;
1073
+ --header-button-icon-size: 22px;
1074
+ --font-code-size: 18px;
1075
+ --font-post-size: 18px;
1076
+ }
1077
+
1078
+ :root {
1079
+ --heading-font-family: georgia pro, crimson, georgia, -apple-system,
1080
+ blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell,
1081
+ "Fira Sans", "Droid Sans", "Helvetica Neue", stheiti, "Microsoft YaHei",
1082
+ simsun, sans-serif;
1083
+ --default-font-family: dosis, open sans, pingfang sc, helvetica neue, arial,
1084
+ hiragino sans gb, microsoft yahei ui, microsoft yahei, simsun,
1085
+ sans-serif;
1086
+ }
1087
+
1088
+ :root {
1089
+ --header-shadow: 0 8px 8px rgb(0 0 0 / 20%);
1090
+ --card-shadow: 0 6px 8px rgb(0 0 0 / 15%);
1091
+ --card-tiny-shadow: 0 2px 4px rgb(0 0 0 / 15%);
1092
+ --elastic-animation: cubic-bezier(0.42, 0, 0, 1.53);
1093
+ --appear-animation: 0.3s ease 0.1s 1 normal both running appear;
1094
+ --shak-hard-animation: 0.1s ease-in-out infinite shake-hard;
1095
+ }