hexo-theme-solitude 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/.github/FUNDING.yml +3 -4
  2. package/.github/ISSUE_TEMPLATE/config.yml +3 -3
  3. package/.github/workflows/npm-publish.yml +1 -1
  4. package/.github/workflows/release.yml +29 -0
  5. package/LICENSE +202 -21
  6. package/README.md +3 -1
  7. package/README_en-US.md +3 -1
  8. package/README_zh-Hant.md +3 -1
  9. package/_config.yml +19 -18
  10. package/languages/en.yml +0 -0
  11. package/languages/zh-CN.yml +0 -0
  12. package/languages/zh-TW.yml +0 -0
  13. package/layout/includes/footer.pug +10 -7
  14. package/layout/includes/head/config.pug +9 -9
  15. package/layout/includes/inject/body.pug +4 -4
  16. package/layout/includes/inject/head.pug +2 -2
  17. package/layout/includes/page/brevity.pug +7 -7
  18. package/layout/includes/widgets/aside/asideInfoCard.pug +18 -86
  19. package/layout/includes/widgets/home/banner.pug +0 -1
  20. package/layout/includes/widgets/home/bbTimeList.pug +4 -4
  21. package/layout/includes/widgets/page/about/contentinfo.pug +1 -1
  22. package/layout/includes/widgets/page/recentcomment/waline.pug +0 -1
  23. package/layout/index.pug +2 -2
  24. package/package.json +10 -10
  25. package/scripts/event/merge_config.js +4 -6
  26. package/scripts/filter/checkThemeConfig.js +3 -3
  27. package/scripts/helper/stylus.js +1 -1
  28. package/source/css/_components/capsule.styl +228 -0
  29. package/source/css/_components/expire.styl +12 -0
  30. package/source/css/_components/index.styl +17 -0
  31. package/source/css/_components/keyboard.styl +59 -0
  32. package/source/css/_components/pace.styl +39 -0
  33. package/source/css/_components/rightside.styl +63 -0
  34. package/source/css/_components/universe.styl +17 -0
  35. package/source/css/_layout/aside.styl +162 -460
  36. package/source/css/_layout/footer.styl +6 -9
  37. package/source/css/_page/_about/contentinfo.styl +1 -1
  38. package/source/css/_page/_home/home.styl +1 -1
  39. package/source/css/_page/{says.styl → brevity.styl} +54 -53
  40. package/source/css/_page/index.styl +2 -2
  41. package/source/css/index.styl +4 -1
  42. package/source/css/var.styl +2 -0
  43. package/source/js/main.js +7 -7
  44. package/.github/PULL_REQUEST_TEMPLATE.md +0 -28
  45. package/.github/workflows/issue_invalid.yml +0 -18
  46. package/.github/workflows/issue_question.yml +0 -30
  47. package/.github/workflows/issue_wontfix.yml +0 -29
  48. package/source/css/_layout/capsule.styl +0 -229
  49. package/source/css/_layout/expire.styl +0 -13
  50. package/source/css/_layout/keyboard.styl +0 -60
  51. package/source/css/_layout/pace.styl +0 -40
  52. package/source/css/_layout/rightside.styl +0 -58
  53. package/source/css/_layout/universe.styl +0 -18
@@ -83,7 +83,7 @@
83
83
  min-width 100px
84
84
 
85
85
  / [data-theme=dark] &
86
- background #00000015
86
+ background var(--efu-black)
87
87
  color var(--efu-white)
88
88
 
89
89
  &:hover
@@ -191,19 +191,19 @@
191
191
  padding .5rem
192
192
 
193
193
  +maxWidth1200()
194
- position: fixed
195
- right: 3rem
196
- bottom: 10px
197
- z-index: 100
198
- max-width: 380px
199
- max-height: calc(100% - 60px)
200
- width: calc(100% - 80px)
201
- transition: transform .3s
202
- transform: scale(0)
203
- transform-origin: right bottom
204
-
205
- &.open
206
- transform: scale(1)
194
+ position: fixed
195
+ right: 3rem
196
+ bottom: 10px
197
+ z-index: 100
198
+ max-width: 380px
199
+ max-height: calc(100% - 60px)
200
+ width: calc(100% - 80px)
201
+ transition: transform .3s
202
+ transform: scale(0)
203
+ transform-origin: right bottom
204
+
205
+ &.open
206
+ transform: scale(1)
207
207
 
208
208
  .toc-content
209
209
  overflow-y: auto
@@ -274,488 +274,190 @@
274
274
  .toc-item.active .toc-link .toc-text
275
275
  color: var(--efu-white)
276
276
 
277
- if hexo-config('aside.card.style') == 0
278
- #aside-content
277
+ #aside-content
278
+ .card-widget
279
+ if hexo-config('aside.my_card.author.sticker')
280
+ &:hover
281
+ .avatar-sticker
282
+ opacity 0
283
+ transform scale(0)
279
284
 
280
- .card-widget
281
- if hexo-config('aside.card.author.sticker')
282
- &:hover
283
- .avatar-sticker
284
- opacity 0
285
- transform scale(0)
286
-
287
- &.card-recent-post
288
- padding .4rem .6rem !important
289
-
290
- &.card-info
291
- padding 0 !important
292
- box-shadow var(--efu-shadow-black)
293
-
294
- > div.card-content
295
- padding 1rem 1.2rem
296
- min-height 320px
297
- position relative
298
-
299
- > .card-widget.card-info
300
- &:before
301
- background linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep))
302
- background-size 400%
303
- position absolute
304
- width 100%
305
- height 100%
306
- left 0
307
- top 0
308
- content ''
309
- animation gradient 15s ease infinite
285
+ &.card-recent-post
286
+ padding .4rem .6rem !important
287
+
288
+ &.card-info
289
+ padding 0 !important
290
+ box-shadow var(--efu-shadow-black)
310
291
 
311
292
  > div.card-content
312
293
  padding 1rem 1.2rem
313
294
  min-height 320px
314
295
  position relative
315
296
 
316
- > div.card-info-avatarimg
317
- overflow hidden
318
- background var(--efu-yellow)
319
- transition 1.5s
320
- min-height 160px
321
- position relative
322
- box-shadow var(--efu-shadow-yellow)
323
-
324
- &:hover img
325
- transform scale(1.03)
326
-
327
- .card-info
328
- if hexo-config('aside.card.author.sticker')
329
- .avatar-sticker
330
- position absolute
331
- bottom -2px
332
- right -2px
333
- width 33px
334
- height 33px
335
- line-height 34px
336
- z-index 0
337
- display flex
338
- align-items center
339
- justify-content center
340
- transition .3s .2s
341
- transform scale(1)
342
- background var(--efu-card-bg)
343
- border-radius 50%
297
+ > .card-widget.card-info
298
+ &:before
299
+ background linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep))
300
+ background-size 400%
301
+ position absolute
302
+ width 100%
303
+ height 100%
304
+ left 0
305
+ top 0
306
+ content ''
307
+ animation gradient 15s ease infinite
344
308
 
345
- img
346
- width 26px
347
- height 26px
309
+ > div.card-content
310
+ padding 1rem 1.2rem
311
+ min-height 320px
312
+ position relative
348
313
 
349
- ../ :hover .avatar-sticker
350
- opacity 0
351
- transform scale(0)
314
+ > div.card-info-avatarimg
315
+ overflow hidden
316
+ background var(--efu-yellow)
317
+ transition 1.5s
318
+ min-height 160px
319
+ position relative
320
+ box-shadow var(--efu-shadow-yellow)
352
321
 
353
- .author-info__desc
354
- font-size 12px
355
- color var(--efu-card-bg)
356
- opacity .6
357
- line-height 1
322
+ &:hover img
323
+ transform scale(1.03)
358
324
 
359
- .card-info-avatar.is-center
360
- flex-direction column
325
+ .card-info
326
+ if hexo-config('aside.my_card.author.sticker')
327
+ .avatar-sticker
328
+ position absolute
329
+ bottom -2px
330
+ right -2px
331
+ width 33px
332
+ height 33px
333
+ line-height 34px
334
+ z-index 0
361
335
  display flex
362
- align-items flex-start
336
+ align-items center
337
+ justify-content center
338
+ transition .3s .2s
339
+ transform scale(1)
340
+ background var(--efu-card-bg)
341
+ border-radius 50%
363
342
 
364
- .avatar-img-group
365
- width 118px
366
- height 118px
367
- right calc(50% - 59px)
368
- top 90px
369
- border-radius 500px
370
- position absolute
371
- transition cubic-bezier(.69, .39, 0, 1.21) .3s
372
- transform-origin bottom
373
- border 5px solid var(--efu-card-bg)
343
+ img
344
+ width 26px
345
+ height 26px
374
346
 
375
- ../ :hover .avatar-img-group
347
+ ../ :hover .avatar-sticker
376
348
  opacity 0
377
349
  transform scale(0)
378
350
 
379
- .author-info__name
380
- text-align left
381
- font-weight 700
382
- color var(--efu-card-bg)
383
- font-size 20px
384
- line-height 1
385
- margin-bottom 5px
386
-
387
- .author-info__top-group
388
- display flex
389
- height 28px
390
- width 100%
391
-
392
- .author-info__description_group
393
- position absolute
394
- top 50px
395
- width 100%
396
- left 0
397
- padding 1.2rem
398
- opacity 0
399
- transition .3s
400
-
401
- ../ :hover .author-info__description_group
402
- opacity 1
403
-
404
- .author-info__description
405
- line-height 1.38
406
- margin .3rem 0
407
- text-align left
408
- color var(--efu-card-bg)
409
-
410
- b
411
- color var(--efu-card-bg)
412
-
413
- .author-info__description2
414
- line-height 1.38
415
- margin .3rem 0
416
- text-align left
417
- width 100%
418
- z-index 2
419
- color var(--efu-card-bg)
420
-
421
- b
422
- color var(--efu-card-bg)
423
-
424
- .author-info__bottom-group
425
- display flex
426
- justify-content space-between
427
- position absolute
428
- padding 1.2rem
429
- width 100%
430
- left 0
431
- bottom 0
432
- align-items center
433
-
434
- a.author-info__bottom-group-left:hover
435
- opacity .8
351
+ .author-info__desc
352
+ font-size 12px
353
+ color var(--efu-card-bg)
354
+ opacity .6
355
+ line-height 1
436
356
 
437
- .card-info-data
438
- display table
439
- margin .7rem 0 .2rem
440
- width 100%
441
- table-layout fixed
357
+ .card-info-avatar.is-center
358
+ flex-direction column
359
+ display flex
360
+ align-items flex-start
442
361
 
443
- > div:nth-child(0) > a > div.headline
444
- font-weight 700
362
+ .avatar-img-group
363
+ width 118px
364
+ height 118px
365
+ right calc(50% - 59px)
366
+ top 90px
367
+ border-radius 500px
368
+ position absolute
369
+ transition cubic-bezier(.69, .39, 0, 1.21) .3s
370
+ transform-origin bottom
371
+ border 5px solid var(--efu-card-bg)
445
372
 
446
- > .card-info-data-item
447
- display table-cell
448
- transition .3s
373
+ ../ :hover .avatar-img-group
374
+ opacity 0
375
+ transform scale(0)
449
376
 
450
- a
451
- .headline
452
- color var(--efu-fontcolor)
453
- font-size 1em
377
+ .author-info__name
378
+ text-align left
379
+ font-weight 700
380
+ color var(--efu-card-bg)
381
+ font-size 20px
382
+ line-height 1
383
+ margin-bottom 5px
454
384
 
455
- .length-num
456
- margin-top -.3rem
457
- color var(--efu-fontcolor)
458
- font-size 1.4em
385
+ .author-info__top-group
386
+ display flex
387
+ height 28px
388
+ width 100%
459
389
 
460
- &:hover
461
- background #000
462
- border-radius 5px
390
+ .author-info__description_group
391
+ position absolute
392
+ top 50px
393
+ width 100%
394
+ left 0
395
+ padding 1.2rem
396
+ opacity 0
397
+ transition .3s
463
398
 
464
- img.avatar-img
465
- width 108px
466
- height 108px
467
- object-fit cover
468
- right 0
469
- top 0
470
- border-radius 500px
471
- position absolute
399
+ ../ :hover .author-info__description_group
472
400
  opacity 1
473
- transition .3s
474
-
475
- if hexo-config('aside.card.style') == 1
476
- #aside-content
477
- .card-widget.card-info
478
- min-height 340px
479
- padding 0
480
- margin-top 0
481
401
 
482
- .author-info__top-group
483
- margin-top 20px
484
- display flex
485
- height 28px
486
- width 100%
487
-
488
- .card-info-bg-top
489
- min-height 140px
490
- background: linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep), var(--efu-main), var(--efu-main-op-deep))
491
- background-size: 400%
492
- if hexo-config('aside.card.background')
493
- background-image url(hexo-config('aside.card.background'))
494
- background-size cover
495
- background-position center
496
- background-repeat no-repeat
497
-
498
- .card-info-avatar
499
- width 114px
500
- height 114px
501
- right calc(50% - 57px)
502
- top 75px
503
- border-radius 500px
504
- position absolute
505
- transition cubic-bezier(.69, .39, 0, 1.21) .3s
506
- transform-origin bottom
507
- z-index 1
508
- border 7px solid var(--efu-card-bg)
509
-
510
- .avatar-img
511
- overflow hidden
512
- border-radius 500px
513
- width 100px
514
- cursor pointer
515
- height 100px
516
-
517
- img
518
- object-fit cover
519
- width 100%
520
- height 100%
521
- transition .3s
522
-
523
- &:hover
524
- transform: scale(1.3)
525
-
526
- if hexo-config('aside.card.author.sticker')
527
- .avatar-sticker
528
- position absolute
529
- bottom -2px
530
- right -2px
531
- width 33px
532
- height 33px
533
- line-height 34px
534
- z-index 0
535
- display flex
536
- align-items center
537
- justify-content center
538
- transition .3s .2s
539
- transform scale(1)
540
- background var(--efu-card-bg)
541
- border-radius 50%
542
-
543
- img
544
- width 26px
545
- height 26px
546
-
547
- .card-info-social-icons
548
- width 100%
549
- justify-content center
550
- padding 10px 20px
551
-
552
- i
553
- background 0 0
554
- color var(--efu-fontcolor)
555
-
556
- &:hover
557
- transform rotate(360deg)
558
- color var(--efu-theme)
559
-
560
- .card-info__desc_group
561
- display flex
562
- align-items center
563
- flex-direction column
564
-
565
- .author-info__name
566
- margin-top 60px
567
- text-align center
568
- font-weight 700
569
- color var(--efu-fontcolor)
570
- font-size 20px
571
- line-height 1
572
- margin-bottom 5px
573
-
574
- .author-info__desc
575
- font-size 14px
576
- color var(--efu-font-color)
577
- line-height 2
578
-
579
- .card-info__data
580
- display table
581
- width 100%
582
- table-layout fixed
583
- margin 12px 0 4px
584
- padding 0 20px
585
-
586
- a
587
- position relative
588
- display table-cell
589
-
590
- &:hover
591
- transition all .3s
592
- color var(--efu-theme)
593
-
594
- div
595
- transition all .3s
596
- color var(--efu-theme)
597
-
598
- &:not(:last-child):after
599
- opacity: .3
600
- position: absolute
601
- top: 6px
602
- right: 0
603
- content: ""
604
- width: 1px
605
- height: 40px
606
- background: var(--efu-fontcolor)
607
-
608
- .length-num
609
- margin-top: -.32em
610
- color: var(--efu-fontcolor)
611
- font-size: 1.4em
612
- line-height: 1.5
613
-
614
- .headline
615
- color: var(--efu-font-color)
616
- font-size: 1em
617
- line-height: 1.5
618
-
619
- if hexo-config('aside.card.style') == 2
620
- #aside-content .card-widget.card-info
621
- padding 0
622
-
623
- .card-info-bg-top
624
- width 100%
625
- height 95px
626
- position relative
627
- background: linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep), var(--efu-main), var(--efu-main-op-deep))
628
- if hexo-config('aside.card.background')
629
- background-image url(hexo-config('aside.card.background'))
630
- background-size cover
631
- background-position center
632
- background-repeat no-repeat
633
- .author-info__name
634
- font-size 24px
635
- line-height 35px
636
- color var(--efu-white)
637
- font-weight 700
638
- position absolute
639
- top 55px
640
- if hexo-config('aside.position') == 0
641
- left 6rem
642
- else
643
- left 1rem
644
- .card-info__data
645
- position absolute
646
- top 98px
647
- gap .5rem
648
- z-index 1
649
- if hexo-config('aside.position') == 0
650
- right 1rem
651
- else
652
- left 1rem
653
-
654
- .headline
655
- color var(--efu-gray)
656
-
657
- .length-num
658
- font-weight 700
402
+ .author-info__description
403
+ line-height 1.38
404
+ margin .3rem 0
405
+ text-align left
406
+ color var(--efu-card-bg)
659
407
 
660
- a
661
- font-size 14px
662
- display flex
663
- line-height 18px
664
- gap .1rem
665
- .card-info__desc_group
666
- padding 44px 1rem 1rem
667
- min-height 50px
668
- opacity .8
669
- line-height 18px
670
- .author-info-social
671
- position absolute
672
- display inline-flex
673
- gap: 5px
674
- top .5rem
675
- if hexo-config('aside.position') == 0
676
- right 1rem
677
- else
678
- left 1rem
408
+ b
409
+ color var(--efu-card-bg)
679
410
 
680
- i
681
- font-size 18px
682
- width 30px
683
- height 30px
684
- border-radius 50%
685
- background rgba(255, 255, 255, .2)
686
- backdrop-filter blur(10px)
687
- color var(--efu-white)
411
+ .author-info__bottom-group
688
412
  display flex
689
- justify-content center
413
+ justify-content space-between
414
+ position absolute
415
+ padding 1.2rem
416
+ width 100%
417
+ left 0
418
+ bottom 0
690
419
  align-items center
691
420
 
692
- .social-icons
693
- order 1
694
- opacity 0
695
- transition .3s
696
- display flex
697
- pointer-events none
698
- gap 5px
699
- .more-info
700
- if hexo-config('aside.position') == 0
701
- order 1
702
- else
703
- order 0
704
- cursor pointer
705
- display flex
706
- justify-content center
707
- align-items center
708
- .card-info-avatar
709
- width 80px
710
- height 80px
711
- top 50px
712
- border-radius 500px
713
- position absolute
714
- transition cubic-bezier(.69, .39, 0, 1.21) .3s
715
- transform-origin bottom
716
- border 3px solid var(--efu-card-bg)
717
- z-index 1
718
- if hexo-config('aside.position') == 0
719
- left 1rem
720
- else
721
- right 1rem
421
+ a.author-info__bottom-group-left:hover
422
+ opacity .8
722
423
 
723
- .avatar-img
724
- overflow hidden
725
- border-radius 500px
726
- width 75px
727
- cursor pointer
728
- height 74px
424
+ .card-info-data
425
+ display table
426
+ margin .7rem 0 .2rem
427
+ width 100%
428
+ table-layout fixed
729
429
 
730
- img
731
- object-fit cover
732
- width 100%
733
- height 100%
430
+ > div:nth-child(0) > a > div.headline
431
+ font-weight 700
432
+
433
+ > .card-info-data-item
434
+ display table-cell
734
435
  transition .3s
735
436
 
736
- &:hover
737
- transform: scale(1.3)
437
+ a
438
+ .headline
439
+ color var(--efu-fontcolor)
440
+ font-size 1em
738
441
 
739
- if hexo-config('aside.card.author.sticker')
740
- .avatar-sticker
741
- position absolute
742
- bottom -2px
743
- right -2px
744
- width 26px
745
- height 26px
746
- line-height 26px
747
- z-index 0
748
- display flex
749
- align-items center
750
- justify-content center
751
- transition .3s .2s
752
- transform scale(1)
753
- background var(--efu-card-bg)
754
- border-radius 50%
442
+ .length-num
443
+ margin-top -.3rem
444
+ color var(--efu-fontcolor)
445
+ font-size 1.4em
755
446
 
756
- img
757
- width 21px
758
- height 21px
447
+ &:hover
448
+ background #000
449
+ border-radius 5px
450
+
451
+ img.avatar-img
452
+ width 108px
453
+ height 108px
454
+ object-fit cover
455
+ right 0
456
+ top 0
457
+ border-radius 500px
458
+ position absolute
459
+ opacity 1
460
+ transition .3s
759
461
 
760
462
  [data-theme=dark] #aside-content
761
463
  > .card-widget.card-info
@@ -774,7 +476,7 @@ if hexo-config('aside.card.style') == 2
774
476
  display none
775
477
 
776
478
  .card-tag-cloud
777
- max-height 500px
479
+ max-height $tag_cloud_limit * .4rem
778
480
  overflow hidden
779
481
  position relative
780
482
 
@@ -239,7 +239,7 @@
239
239
  line-height 1
240
240
  display flex
241
241
  align-items center
242
- gap 4px
242
+ gap .5rem
243
243
 
244
244
  .author-avatar
245
245
  width 20px
@@ -247,14 +247,11 @@
247
247
  min-height 20px
248
248
  min-width 20px
249
249
 
250
- &.cc
251
- margin-right 0
252
-
253
- i
254
- font-size 18px
255
-
256
- &:not(:last-child)
257
- margin-right .5rem
250
+ i
251
+ font-size 14px
252
+
253
+ img
254
+ height 20px
258
255
 
259
256
  &:hover
260
257
  color var(--efu-theme)