@airalogy/aimd-recorder 1.19.0 → 1.19.1

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.
@@ -548,6 +548,15 @@
548
548
  background-color: #f0f0f0;
549
549
  }
550
550
 
551
+ .aimd-ref[data-aimd-ref-target] {
552
+ cursor: pointer;
553
+ }
554
+
555
+ .aimd-ref[data-aimd-ref-target]:focus-visible {
556
+ outline: 2px solid rgba(25, 118, 210, 0.36);
557
+ outline-offset: 3px;
558
+ }
559
+
551
560
  .aimd-ref--step {
552
561
  padding: 0;
553
562
  border: none;
@@ -640,21 +649,174 @@
640
649
  opacity: 0.85 !important;
641
650
  }
642
651
 
652
+ /* Figure styles */
653
+ .aimd-figure {
654
+ display: block;
655
+ box-sizing: border-box;
656
+ width: fit-content;
657
+ max-width: min(100%, 920px);
658
+ margin: 1.2em auto 1.45em;
659
+ overflow: hidden;
660
+ border: 1px solid #d8e2ef;
661
+ border-radius: 10px;
662
+ background: #ffffff;
663
+ }
664
+
665
+ .aimd-figure > .aimd-figure__image {
666
+ display: block;
667
+ max-width: 100%;
668
+ height: auto;
669
+ margin: 0 auto;
670
+ border-radius: 0;
671
+ background: #f3f7fc;
672
+ object-fit: contain;
673
+ }
674
+
675
+ .aimd-figure__caption {
676
+ display: block;
677
+ margin: 0;
678
+ padding: 10px 14px 12px 16px;
679
+ border-top: 1px solid #d8e2ef;
680
+ background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
681
+ color: #253247;
682
+ line-height: 1.45;
683
+ }
684
+
685
+ .aimd-figure__title {
686
+ margin: 0;
687
+ color: #172033;
688
+ font-size: 0.94em;
689
+ font-weight: 700;
690
+ line-height: 1.38;
691
+ }
692
+
693
+ .aimd-figure__legend {
694
+ margin: 4px 0 0;
695
+ color: #526176;
696
+ font-size: 0.9em;
697
+ line-height: 1.5;
698
+ }
699
+
700
+ @media (max-width: 640px) {
701
+ .aimd-figure {
702
+ width: 100%;
703
+ margin-right: 0;
704
+ margin-left: 0;
705
+ }
706
+
707
+ .aimd-figure > .aimd-figure__image {
708
+ width: 100%;
709
+ }
710
+ }
711
+
643
712
  /* Citation styles */
644
713
  .aimd-cite {
645
714
  display: inline;
646
715
  color: #1976d2;
647
716
  font-size: 13px;
648
- cursor: pointer;
649
717
  text-decoration: none;
650
718
  }
651
719
 
652
- .aimd-cite:hover {
720
+ .aimd-cite__refs {
721
+ font-weight: 500;
722
+ }
723
+
724
+ .aimd-cite__ref {
725
+ position: relative;
726
+ display: inline-flex;
727
+ align-items: center;
728
+ border-radius: 999px;
729
+ outline: none;
730
+ color: inherit;
731
+ cursor: help;
732
+ font-weight: 600;
733
+ line-height: 1;
734
+ text-decoration: none;
735
+ }
736
+
737
+ .aimd-cite__ref:hover,
738
+ .aimd-cite__ref:focus-visible {
653
739
  text-decoration: underline;
654
740
  }
655
741
 
656
- .aimd-cite__refs {
742
+ .aimd-cite__label {
743
+ display: inline-flex;
744
+ align-items: center;
745
+ }
746
+
747
+ .aimd-cite__popover {
748
+ position: absolute;
749
+ left: 50%;
750
+ top: calc(100% + 8px);
751
+ z-index: 30;
752
+ width: max-content;
753
+ max-width: min(420px, 80vw);
754
+ padding: 8px 10px;
755
+ border: 1px solid #d6e1f0;
756
+ border-radius: 8px;
757
+ background: #ffffff;
758
+ box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
759
+ color: #1f2937;
760
+ font-size: 12px;
657
761
  font-weight: 500;
762
+ line-height: 1.45;
763
+ opacity: 0;
764
+ overflow-wrap: anywhere;
765
+ pointer-events: none;
766
+ user-select: text;
767
+ text-align: left;
768
+ text-decoration: none;
769
+ transform: translate(-50%, -4px);
770
+ transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
771
+ visibility: hidden;
772
+ white-space: normal;
773
+ }
774
+
775
+ .aimd-cite__popover::before {
776
+ content: "";
777
+ position: absolute;
778
+ left: 0;
779
+ right: 0;
780
+ top: -10px;
781
+ height: 10px;
782
+ }
783
+
784
+ .aimd-cite__ref:hover .aimd-cite__popover,
785
+ .aimd-cite__ref:focus .aimd-cite__popover,
786
+ .aimd-cite__ref:focus-within .aimd-cite__popover {
787
+ opacity: 1;
788
+ pointer-events: auto;
789
+ transform: translate(-50%, 0);
790
+ visibility: visible;
791
+ }
792
+
793
+ .aimd-refs {
794
+ margin: 24px 0;
795
+ padding-top: 16px;
796
+ border-top: 1px solid #d8dee8;
797
+ color: #1f2937;
798
+ }
799
+
800
+ .aimd-refs__title {
801
+ margin-bottom: 10px;
802
+ font-size: 16px;
803
+ font-weight: 700;
804
+ }
805
+
806
+ .aimd-refs__list {
807
+ margin: 0;
808
+ padding-left: 22px;
809
+ }
810
+
811
+ .aimd-refs__item {
812
+ margin: 8px 0;
813
+ line-height: 1.55;
814
+ }
815
+
816
+ .aimd-refs__doi,
817
+ .aimd-refs__url {
818
+ color: #1976d2;
819
+ overflow-wrap: anywhere;
658
820
  }
659
821
 
660
822
  /* Editable state */