open-chat-studio-widget 0.4.5 → 0.4.7
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/README.md +118 -94
- package/dist/cjs/{index-bcb28089.js → index-c9203be6.js} +29 -3
- package/dist/cjs/index-c9203be6.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/open-chat-studio-widget.cjs.entry.js +314 -73
- package/dist/cjs/open-chat-studio-widget.cjs.entry.js.map +1 -1
- package/dist/cjs/open-chat-studio-widget.cjs.js +2 -2
- package/dist/collection/components/ocs-chat/heroicons.js +11 -2
- package/dist/collection/components/ocs-chat/heroicons.js.map +1 -1
- package/dist/collection/components/ocs-chat/ocs-chat.css +362 -110
- package/dist/collection/components/ocs-chat/ocs-chat.js +367 -78
- package/dist/collection/components/ocs-chat/ocs-chat.js.map +1 -1
- package/dist/components/open-chat-studio-widget.js +323 -78
- package/dist/components/open-chat-studio-widget.js.map +1 -1
- package/dist/esm/{index-205c77bc.js → index-0349ca51.js} +29 -3
- package/dist/esm/index-0349ca51.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/open-chat-studio-widget.entry.js +314 -73
- package/dist/esm/open-chat-studio-widget.entry.js.map +1 -1
- package/dist/esm/open-chat-studio-widget.js +3 -3
- package/dist/open-chat-studio-widget/open-chat-studio-widget.esm.js +1 -1
- package/dist/open-chat-studio-widget/open-chat-studio-widget.esm.js.map +1 -1
- package/dist/open-chat-studio-widget/{p-78d09c6b.js → p-3dc66a9a.js} +3 -3
- package/dist/open-chat-studio-widget/p-3dc66a9a.js.map +1 -0
- package/dist/open-chat-studio-widget/p-6b9a332c.entry.js +4 -0
- package/dist/open-chat-studio-widget/p-6b9a332c.entry.js.map +1 -0
- package/dist/types/components/ocs-chat/heroicons.d.ts +4 -1
- package/dist/types/components/ocs-chat/ocs-chat.d.ts +51 -9
- package/dist/types/components.d.ts +24 -0
- package/package.json +1 -1
- package/dist/cjs/index-bcb28089.js.map +0 -1
- package/dist/esm/index-205c77bc.js.map +0 -1
- package/dist/open-chat-studio-widget/p-5d6bd56a.entry.js +0 -4
- package/dist/open-chat-studio-widget/p-5d6bd56a.entry.js.map +0 -1
- package/dist/open-chat-studio-widget/p-78d09c6b.js.map +0 -1
|
@@ -507,7 +507,7 @@ video {
|
|
|
507
507
|
border-radius: 0.5rem;
|
|
508
508
|
text-align: left;
|
|
509
509
|
transition-duration: 200ms;
|
|
510
|
-
padding:
|
|
510
|
+
padding: 0.75em;
|
|
511
511
|
background-color: var(--starter-question-bg-color);
|
|
512
512
|
border: 1px solid var(--starter-question-border-color);
|
|
513
513
|
color: var(--starter-question-text-color);
|
|
@@ -540,7 +540,7 @@ video {
|
|
|
540
540
|
border: 1px solid var(--button-border-color);
|
|
541
541
|
z-index: var(--chat-z-index, 50);
|
|
542
542
|
font-size: var(--button-font-size);
|
|
543
|
-
padding:
|
|
543
|
+
padding: 0.5em;
|
|
544
544
|
}
|
|
545
545
|
.chat-btn-text:hover, .chat-btn-icon:hover {
|
|
546
546
|
color: var(--button-text-color-hover, #1d4ed8);
|
|
@@ -558,20 +558,20 @@ video {
|
|
|
558
558
|
font-weight: 500;
|
|
559
559
|
}
|
|
560
560
|
.chat-btn-text img {
|
|
561
|
-
width: var(--button-icon-size);
|
|
562
|
-
height: var(--button-icon-size);
|
|
563
561
|
flex-shrink: 0;
|
|
564
562
|
-o-object-fit: contain;
|
|
565
563
|
object-fit: contain;
|
|
564
|
+
width: var(--button-icon-size);
|
|
565
|
+
height: var(--button-icon-size);
|
|
566
566
|
}
|
|
567
567
|
/* Icon-only button */
|
|
568
568
|
.chat-btn-icon {
|
|
569
569
|
}
|
|
570
570
|
.chat-btn-icon img {
|
|
571
|
-
width: var(--button-icon-size);
|
|
572
|
-
height: var(--button-icon-size);
|
|
573
571
|
-o-object-fit: contain;
|
|
574
572
|
object-fit: contain;
|
|
573
|
+
width: var(--button-icon-size);
|
|
574
|
+
height: var(--button-icon-size);
|
|
575
575
|
}
|
|
576
576
|
.chat-btn-text.round,
|
|
577
577
|
.chat-btn-icon.round {
|
|
@@ -579,7 +579,7 @@ video {
|
|
|
579
579
|
}
|
|
580
580
|
/* Error message styling */
|
|
581
581
|
.error-message {
|
|
582
|
-
padding:
|
|
582
|
+
padding: 0.5em;
|
|
583
583
|
color: var(--error-text-color);
|
|
584
584
|
}
|
|
585
585
|
/* Chat window positioning classes */
|
|
@@ -649,7 +649,7 @@ video {
|
|
|
649
649
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
650
650
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
651
651
|
transition-duration: 150ms;
|
|
652
|
-
padding:
|
|
652
|
+
padding: 0.5em;
|
|
653
653
|
background-color: var(--header-bg-color);
|
|
654
654
|
border-bottom: 1px solid var(--header-border-color);
|
|
655
655
|
font-size: var(--header-font-size);
|
|
@@ -701,9 +701,9 @@ video {
|
|
|
701
701
|
color: var(--header-button-text-color);
|
|
702
702
|
}
|
|
703
703
|
.header-button svg {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}
|
|
704
|
+
width: var(--header-button-icon-size);
|
|
705
|
+
height: var(--header-button-icon-size);
|
|
706
|
+
}
|
|
707
707
|
.header-button:hover {
|
|
708
708
|
background-color: var(--header-button-bg-hover-color);
|
|
709
709
|
}
|
|
@@ -761,7 +761,7 @@ video {
|
|
|
761
761
|
background-color: var(--scrollbar-thumb-hover-color);
|
|
762
762
|
}
|
|
763
763
|
.messages-container {
|
|
764
|
-
padding:
|
|
764
|
+
padding: 1em;
|
|
765
765
|
}
|
|
766
766
|
/* Message bubbles */
|
|
767
767
|
.message-row {
|
|
@@ -775,7 +775,7 @@ video {
|
|
|
775
775
|
}
|
|
776
776
|
.message-bubble {
|
|
777
777
|
border-radius: 0.5rem;
|
|
778
|
-
padding:
|
|
778
|
+
padding: 0.5em 1em;
|
|
779
779
|
}
|
|
780
780
|
.message-bubble-user {
|
|
781
781
|
background-color: var(--message-user-bg-color);
|
|
@@ -802,13 +802,6 @@ video {
|
|
|
802
802
|
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
803
803
|
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
|
|
804
804
|
}
|
|
805
|
-
.attachment-link {
|
|
806
|
-
display: block;
|
|
807
|
-
text-decoration-line: underline;
|
|
808
|
-
}
|
|
809
|
-
.attachment-link:hover {
|
|
810
|
-
text-decoration-line: none;
|
|
811
|
-
}
|
|
812
805
|
/* Welcome messages */
|
|
813
806
|
.welcome-messages > :not([hidden]) ~ :not([hidden]) {
|
|
814
807
|
--tw-space-y-reverse: 0;
|
|
@@ -892,7 +885,7 @@ video {
|
|
|
892
885
|
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
893
886
|
}
|
|
894
887
|
.starter-questions {
|
|
895
|
-
padding:
|
|
888
|
+
padding: 1em;
|
|
896
889
|
}
|
|
897
890
|
.starter-question-row {
|
|
898
891
|
display: flex;
|
|
@@ -900,7 +893,7 @@ video {
|
|
|
900
893
|
}
|
|
901
894
|
/* Input area */
|
|
902
895
|
.input-area {
|
|
903
|
-
padding:
|
|
896
|
+
padding: 1em 1em 0 1em;
|
|
904
897
|
background-color: var(--input-bg-color);
|
|
905
898
|
border-top: 1px solid var(--input-border-color);
|
|
906
899
|
}
|
|
@@ -920,7 +913,8 @@ video {
|
|
|
920
913
|
outline-color: #93c5fd;
|
|
921
914
|
}
|
|
922
915
|
.message-textarea {
|
|
923
|
-
|
|
916
|
+
background-color: var(--input-bg-color);
|
|
917
|
+
padding: 0.5em 0.75em;
|
|
924
918
|
color: var(--input-text-color);
|
|
925
919
|
border: 1px solid var(--input-border-color);
|
|
926
920
|
}
|
|
@@ -933,7 +927,7 @@ video {
|
|
|
933
927
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
934
928
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
935
929
|
transition-duration: 200ms;
|
|
936
|
-
padding:
|
|
930
|
+
padding: 0.5em 1em;
|
|
937
931
|
}
|
|
938
932
|
.send-button-enabled {
|
|
939
933
|
background-color: var(--send-button-bg-color);
|
|
@@ -947,6 +941,70 @@ video {
|
|
|
947
941
|
background-color: var(--send-button-bg-disabled-color);
|
|
948
942
|
color: var(--send-button-text-disabled-color);
|
|
949
943
|
}
|
|
944
|
+
/* Confirmation dialog */
|
|
945
|
+
.confirmation-overlay {
|
|
946
|
+
position: fixed;
|
|
947
|
+
inset: 0px;
|
|
948
|
+
display: flex;
|
|
949
|
+
align-items: center;
|
|
950
|
+
justify-content: center;
|
|
951
|
+
background-color: var(--confirmation-overlay-bg-color);
|
|
952
|
+
z-index: 9999;
|
|
953
|
+
}
|
|
954
|
+
.confirmation-dialog {
|
|
955
|
+
margin-left: 1rem;
|
|
956
|
+
margin-right: 1rem;
|
|
957
|
+
width: 100%;
|
|
958
|
+
max-width: 24rem;
|
|
959
|
+
background-color: var(--confirmation-dialog-bg-color);
|
|
960
|
+
border: 1px solid var(--confirmation-dialog-border-color);
|
|
961
|
+
border-radius: 0.75em;
|
|
962
|
+
box-shadow: 0 0.625em 1.5625em var(--confirmation-dialog-shadow-color);
|
|
963
|
+
}
|
|
964
|
+
.confirmation-content {
|
|
965
|
+
padding: 1.5em;
|
|
966
|
+
}
|
|
967
|
+
.confirmation-title {
|
|
968
|
+
margin-bottom: 0.5rem;
|
|
969
|
+
font-weight: 600;
|
|
970
|
+
color: var(--confirmation-title-color);
|
|
971
|
+
font-size: var(--confirmation-title-font-size);
|
|
972
|
+
}
|
|
973
|
+
.confirmation-message {
|
|
974
|
+
margin-bottom: 1rem;
|
|
975
|
+
color: var(--confirmation-message-color);
|
|
976
|
+
font-size: var(--confirmation-message-font-size);
|
|
977
|
+
}
|
|
978
|
+
.confirmation-buttons {
|
|
979
|
+
display: flex;
|
|
980
|
+
justify-content: flex-end;
|
|
981
|
+
gap: 0.75em;
|
|
982
|
+
}
|
|
983
|
+
.confirmation-button {
|
|
984
|
+
border-radius: 0.375rem;
|
|
985
|
+
font-weight: 500;
|
|
986
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
987
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
988
|
+
transition-duration: 200ms;
|
|
989
|
+
padding: 0.5em 1em;
|
|
990
|
+
}
|
|
991
|
+
.confirmation-button-cancel {
|
|
992
|
+
background-color: var(--confirmation-button-cancel-bg-color);
|
|
993
|
+
color: var(--confirmation-button-cancel-text-color);
|
|
994
|
+
}
|
|
995
|
+
.confirmation-button-cancel:hover {
|
|
996
|
+
background-color: var(--confirmation-button-cancel-bg-hover-color);
|
|
997
|
+
}
|
|
998
|
+
.confirmation-button-confirm {
|
|
999
|
+
background-color: var(--confirmation-button-confirm-bg-color);
|
|
1000
|
+
color: var(--confirmation-button-confirm-text-color);
|
|
1001
|
+
}
|
|
1002
|
+
.confirmation-button-confirm:hover {
|
|
1003
|
+
background-color: var(--confirmation-button-confirm-bg-hover-color);
|
|
1004
|
+
}
|
|
1005
|
+
.\!visible {
|
|
1006
|
+
visibility: visible !important;
|
|
1007
|
+
}
|
|
950
1008
|
.visible {
|
|
951
1009
|
visibility: visible;
|
|
952
1010
|
}
|
|
@@ -962,6 +1020,9 @@ video {
|
|
|
962
1020
|
.table {
|
|
963
1021
|
display: table;
|
|
964
1022
|
}
|
|
1023
|
+
.hidden {
|
|
1024
|
+
display: none;
|
|
1025
|
+
}
|
|
965
1026
|
.w-full {
|
|
966
1027
|
width: 100%;
|
|
967
1028
|
}
|
|
@@ -977,6 +1038,14 @@ video {
|
|
|
977
1038
|
.justify-center {
|
|
978
1039
|
justify-content: center;
|
|
979
1040
|
}
|
|
1041
|
+
.gap-\[0\.5em\] {
|
|
1042
|
+
gap: 0.5em;
|
|
1043
|
+
}
|
|
1044
|
+
.space-y-\[0\.25em\] > :not([hidden]) ~ :not([hidden]) {
|
|
1045
|
+
--tw-space-y-reverse: 0;
|
|
1046
|
+
margin-top: calc(0.25em * calc(1 - var(--tw-space-y-reverse)));
|
|
1047
|
+
margin-bottom: calc(0.25em * var(--tw-space-y-reverse));
|
|
1048
|
+
}
|
|
980
1049
|
.border {
|
|
981
1050
|
border-width: 1px;
|
|
982
1051
|
}
|
|
@@ -1002,10 +1071,12 @@ video {
|
|
|
1002
1071
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
1003
1072
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1004
1073
|
}
|
|
1074
|
+
.filter {
|
|
1075
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1076
|
+
}
|
|
1005
1077
|
:host {
|
|
1006
1078
|
/**
|
|
1007
1079
|
* @prop --chat-z-index: Z-index for chat widget (50)
|
|
1008
|
-
* @prop --container-padding: General container padding (1em)
|
|
1009
1080
|
*
|
|
1010
1081
|
* @prop --button-background-color: Button background color (#ffffff)
|
|
1011
1082
|
* @prop --button-background-color-hover: Button background color on hover (#f3f4f6)
|
|
@@ -1013,7 +1084,6 @@ video {
|
|
|
1013
1084
|
* @prop --button-text-color-hover: Button text color on hover (#1d4ed8)
|
|
1014
1085
|
* @prop --button-border-color: Button border color (#6b7280)
|
|
1015
1086
|
* @prop --button-border-color-hover: Button border color on hover (#374151)
|
|
1016
|
-
* @prop --button-padding: Button padding (0.75em)
|
|
1017
1087
|
* @prop --button-font-size: Button text font size (0.875em)
|
|
1018
1088
|
* @prop --button-icon-size: Button icon size (1.5em)
|
|
1019
1089
|
*
|
|
@@ -1031,7 +1101,6 @@ video {
|
|
|
1031
1101
|
* @prop --header-border-color: Header border color (#f3f4f6)
|
|
1032
1102
|
* @prop --header-button-text-color: Header button text color (#6b7280)
|
|
1033
1103
|
* @prop --header-button-bg-hover-color: Header button background on hover (#f3f4f6)
|
|
1034
|
-
* @prop --header-padding: Header padding (0.5em)
|
|
1035
1104
|
* @prop --header-font-size: Header font size (1em)
|
|
1036
1105
|
* @prop --header-button-icon-size: Icon size for buttons in the header (1.5em)
|
|
1037
1106
|
* @prop --header-text-font-size: Font size for the text in the header (1em)
|
|
@@ -1042,34 +1111,33 @@ video {
|
|
|
1042
1111
|
* @prop --starter-question-text-color: Starter question text color (#3b82f6)
|
|
1043
1112
|
* @prop --starter-question-border-color: Starter question border color (#3b82f6)
|
|
1044
1113
|
* @prop --starter-question-border-hover-color: Starter question border on hover (#2563eb)
|
|
1045
|
-
* @prop --starter-question-padding: Starter question padding (0.75em)
|
|
1046
1114
|
*
|
|
1047
|
-
* @prop --message-user-bg-color: User message background color (#
|
|
1048
|
-
* @prop --message-user-text-color: User message text color (#
|
|
1049
|
-
* @prop --message-
|
|
1050
|
-
|
|
1051
|
-
* @prop --message-
|
|
1052
|
-
* @prop --message-
|
|
1115
|
+
* @prop --message-user-bg-color: User message background color (#e4edfb)
|
|
1116
|
+
* @prop --message-user-text-color: User message text color (#1f2937)
|
|
1117
|
+
* @prop --message-user-link-color: User message link color (#155dfc)
|
|
1118
|
+
|
|
1119
|
+
* @prop --message-assistant-bg-color: Assistant message background color (#eae7e8)
|
|
1120
|
+
* @prop --message-assistant-text-color: Assistant message text color (--message-user-text-color)
|
|
1121
|
+
* @prop --message-assistant-link-color: Assistant message link color (--message-user-link-color)
|
|
1122
|
+
|
|
1123
|
+
* @prop --message-system-bg-color: System message background color (#fbe4f8)
|
|
1124
|
+
* @prop --message-system-text-color: System message text color (--message-user-text-color)
|
|
1125
|
+
* @prop --message-system-link-color: System message link color (--message-user-link-color)
|
|
1126
|
+
|
|
1053
1127
|
* @prop --message-timestamp-color: User message timestamp color (rgba(255, 255, 255, 0.7))
|
|
1054
1128
|
* @prop --message-timestamp-assistant-color: Assistant message timestamp color (rgba(75, 85, 99, 0.7))
|
|
1055
|
-
* @prop --message-padding-x: Message horizontal padding (1em)
|
|
1056
|
-
* @prop --message-padding-y: Message vertical padding (0.5em)
|
|
1057
1129
|
*
|
|
1058
1130
|
* @prop --input-bg-color: Input area background color (transparent)
|
|
1059
1131
|
* @prop --input-border-color: Input field border color (#d1d5db)
|
|
1060
1132
|
* @prop --input-text-color: Input text color (#111827)
|
|
1061
1133
|
* @prop --input-placeholder-color: Input placeholder text color (#6b7280)
|
|
1062
1134
|
* @prop --input-outline-focus-color: Input field focus ring color (#3b82f6)
|
|
1063
|
-
* @prop --input-textarea-padding-x: Input textarea horizontal padding (0.75em)
|
|
1064
|
-
* @prop --input-textarea-padding-y: Input textarea vertical padding (0.5em)
|
|
1065
1135
|
*
|
|
1066
1136
|
* @prop --send-button-bg-color: Send button background color (#3b82f6)
|
|
1067
1137
|
* @prop --send-button-bg-hover-color: Send button background on hover (#2563eb)
|
|
1068
1138
|
* @prop --send-button-text-color: Send button text color (#ffffff)
|
|
1069
1139
|
* @prop --send-button-bg-disabled-color: Send button background when disabled (#d1d5db)
|
|
1070
1140
|
* @prop --send-button-text-disabled-color: Send button text when disabled (#6b7280)
|
|
1071
|
-
* @prop --send-button-padding-x: Send button horizontal padding (1em)
|
|
1072
|
-
* @prop --send-button-padding-y: Send button vertical padding (0.5em)
|
|
1073
1141
|
*
|
|
1074
1142
|
* @prop --loading-text-color: Loading text color (#6b7280)
|
|
1075
1143
|
* @prop --loading-spinner-track-color: Loading spinner track color (#e5e7eb)
|
|
@@ -1083,7 +1151,7 @@ video {
|
|
|
1083
1151
|
* @prop --scrollbar-thumb-hover-color: Scrollbar thumb hover color (#9ca3af)
|
|
1084
1152
|
*
|
|
1085
1153
|
* @prop --error-text-color: Error text color (#ef4444)
|
|
1086
|
-
* @prop --
|
|
1154
|
+
* @prop --success-text-color: Success text color (#10b981)
|
|
1087
1155
|
*
|
|
1088
1156
|
* @prop --code-bg-user-color: Code background in user messages (--message-user-bg-color + 20% white)
|
|
1089
1157
|
* @prop --code-text-user-color: Code text color in user messages (--message-user-text-color)
|
|
@@ -1091,20 +1159,50 @@ video {
|
|
|
1091
1159
|
* @prop --code-bg-assistant-color: Code background in assistant messages (--message-assistant-bg-color + 50% white)
|
|
1092
1160
|
* @prop --code-text-assistant-color: Code text color in assistant messages (--message-assistant-text-color)
|
|
1093
1161
|
* @prop --code-border-assistant-color: Code border in assistant messages (--message-assistant-bg-color + 10% black)
|
|
1162
|
+
*
|
|
1163
|
+
* @prop --confirmation-overlay-bg-color: Confirmation dialog overlay background color (rgba(0, 0, 0, 0.5))
|
|
1164
|
+
* @prop --confirmation-dialog-bg-color: Confirmation dialog background color (uses --chat-window-bg-color)
|
|
1165
|
+
* @prop --confirmation-dialog-border-color: Confirmation dialog border color (uses --chat-window-border-color)
|
|
1166
|
+
* @prop --confirmation-dialog-shadow-color: Confirmation dialog shadow color (uses --chat-window-shadow-color)
|
|
1167
|
+
* @prop --confirmation-title-color: Confirmation dialog title text color (uses #111827)
|
|
1168
|
+
* @prop --confirmation-title-font-size: Confirmation dialog title font size (1.125em)
|
|
1169
|
+
* @prop --confirmation-message-color: Confirmation dialog message text color (uses --loading-text-color)
|
|
1170
|
+
* @prop --confirmation-message-font-size: Confirmation dialog message font size (uses 1em)
|
|
1171
|
+
* @prop --confirmation-button-cancel-bg-color: Cancel button background color (uses --button-background-color-hover)
|
|
1172
|
+
* @prop --confirmation-button-cancel-bg-hover-color: Cancel button background on hover (uses #e5e7eb)
|
|
1173
|
+
* @prop --confirmation-button-cancel-text-color: Cancel button text color (uses --header-button-text-color)
|
|
1174
|
+
* @prop --confirmation-button-confirm-bg-color: Confirm button background color (uses --error-text-color)
|
|
1175
|
+
* @prop --confirmation-button-confirm-bg-hover-color: Confirm button background on hover (uses --error-text-color)
|
|
1176
|
+
* @prop --confirmation-button-confirm-text-color: Confirm button text color (uses --send-button-text-color)
|
|
1177
|
+
* @prop --file-attachment-button-bg-color: Attach file button background color (transparent)
|
|
1178
|
+
* @prop --file-attachment-button-bg-hover-color: Attach file button background hover color (--header-button-bg-hover-color)
|
|
1179
|
+
* @prop --file-attachment-button-text-color: Attach file button text color (--header-button-text-color)
|
|
1180
|
+
* @prop --file-attachment-button-text-disabled-color: Attach file button disabled text color (--send-button-text-disabled-color)
|
|
1181
|
+
*
|
|
1182
|
+
* @prop --selected-files-bg-color: Selected files container background color (--chat-window-bg-color)
|
|
1183
|
+
* @prop --selected-files-border-color: Selected files container border color (--header-border-color)
|
|
1184
|
+
*
|
|
1185
|
+
* @prop --selected-file-bg-color: Selected file item background color (--message-system-bg-color)
|
|
1186
|
+
* @prop --selected-file-font-size: Selected file item font size (--chat-window-font-size-sm)
|
|
1187
|
+
* @prop --selected-file-name-color: Selected file name color (--message-assistant-text-color)
|
|
1188
|
+
* @prop --selected-file-size-color: Selected file size display color (--input-placeholder-color)
|
|
1189
|
+
* @prop --selected-file-icon-size: Selected file item icon size (1.25em)
|
|
1190
|
+
* @prop --selected-file-remove-icon-color: Selected file remove icon color (--error-text-color)
|
|
1191
|
+
* @prop --selected-file-remove-icon-hover-color: Selected file remove icon hover (#dc2626)
|
|
1192
|
+
*
|
|
1193
|
+
* @prop --message-attachment-icon-size: Message attachment icon size (1em)
|
|
1094
1194
|
*/
|
|
1095
1195
|
/* Global variables */
|
|
1096
1196
|
--chat-z-index: 50;
|
|
1097
|
-
--container-padding: 1em;
|
|
1098
1197
|
|
|
1099
1198
|
/* Button variables */
|
|
1100
1199
|
--button-background-color: #ffffff;
|
|
1101
1200
|
--button-background-color-hover: #f3f4f6;
|
|
1102
1201
|
--button-text-color: #111827;
|
|
1103
1202
|
--button-text-color-hover: #1d4ed8;
|
|
1104
|
-
--button-border-color:
|
|
1105
|
-
--button-border-color-hover: #
|
|
1106
|
-
--button-
|
|
1107
|
-
--button-font-size: 0.875em; /* text-sm */
|
|
1203
|
+
--button-border-color: #d1d5db;
|
|
1204
|
+
--button-border-color-hover: #6b7280;
|
|
1205
|
+
--button-font-size: 1em; /* text-sm */
|
|
1108
1206
|
--button-icon-size: 1.5em;
|
|
1109
1207
|
|
|
1110
1208
|
/* Chat window variables */
|
|
@@ -1123,7 +1221,6 @@ video {
|
|
|
1123
1221
|
--header-border-color: #f3f4f6;
|
|
1124
1222
|
--header-button-text-color: #6b7280;
|
|
1125
1223
|
--header-button-bg-hover-color: #f3f4f6;
|
|
1126
|
-
--header-padding: 0.5em;
|
|
1127
1224
|
--header-font-size: 1em;
|
|
1128
1225
|
--header-text-font-size: 1em;
|
|
1129
1226
|
--header-text-color: #525762;
|
|
@@ -1135,19 +1232,22 @@ video {
|
|
|
1135
1232
|
--starter-question-text-color: #3b82f6;
|
|
1136
1233
|
--starter-question-border-color: #3b82f6;
|
|
1137
1234
|
--starter-question-border-hover-color: #2563eb;
|
|
1138
|
-
--starter-question-padding: 0.75em;
|
|
1139
1235
|
|
|
1140
1236
|
/* Message bubble variables */
|
|
1141
|
-
--message-user-bg-color: #
|
|
1142
|
-
--message-user-text-color: #
|
|
1143
|
-
--message-
|
|
1144
|
-
|
|
1145
|
-
--message-
|
|
1146
|
-
--message-
|
|
1237
|
+
--message-user-bg-color: #e4edfb;
|
|
1238
|
+
--message-user-text-color: #1f2937;
|
|
1239
|
+
--message-user-link-color: #155dfc;
|
|
1240
|
+
|
|
1241
|
+
--message-assistant-bg-color: #eae7e8;
|
|
1242
|
+
--message-assistant-text-color: var(--message-user-text-color);
|
|
1243
|
+
--message-assistant-link-color: var(--message-user-link-color);
|
|
1244
|
+
|
|
1245
|
+
--message-system-bg-color: #fbe4f8;
|
|
1246
|
+
--message-system-text-color: var(--message-user-text-color);
|
|
1247
|
+
--message-system-link-color: var(--message-user-link-color);
|
|
1248
|
+
|
|
1147
1249
|
--message-timestamp-color: rgba(255, 255, 255, 0.7);
|
|
1148
1250
|
--message-timestamp-assistant-color: rgba(75, 85, 99, 0.7);
|
|
1149
|
-
--message-padding-x: 1em;
|
|
1150
|
-
--message-padding-y: 0.5em;
|
|
1151
1251
|
|
|
1152
1252
|
/* Input area variables */
|
|
1153
1253
|
--input-bg-color: transparent;
|
|
@@ -1155,8 +1255,6 @@ video {
|
|
|
1155
1255
|
--input-text-color: #111827;
|
|
1156
1256
|
--input-placeholder-color: #6b7280;
|
|
1157
1257
|
--input-outline-focus-color: #3b82f6;
|
|
1158
|
-
--input-textarea-padding-x: 0.75em;
|
|
1159
|
-
--input-textarea-padding-y: 0.5em;
|
|
1160
1258
|
|
|
1161
1259
|
/* Send button variables */
|
|
1162
1260
|
--send-button-bg-color: #3b82f6;
|
|
@@ -1164,8 +1262,6 @@ video {
|
|
|
1164
1262
|
--send-button-text-color: #ffffff;
|
|
1165
1263
|
--send-button-bg-disabled-color: #d1d5db;
|
|
1166
1264
|
--send-button-text-disabled-color: #6b7280;
|
|
1167
|
-
--send-button-padding-x: 1em;
|
|
1168
|
-
--send-button-padding-y: 0.5em;
|
|
1169
1265
|
|
|
1170
1266
|
/* Loading variables */
|
|
1171
1267
|
--loading-text-color: #6b7280;
|
|
@@ -1183,7 +1279,7 @@ video {
|
|
|
1183
1279
|
|
|
1184
1280
|
/* Error variables */
|
|
1185
1281
|
--error-text-color: #ef4444;
|
|
1186
|
-
--
|
|
1282
|
+
--success-text-color: #10b981; /* Complementary green to existing blue palette */;
|
|
1187
1283
|
|
|
1188
1284
|
/* Markdown code variables */
|
|
1189
1285
|
--code-bg-user-color: color-mix(in srgb, var(--message-user-bg-color) 80%, white 20%);
|
|
@@ -1193,10 +1289,51 @@ video {
|
|
|
1193
1289
|
--code-text-assistant-color: var(--message-assistant-text-color);
|
|
1194
1290
|
--code-border-assistant-color: color-mix(in srgb, var(--message-assistant-bg-color) 90%, black 10%);;
|
|
1195
1291
|
|
|
1292
|
+
--confirmation-overlay-bg-color: rgba(0, 0, 0, 0.5);
|
|
1293
|
+
--confirmation-dialog-bg-color: var(--chat-window-bg-color);
|
|
1294
|
+
--confirmation-dialog-border-color: var(--chat-window-border-color);
|
|
1295
|
+
--confirmation-dialog-shadow-color: var(--chat-window-shadow-color);
|
|
1296
|
+
--confirmation-title-color: #111827;
|
|
1297
|
+
--confirmation-title-font-size: 1.125em;
|
|
1298
|
+
--confirmation-message-color: var(--loading-text-color);
|
|
1299
|
+
--confirmation-message-font-size: 1em;
|
|
1300
|
+
--confirmation-button-cancel-bg-color: var(--button-background-color-hover);
|
|
1301
|
+
--confirmation-button-cancel-bg-hover-color: #e5e7eb;
|
|
1302
|
+
--confirmation-button-cancel-text-color: var(--header-button-text-color);
|
|
1303
|
+
--confirmation-button-confirm-bg-color: var(--error-text-color);
|
|
1304
|
+
--confirmation-button-confirm-bg-hover-color: var(--error-text-color);
|
|
1305
|
+
--confirmation-button-confirm-text-color: var(--send-button-text-color);
|
|
1306
|
+
|
|
1307
|
+
/* File upload variables */
|
|
1308
|
+
--file-attachment-button-bg-color: transparent;
|
|
1309
|
+
--file-attachment-button-bg-hover-color: var(--header-button-bg-hover-color); /* #f3f4f6 */
|
|
1310
|
+
--file-attachment-button-text-color: var(--header-button-text-color); /* #6b7280 */
|
|
1311
|
+
--file-attachment-button-text-disabled-color: var(--send-button-text-disabled-color); /* #6b7280 */
|
|
1312
|
+
|
|
1313
|
+
/* Selected files variables */
|
|
1314
|
+
--selected-files-bg-color: var(--chat-window-bg-color); /* transparent */
|
|
1315
|
+
--selected-files-border-color: var(--header-border-color); /* #f3f4f6 */
|
|
1316
|
+
|
|
1317
|
+
/* Selected file item variables */
|
|
1318
|
+
--selected-file-bg-color: var(--message-system-bg-color); /* #f3f4f6 */
|
|
1319
|
+
|
|
1320
|
+
/* Selected file text variables */
|
|
1321
|
+
--selected-file-font-size: var(--chat-window-font-size-sm);
|
|
1322
|
+
--selected-file-name-color: var(--message-assistant-text-color); /* #1f2937 */
|
|
1323
|
+
--selected-file-size-color: var(--input-placeholder-color); /* #6b7280 */
|
|
1324
|
+
|
|
1325
|
+
/* Selected file icon variables */
|
|
1326
|
+
--selected-file-icon-size: 1.25em;
|
|
1327
|
+
--selected-file-remove-icon-color: var(--error-text-color); /* #ef4444 */
|
|
1328
|
+
--selected-file-remove-icon-hover-color: #dc2626; /* Darker red for hover */
|
|
1329
|
+
|
|
1330
|
+
/* Message attachment variables */
|
|
1331
|
+
--message-attachment-icon-size: 1em;
|
|
1332
|
+
|
|
1196
1333
|
display: block;
|
|
1197
1334
|
position: fixed;
|
|
1198
|
-
right:
|
|
1199
|
-
bottom:
|
|
1335
|
+
right: 30px;
|
|
1336
|
+
bottom: 30px;
|
|
1200
1337
|
}
|
|
1201
1338
|
textarea {
|
|
1202
1339
|
max-height: 8rem;
|
|
@@ -1218,10 +1355,6 @@ textarea::-webkit-scrollbar-thumb {
|
|
|
1218
1355
|
textarea::-webkit-scrollbar-thumb:hover {
|
|
1219
1356
|
background-color: var(--scrollbar-thumb-hover-color);
|
|
1220
1357
|
}
|
|
1221
|
-
.loading-spinner {
|
|
1222
|
-
width: var(--loading-spinner-size);
|
|
1223
|
-
height: var(--loading-spinner-size);
|
|
1224
|
-
}
|
|
1225
1358
|
@keyframes spin {
|
|
1226
1359
|
|
|
1227
1360
|
to {
|
|
@@ -1234,6 +1367,8 @@ textarea::-webkit-scrollbar-thumb:hover {
|
|
|
1234
1367
|
border-width: 2px;
|
|
1235
1368
|
border-color: var(--loading-spinner-track-color);
|
|
1236
1369
|
border-top-color: var(--loading-spinner-fill-color);
|
|
1370
|
+
width: var(--loading-spinner-size);
|
|
1371
|
+
height: var(--loading-spinner-size);
|
|
1237
1372
|
}
|
|
1238
1373
|
.overflow-y-auto::-webkit-scrollbar {
|
|
1239
1374
|
width: 0.375rem;
|
|
@@ -1904,11 +2039,26 @@ textarea::-webkit-scrollbar-thumb:hover {
|
|
|
1904
2039
|
--tw-prose-invert-th-borders: #4b5563;
|
|
1905
2040
|
--tw-prose-invert-td-borders: #374151;
|
|
1906
2041
|
max-width: none;
|
|
2042
|
+
}
|
|
2043
|
+
.chat-markdown :is(:where(a):not(:where([class~="not-prose"],[class~="not-prose"] *))) {
|
|
2044
|
+
text-decoration-line: none;
|
|
2045
|
+
}
|
|
2046
|
+
.chat-markdown :is(:where(a):not(:where([class~="not-prose"],[class~="not-prose"] *))):hover {
|
|
2047
|
+
text-decoration-line: underline;
|
|
2048
|
+
}
|
|
2049
|
+
.chat-markdown {
|
|
1907
2050
|
font-size: 1em;
|
|
2051
|
+
}
|
|
2052
|
+
/* override spacing */
|
|
2053
|
+
.chat-markdown > * {
|
|
2054
|
+
margin-top: 0.1em;
|
|
2055
|
+
margin-bottom: 0.1em;
|
|
2056
|
+
}
|
|
2057
|
+
.message-bubble-assistant .chat-markdown {
|
|
1908
2058
|
--tw-prose-body: var(--message-assistant-text-color);
|
|
1909
2059
|
--tw-prose-headings: var(--message-assistant-text-color);
|
|
1910
2060
|
--tw-prose-lead: var(--message-assistant-text-color);
|
|
1911
|
-
--tw-prose-links: var(--message-assistant-
|
|
2061
|
+
--tw-prose-links: var(--message-assistant-link-color);
|
|
1912
2062
|
--tw-prose-bold: var(--message-assistant-text-color);
|
|
1913
2063
|
--tw-prose-counters: var(--message-assistant-text-color);
|
|
1914
2064
|
--tw-prose-bullets: var(--message-assistant-text-color);
|
|
@@ -1923,50 +2073,46 @@ textarea::-webkit-scrollbar-thumb:hover {
|
|
|
1923
2073
|
--tw-prose-pre-bg: var(--code-bg-assistant-color);
|
|
1924
2074
|
--tw-prose-th-borders: var(--message-assistant-text-color);
|
|
1925
2075
|
--tw-prose-td-borders: var(--message-assistant-text-color);
|
|
1926
|
-
|
|
1927
|
-
--tw-prose-invert-body: var(--message-user-text-color);
|
|
1928
|
-
--tw-prose-invert-headings: var(--message-user-text-color);
|
|
1929
|
-
--tw-prose-invert-lead: var(--message-user-text-color);
|
|
1930
|
-
--tw-prose-invert-links: var(--message-user-text-color);
|
|
1931
|
-
--tw-prose-invert-bold: var(--message-user-text-color);
|
|
1932
|
-
--tw-prose-invert-counters: var(--message-user-text-color);
|
|
1933
|
-
--tw-prose-invert-bullets: var(--message-user-text-color);
|
|
1934
|
-
--tw-prose-invert-hr: var(--message-user-text-color);
|
|
1935
|
-
--tw-prose-invert-quotes: var(--message-user-text-color);
|
|
1936
|
-
--tw-prose-invert-quote-borders: var(--message-user-text-color);
|
|
1937
|
-
--tw-prose-invert-captions: var(--message-user-text-color);
|
|
1938
|
-
--tw-prose-invert-kbd: var(--message-user-text-color);
|
|
1939
|
-
--tw-prose-invert-kbd-shadows: var(--message-user-text-color);
|
|
1940
|
-
--tw-prose-invert-code: var(--code-text-user-color);
|
|
1941
|
-
--tw-prose-invert-pre-code: var(--code-text-user-color);
|
|
1942
|
-
--tw-prose-invert-pre-bg: var(--code-bg-user-color);
|
|
1943
|
-
--tw-prose-invert-th-borders: var(--message-user-text-color);
|
|
1944
|
-
--tw-prose-invert-td-borders: var(--message-user-text-color);
|
|
1945
|
-
}
|
|
1946
|
-
/* override spacing */
|
|
1947
|
-
.chat-markdown > * {
|
|
1948
|
-
margin-top: 0.1em;
|
|
1949
|
-
margin-bottom: 0.1em;
|
|
1950
2076
|
}
|
|
1951
2077
|
.message-bubble-user .chat-markdown {
|
|
1952
|
-
--tw-prose-body: var(--
|
|
1953
|
-
--tw-prose-headings: var(--
|
|
1954
|
-
--tw-prose-lead: var(--
|
|
1955
|
-
--tw-prose-links: var(--
|
|
1956
|
-
--tw-prose-bold: var(--
|
|
1957
|
-
--tw-prose-counters: var(--
|
|
1958
|
-
--tw-prose-bullets: var(--
|
|
1959
|
-
--tw-prose-hr: var(--
|
|
1960
|
-
--tw-prose-quotes: var(--
|
|
1961
|
-
--tw-prose-quote-borders: var(--
|
|
1962
|
-
--tw-prose-captions: var(--
|
|
1963
|
-
--tw-prose-kbd: var(--
|
|
1964
|
-
--tw-prose-kbd-shadows: var(--
|
|
1965
|
-
--tw-prose-code: var(--
|
|
1966
|
-
--tw-prose-pre-code: var(--
|
|
1967
|
-
--tw-prose-pre-bg: var(--
|
|
1968
|
-
--tw-prose-th-borders: var(--
|
|
1969
|
-
--tw-prose-td-borders: var(--
|
|
2078
|
+
--tw-prose-body: var(--message-user-text-color);
|
|
2079
|
+
--tw-prose-headings: var(--message-user-text-color);
|
|
2080
|
+
--tw-prose-lead: var(--message-user-text-color);
|
|
2081
|
+
--tw-prose-links: var(--message-user-link-color);
|
|
2082
|
+
--tw-prose-bold: var(--message-user-text-color);
|
|
2083
|
+
--tw-prose-counters: var(--message-user-text-color);
|
|
2084
|
+
--tw-prose-bullets: var(--message-user-text-color);
|
|
2085
|
+
--tw-prose-hr: var(--message-user-text-color);
|
|
2086
|
+
--tw-prose-quotes: var(--message-user-text-color);
|
|
2087
|
+
--tw-prose-quote-borders: var(--message-user-text-color);
|
|
2088
|
+
--tw-prose-captions: var(--message-user-text-color);
|
|
2089
|
+
--tw-prose-kbd: var(--message-user-text-color);
|
|
2090
|
+
--tw-prose-kbd-shadows: var(--message-user-text-color);
|
|
2091
|
+
--tw-prose-code: var(--code-text-user-color);
|
|
2092
|
+
--tw-prose-pre-code: var(--code-text-user-color);
|
|
2093
|
+
--tw-prose-pre-bg: var(--code-bg-user-color);
|
|
2094
|
+
--tw-prose-th-borders: var(--message-user-text-color);
|
|
2095
|
+
--tw-prose-td-borders: var(--message-user-text-color);
|
|
2096
|
+
}
|
|
2097
|
+
.message-bubble-system .chat-markdown {
|
|
2098
|
+
--tw-prose-body: var(--message-system-text-color);
|
|
2099
|
+
--tw-prose-headings: var(--message-system-text-color);
|
|
2100
|
+
--tw-prose-lead: var(--message-system-text-color);
|
|
2101
|
+
--tw-prose-links: var(--message-system-link-color);
|
|
2102
|
+
--tw-prose-bold: var(--message-system-text-color);
|
|
2103
|
+
--tw-prose-counters: var(--message-system-text-color);
|
|
2104
|
+
--tw-prose-bullets: var(--message-system-text-color);
|
|
2105
|
+
--tw-prose-hr: var(--message-system-text-color);
|
|
2106
|
+
--tw-prose-quotes: var(--message-system-text-color);
|
|
2107
|
+
--tw-prose-quote-borders: var(--message-system-text-color);
|
|
2108
|
+
--tw-prose-captions: var(--message-system-text-color);
|
|
2109
|
+
--tw-prose-kbd: var(--message-system-text-color);
|
|
2110
|
+
--tw-prose-kbd-shadows: var(--message-system-text-color);
|
|
2111
|
+
--tw-prose-code: var(--message-system-text-color);
|
|
2112
|
+
--tw-prose-pre-code: var(--message-system-text-color);
|
|
2113
|
+
--tw-prose-pre-bg: var(--message-system-text-color);
|
|
2114
|
+
--tw-prose-th-borders: var(--message-system-text-color);
|
|
2115
|
+
--tw-prose-td-borders: var(--message-system-text-color);
|
|
1970
2116
|
}
|
|
1971
2117
|
.message-bubble-user .chat-markdown pre {
|
|
1972
2118
|
border: 1px solid var(--code-border-user-color);
|
|
@@ -1977,3 +2123,109 @@ textarea::-webkit-scrollbar-thumb:hover {
|
|
|
1977
2123
|
.loading:after {
|
|
1978
2124
|
content: ' .';
|
|
1979
2125
|
}
|
|
2126
|
+
/* File Upload Button */
|
|
2127
|
+
.file-attachment-button {
|
|
2128
|
+
border-radius: 0.375rem;
|
|
2129
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
2130
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2131
|
+
transition-duration: 200ms;
|
|
2132
|
+
}
|
|
2133
|
+
.file-attachment-button:disabled {
|
|
2134
|
+
cursor: not-allowed;
|
|
2135
|
+
opacity: 0.5;
|
|
2136
|
+
}
|
|
2137
|
+
.file-attachment-button {
|
|
2138
|
+
padding: 0.375em;
|
|
2139
|
+
background-color: var(--file-attachment-button-bg-color);
|
|
2140
|
+
color: var(--file-attachment-button-text-color);
|
|
2141
|
+
}
|
|
2142
|
+
.file-attachment-button svg {
|
|
2143
|
+
width: 1.5em;
|
|
2144
|
+
height: 1.5em;
|
|
2145
|
+
}
|
|
2146
|
+
.file-attachment-button:hover:not(:disabled) {
|
|
2147
|
+
background-color: var(--file-attachment-button-bg-hover-color);
|
|
2148
|
+
}
|
|
2149
|
+
.file-attachment-button:disabled {
|
|
2150
|
+
color: var(--file-attachment-button-text-disabled-color);
|
|
2151
|
+
}
|
|
2152
|
+
/* Selected Files Container */
|
|
2153
|
+
.selected-files-container {
|
|
2154
|
+
padding: 1em 1em 0.5em 1em;
|
|
2155
|
+
background-color: var(--selected-files-bg-color);
|
|
2156
|
+
border-top: 1px solid var(--selected-files-border-color);
|
|
2157
|
+
}
|
|
2158
|
+
/* Selected File Item */
|
|
2159
|
+
.selected-file-item {
|
|
2160
|
+
display: flex;
|
|
2161
|
+
align-items: center;
|
|
2162
|
+
justify-content: space-between;
|
|
2163
|
+
background-color: var(--selected-file-bg-color);
|
|
2164
|
+
border-radius: 0.375em;
|
|
2165
|
+
padding: 0.25em 0.5em;
|
|
2166
|
+
font-size: var(--selected-file-font-size);
|
|
2167
|
+
color: var(--selected-file-name-color);
|
|
2168
|
+
}
|
|
2169
|
+
.selected-file-icon {
|
|
2170
|
+
display: flex;
|
|
2171
|
+
align-items: center;
|
|
2172
|
+
justify-content: center;
|
|
2173
|
+
}
|
|
2174
|
+
.selected-file-icon svg {
|
|
2175
|
+
width: var(--selected-file-icon-size);
|
|
2176
|
+
height: var(--selected-file-icon-size);
|
|
2177
|
+
}
|
|
2178
|
+
.selected-file-size {
|
|
2179
|
+
color: var(--selected-file-size-color);
|
|
2180
|
+
}
|
|
2181
|
+
.selected-file-error {
|
|
2182
|
+
color: var(--error-text-color);
|
|
2183
|
+
}
|
|
2184
|
+
.selected-file-success-icon {
|
|
2185
|
+
display: flex;
|
|
2186
|
+
align-items: center;
|
|
2187
|
+
justify-content: center;
|
|
2188
|
+
color: var(--success-text-color);
|
|
2189
|
+
width: var(--selected-file-icon-size);
|
|
2190
|
+
height: var(--selected-file-icon-size);
|
|
2191
|
+
}
|
|
2192
|
+
.selected-file-remove-button {
|
|
2193
|
+
font-weight: 700;
|
|
2194
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
2195
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2196
|
+
transition-duration: 200ms;
|
|
2197
|
+
color: var(--selected-file-remove-icon-color);
|
|
2198
|
+
padding: 0.375em;
|
|
2199
|
+
}
|
|
2200
|
+
.selected-file-remove-button svg {
|
|
2201
|
+
width: var(--selected-file-icon-size);
|
|
2202
|
+
height: var(--selected-file-icon-size);
|
|
2203
|
+
}
|
|
2204
|
+
.selected-file-remove-button:hover {
|
|
2205
|
+
color: var(--selected-file-remove-icon-hover-color);
|
|
2206
|
+
}
|
|
2207
|
+
/* Message Attachments */
|
|
2208
|
+
.message-attachments {
|
|
2209
|
+
margin-top: 0.5em;
|
|
2210
|
+
}
|
|
2211
|
+
.message-attachments > :not([hidden]) ~ :not([hidden]) {
|
|
2212
|
+
--tw-space-y-reverse: 0;
|
|
2213
|
+
margin-top: calc(0.25em * calc(1 - var(--tw-space-y-reverse)));
|
|
2214
|
+
margin-bottom: calc(0.25em * var(--tw-space-y-reverse));
|
|
2215
|
+
}
|
|
2216
|
+
.message-attachments {
|
|
2217
|
+
font-size: var(--chat-window-font-size-sm);
|
|
2218
|
+
}
|
|
2219
|
+
.message-attachment-icon {
|
|
2220
|
+
display: flex;
|
|
2221
|
+
align-items: center;
|
|
2222
|
+
justify-content: center;
|
|
2223
|
+
width: var(--message-attachment-icon-size);
|
|
2224
|
+
height: var(--message-attachment-icon-size);
|
|
2225
|
+
}
|
|
2226
|
+
/* Update Send Button for Upload State */
|
|
2227
|
+
.send-button-disabled {
|
|
2228
|
+
cursor: not-allowed;
|
|
2229
|
+
background-color: var(--send-button-bg-disabled-color);
|
|
2230
|
+
color: var(--send-button-text-disabled-color);
|
|
2231
|
+
}
|