@zvoove/unity-ui 2.25.0 → 2.26.0

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.
package/dist/theme.css CHANGED
@@ -358,6 +358,11 @@
358
358
  --color-steel-blue-container: var(--color-steel-blue-90);
359
359
  --color-on-steel-blue-container: var(--color-steel-blue-10);
360
360
 
361
+ --color-code-surface: var(--color-neutral-15);
362
+ --color-code-surface-variant: var(--color-neutral-20);
363
+ --color-code-on-surface: var(--color-neutral-variant-90);
364
+ --color-code-outline: var(--color-neutral-30);
365
+
361
366
  --shadow-elevation1: 0px 1px 3px 1px rgba(107, 112, 153, 0.15);
362
367
  --shadow-elevation2: 0px 2px 6px 2px rgba(107, 112, 153, 0.15);
363
368
  --shadow-elevation3: 0px 1px 3px rgba(107, 112, 153, 0.15);
@@ -391,8 +396,7 @@
391
396
  --container-laptop: 80rem; /* 1280px */
392
397
  --container-desktop: 96rem; /* 1536px */
393
398
 
394
- --chat-shell-max-width: 54rem; /* 864px centered conversation container */
395
- --chat-content-measure: 72ch; /* max inline-size for bubbles & cards */
399
+ --chat-content-measure: 60%; /* max inline-size for bubbles & cards */
396
400
 
397
401
  @keyframes ripple {
398
402
  0% {
@@ -583,6 +587,10 @@
583
587
  --color-on-dark-steel-blue: var(--color-steel-blue-20);
584
588
  --color-steel-blue-container: var(--color-steel-blue-30);
585
589
  --color-on-steel-blue-container: var(--color-steel-blue-90);
590
+ --color-code-surface: var(--color-neutral-15);
591
+ --color-code-surface-variant: var(--color-neutral-20);
592
+ --color-code-on-surface: var(--color-neutral-variant-90);
593
+ --color-code-outline: var(--color-neutral-30);
586
594
  }
587
595
  }
588
596
 
@@ -732,6 +740,139 @@
732
740
  .remove-margin-block-end {
733
741
  margin-block-end: 0 !important;
734
742
  }
743
+
744
+ .content-block {
745
+ @apply text-on-surface text-body-medium font-body;
746
+
747
+ & > :first-child {
748
+ @apply mt-none!;
749
+ }
750
+
751
+ & > :first-child > :first-child {
752
+ @apply mt-none!;
753
+ }
754
+
755
+ & > :last-child {
756
+ @apply mb-none!;
757
+ }
758
+
759
+ & > :last-child > :last-child {
760
+ @apply mb-none!;
761
+ }
762
+
763
+ & h1 {
764
+ @apply text-headline-large text-on-surface mt-xl mb-sm;
765
+ }
766
+
767
+ & h2 {
768
+ @apply text-headline-medium text-on-surface mt-xl mb-sm;
769
+ }
770
+
771
+ & h3 {
772
+ @apply text-headline-small text-on-surface mt-lg mb-sm;
773
+ }
774
+
775
+ & h4 {
776
+ @apply text-title-large text-on-surface mt-lg mb-xs;
777
+ }
778
+
779
+ & h5 {
780
+ @apply text-title-medium text-on-surface mt-md mb-xs;
781
+ }
782
+
783
+ & h6 {
784
+ @apply text-title-small text-on-surface mt-md mb-xs;
785
+ }
786
+
787
+ & p {
788
+ @apply text-body-medium mb-md;
789
+ }
790
+
791
+ & ul {
792
+ @apply list-disc pl-xl mb-md;
793
+ }
794
+
795
+ & ol {
796
+ @apply list-decimal pl-xl mb-md;
797
+ }
798
+
799
+ & li {
800
+ @apply mb-xs2;
801
+ }
802
+
803
+ & table {
804
+ @apply w-full table-auto;
805
+ }
806
+
807
+ & thead tr {
808
+ @apply border-b border-outline-variant;
809
+ }
810
+
811
+ & th {
812
+ @apply p-sm bg-surface-container-low text-label-large text-on-surface text-left relative;
813
+
814
+ &:not(:last-child)::after {
815
+ content: '';
816
+ @apply absolute right-[0px] top-1/2 -translate-y-1/2 w-px h-sm bg-outline-variant;
817
+ }
818
+ }
819
+
820
+ & tbody tr {
821
+ @apply transition-colors;
822
+
823
+ &:not(:last-child) {
824
+ @apply border-b border-outline-variant;
825
+ }
826
+
827
+ &:hover {
828
+ @apply bg-surface-container-lowest;
829
+ }
830
+ }
831
+
832
+ & td {
833
+ @apply p-sm text-body-medium;
834
+ }
835
+
836
+ & a {
837
+ @apply text-primary underline;
838
+
839
+ &:hover {
840
+ @apply text-primary-hover;
841
+ }
842
+ }
843
+
844
+ & code {
845
+ @apply text-body-small! bg-surface-container rounded-xs px-xs2 py-xs2;
846
+ }
847
+
848
+ & blockquote {
849
+ @apply border-l-4 border-outline-variant pl-md mb-md italic text-on-surface-variant;
850
+ }
851
+
852
+ & hr {
853
+ @apply border-outline-variant my-md;
854
+ }
855
+
856
+ & img {
857
+ @apply max-w-full rounded-sm;
858
+ }
859
+
860
+ & strong {
861
+ @apply font-semibold;
862
+ }
863
+
864
+ & b {
865
+ @apply font-semibold;
866
+ }
867
+
868
+ & em {
869
+ @apply italic;
870
+ }
871
+
872
+ & i {
873
+ @apply italic;
874
+ }
875
+ }
735
876
  }
736
877
 
737
878
  @layer base {