rte-builder 1.0.0 → 2.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.
package/dist/index.css CHANGED
@@ -577,4 +577,1001 @@
577
577
  .rte-builder-content [style*=margin-left] {
578
578
  transition: margin-left 0.15s ease;
579
579
  }
580
+
581
+ /* src/styles/collaboration.css */
582
+ .rte-presence-indicator {
583
+ display: flex;
584
+ align-items: center;
585
+ gap: 12px;
586
+ padding: 8px 12px;
587
+ background: #f9fafb;
588
+ border-bottom: 1px solid #e5e7eb;
589
+ }
590
+ .rte-presence-status {
591
+ display: flex;
592
+ align-items: center;
593
+ gap: 6px;
594
+ font-size: 12px;
595
+ font-weight: 500;
596
+ }
597
+ .rte-presence-status-dot {
598
+ width: 8px;
599
+ height: 8px;
600
+ border-radius: 50%;
601
+ animation: presence-pulse 2s infinite;
602
+ }
603
+ @keyframes presence-pulse {
604
+ 0%, 100% {
605
+ opacity: 1;
606
+ }
607
+ 50% {
608
+ opacity: 0.5;
609
+ }
610
+ }
611
+ .rte-presence-avatars {
612
+ display: flex;
613
+ align-items: center;
614
+ margin-left: auto;
615
+ }
616
+ .rte-presence-avatar {
617
+ position: relative;
618
+ width: 32px;
619
+ height: 32px;
620
+ border-radius: 50%;
621
+ border: 2px solid #fff;
622
+ margin-left: -8px;
623
+ overflow: hidden;
624
+ cursor: pointer;
625
+ transition: transform 0.15s ease;
626
+ }
627
+ .rte-presence-avatar:first-child {
628
+ margin-left: 0;
629
+ }
630
+ .rte-presence-avatar:hover {
631
+ transform: scale(1.1);
632
+ z-index: 1;
633
+ }
634
+ .rte-presence-avatar img {
635
+ width: 100%;
636
+ height: 100%;
637
+ object-fit: cover;
638
+ }
639
+ .rte-presence-avatar span {
640
+ display: flex;
641
+ align-items: center;
642
+ justify-content: center;
643
+ width: 100%;
644
+ height: 100%;
645
+ font-size: 12px;
646
+ font-weight: 600;
647
+ color: #fff;
648
+ }
649
+ .rte-presence-active-dot {
650
+ position: absolute;
651
+ bottom: 0;
652
+ right: 0;
653
+ width: 10px;
654
+ height: 10px;
655
+ background: #22c55e;
656
+ border: 2px solid #fff;
657
+ border-radius: 50%;
658
+ }
659
+ .rte-presence-more {
660
+ display: flex;
661
+ align-items: center;
662
+ justify-content: center;
663
+ background: #e5e7eb;
664
+ color: #374151;
665
+ font-size: 11px;
666
+ font-weight: 600;
667
+ }
668
+ .rte-presence-name {
669
+ position: absolute;
670
+ bottom: -24px;
671
+ left: 50%;
672
+ transform: translateX(-50%);
673
+ background: #1f2937;
674
+ color: #fff;
675
+ font-size: 11px;
676
+ padding: 4px 8px;
677
+ border-radius: 4px;
678
+ white-space: nowrap;
679
+ opacity: 0;
680
+ pointer-events: none;
681
+ transition: opacity 0.15s ease;
682
+ }
683
+ .rte-presence-avatar:hover .rte-presence-name {
684
+ opacity: 1;
685
+ }
686
+ .rte-presence-error {
687
+ width: 24px;
688
+ height: 24px;
689
+ background: #fef2f2;
690
+ color: #ef4444;
691
+ border-radius: 50%;
692
+ display: flex;
693
+ align-items: center;
694
+ justify-content: center;
695
+ font-weight: 700;
696
+ font-size: 14px;
697
+ }
698
+ .rte-user-cursor {
699
+ position: absolute;
700
+ pointer-events: none;
701
+ z-index: 100;
702
+ }
703
+ .rte-user-cursor-caret {
704
+ width: 2px;
705
+ height: 1.2em;
706
+ animation: cursor-blink 1s infinite;
707
+ }
708
+ @keyframes cursor-blink {
709
+ 0%, 100% {
710
+ opacity: 1;
711
+ }
712
+ 50% {
713
+ opacity: 0;
714
+ }
715
+ }
716
+ .rte-user-cursor-name {
717
+ position: absolute;
718
+ top: -20px;
719
+ left: 0;
720
+ padding: 2px 6px;
721
+ border-radius: 4px;
722
+ font-size: 10px;
723
+ font-weight: 600;
724
+ color: #fff;
725
+ white-space: nowrap;
726
+ }
727
+ .rte-user-selection {
728
+ position: absolute;
729
+ opacity: 0.3;
730
+ pointer-events: none;
731
+ }
732
+
733
+ /* src/styles/comments.css */
734
+ .rte-comments-panel {
735
+ position: absolute;
736
+ top: 0;
737
+ bottom: 0;
738
+ width: 320px;
739
+ background: #fff;
740
+ border: 1px solid #e5e7eb;
741
+ display: flex;
742
+ flex-direction: column;
743
+ z-index: 50;
744
+ box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
745
+ }
746
+ .rte-comments-panel-right {
747
+ right: 0;
748
+ border-left: 1px solid #e5e7eb;
749
+ }
750
+ .rte-comments-panel-left {
751
+ left: 0;
752
+ border-right: 1px solid #e5e7eb;
753
+ }
754
+ .rte-comments-panel-header {
755
+ display: flex;
756
+ align-items: center;
757
+ justify-content: space-between;
758
+ padding: 12px 16px;
759
+ border-bottom: 1px solid #e5e7eb;
760
+ background: #f9fafb;
761
+ }
762
+ .rte-comments-panel-header h3 {
763
+ margin: 0;
764
+ font-size: 16px;
765
+ font-weight: 600;
766
+ color: #1f2937;
767
+ }
768
+ .rte-comments-close-btn {
769
+ background: none;
770
+ border: none;
771
+ font-size: 20px;
772
+ color: #6b7280;
773
+ cursor: pointer;
774
+ padding: 4px;
775
+ line-height: 1;
776
+ }
777
+ .rte-comments-close-btn:hover {
778
+ color: #1f2937;
779
+ }
780
+ .rte-comments-filters {
781
+ display: flex;
782
+ padding: 8px;
783
+ gap: 4px;
784
+ border-bottom: 1px solid #e5e7eb;
785
+ }
786
+ .rte-comments-filter {
787
+ flex: 1;
788
+ padding: 8px 12px;
789
+ background: none;
790
+ border: none;
791
+ border-radius: 6px;
792
+ font-size: 13px;
793
+ font-weight: 500;
794
+ color: #6b7280;
795
+ cursor: pointer;
796
+ display: flex;
797
+ align-items: center;
798
+ justify-content: center;
799
+ gap: 6px;
800
+ transition: all 0.15s ease;
801
+ }
802
+ .rte-comments-filter:hover {
803
+ background: #f3f4f6;
804
+ }
805
+ .rte-comments-filter.active {
806
+ background: #3b82f6;
807
+ color: #fff;
808
+ }
809
+ .rte-comments-filter-count {
810
+ background: rgba(0, 0, 0, 0.1);
811
+ padding: 2px 6px;
812
+ border-radius: 10px;
813
+ font-size: 11px;
814
+ }
815
+ .rte-comments-filter.active .rte-comments-filter-count {
816
+ background: rgba(255, 255, 255, 0.2);
817
+ }
818
+ .rte-comments-list {
819
+ flex: 1;
820
+ overflow-y: auto;
821
+ padding: 8px;
822
+ }
823
+ .rte-comments-empty {
824
+ padding: 32px 16px;
825
+ text-align: center;
826
+ color: #9ca3af;
827
+ font-size: 14px;
828
+ }
829
+ .rte-thread {
830
+ background: #fff;
831
+ border: 1px solid #e5e7eb;
832
+ border-radius: 8px;
833
+ margin-bottom: 8px;
834
+ overflow: hidden;
835
+ cursor: pointer;
836
+ transition: all 0.15s ease;
837
+ }
838
+ .rte-thread:hover {
839
+ border-color: #d1d5db;
840
+ }
841
+ .rte-thread-active {
842
+ border-color: #3b82f6;
843
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
844
+ }
845
+ .rte-thread-resolved {
846
+ opacity: 0.7;
847
+ }
848
+ .rte-thread-header {
849
+ padding: 12px;
850
+ border-bottom: 1px solid #f3f4f6;
851
+ }
852
+ .rte-thread-quote {
853
+ font-size: 12px;
854
+ color: #6b7280;
855
+ font-style: italic;
856
+ margin-bottom: 8px;
857
+ padding-left: 8px;
858
+ border-left: 2px solid #d1d5db;
859
+ }
860
+ .rte-thread-meta {
861
+ display: flex;
862
+ align-items: center;
863
+ gap: 8px;
864
+ }
865
+ .rte-thread-status {
866
+ font-size: 11px;
867
+ font-weight: 500;
868
+ padding: 2px 8px;
869
+ border-radius: 10px;
870
+ text-transform: uppercase;
871
+ }
872
+ .rte-thread-status-open {
873
+ background: #dbeafe;
874
+ color: #1d4ed8;
875
+ }
876
+ .rte-thread-status-resolved {
877
+ background: #dcfce7;
878
+ color: #15803d;
879
+ }
880
+ .rte-thread-count {
881
+ font-size: 12px;
882
+ color: #9ca3af;
883
+ }
884
+ .rte-thread-comments {
885
+ padding: 8px;
886
+ }
887
+ .rte-comment {
888
+ padding: 8px;
889
+ border-radius: 6px;
890
+ margin-bottom: 8px;
891
+ }
892
+ .rte-comment:last-child {
893
+ margin-bottom: 0;
894
+ }
895
+ .rte-comment:hover {
896
+ background: #f9fafb;
897
+ }
898
+ .rte-comment-first {
899
+ background: #f3f4f6;
900
+ }
901
+ .rte-comment-header {
902
+ display: flex;
903
+ align-items: center;
904
+ justify-content: space-between;
905
+ margin-bottom: 8px;
906
+ }
907
+ .rte-comment-author {
908
+ display: flex;
909
+ align-items: center;
910
+ gap: 8px;
911
+ }
912
+ .rte-comment-avatar {
913
+ width: 24px;
914
+ height: 24px;
915
+ border-radius: 50%;
916
+ object-fit: cover;
917
+ }
918
+ .rte-comment-avatar-placeholder {
919
+ width: 24px;
920
+ height: 24px;
921
+ border-radius: 50%;
922
+ background: #3b82f6;
923
+ color: #fff;
924
+ display: flex;
925
+ align-items: center;
926
+ justify-content: center;
927
+ font-size: 11px;
928
+ font-weight: 600;
929
+ }
930
+ .rte-comment-author-name {
931
+ font-size: 13px;
932
+ font-weight: 500;
933
+ color: #1f2937;
934
+ }
935
+ .rte-comment-time {
936
+ font-size: 11px;
937
+ color: #9ca3af;
938
+ }
939
+ .rte-comment-content {
940
+ font-size: 13px;
941
+ color: #374151;
942
+ line-height: 1.5;
943
+ }
944
+ .rte-comment-edit-input {
945
+ width: 100%;
946
+ min-height: 60px;
947
+ padding: 8px;
948
+ border: 1px solid #d1d5db;
949
+ border-radius: 6px;
950
+ font-size: 13px;
951
+ resize: vertical;
952
+ }
953
+ .rte-comment-edit-actions {
954
+ display: flex;
955
+ gap: 8px;
956
+ margin-top: 8px;
957
+ }
958
+ .rte-comment-btn-save,
959
+ .rte-comment-btn-cancel {
960
+ padding: 6px 12px;
961
+ border-radius: 4px;
962
+ font-size: 12px;
963
+ font-weight: 500;
964
+ cursor: pointer;
965
+ border: none;
966
+ }
967
+ .rte-comment-btn-save {
968
+ background: #3b82f6;
969
+ color: #fff;
970
+ }
971
+ .rte-comment-btn-cancel {
972
+ background: #e5e7eb;
973
+ color: #374151;
974
+ }
975
+ .rte-comment-reactions {
976
+ display: flex;
977
+ flex-wrap: wrap;
978
+ gap: 4px;
979
+ margin-top: 8px;
980
+ }
981
+ .rte-comment-reaction {
982
+ display: flex;
983
+ align-items: center;
984
+ gap: 4px;
985
+ padding: 4px 8px;
986
+ background: #f3f4f6;
987
+ border: 1px solid transparent;
988
+ border-radius: 12px;
989
+ font-size: 12px;
990
+ cursor: pointer;
991
+ transition: all 0.15s ease;
992
+ }
993
+ .rte-comment-reaction:hover {
994
+ background: #e5e7eb;
995
+ }
996
+ .rte-comment-reaction.active {
997
+ background: #dbeafe;
998
+ border-color: #3b82f6;
999
+ }
1000
+ .rte-comment-actions {
1001
+ display: flex;
1002
+ gap: 8px;
1003
+ margin-top: 8px;
1004
+ opacity: 0;
1005
+ transition: opacity 0.15s ease;
1006
+ }
1007
+ .rte-comment:hover .rte-comment-actions {
1008
+ opacity: 1;
1009
+ }
1010
+ .rte-comment-action-btn {
1011
+ background: none;
1012
+ border: none;
1013
+ font-size: 12px;
1014
+ color: #6b7280;
1015
+ cursor: pointer;
1016
+ padding: 4px 8px;
1017
+ border-radius: 4px;
1018
+ }
1019
+ .rte-comment-action-btn:hover {
1020
+ background: #e5e7eb;
1021
+ color: #1f2937;
1022
+ }
1023
+ .rte-comment-action-delete:hover {
1024
+ background: #fef2f2;
1025
+ color: #ef4444;
1026
+ }
1027
+ .rte-comment-reaction-picker {
1028
+ position: relative;
1029
+ }
1030
+ .rte-comment-reaction-dropdown {
1031
+ position: absolute;
1032
+ bottom: 100%;
1033
+ left: 0;
1034
+ background: #fff;
1035
+ border: 1px solid #e5e7eb;
1036
+ border-radius: 8px;
1037
+ padding: 8px;
1038
+ display: flex;
1039
+ gap: 4px;
1040
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1041
+ z-index: 10;
1042
+ }
1043
+ .rte-comment-reaction-dropdown button {
1044
+ background: none;
1045
+ border: none;
1046
+ font-size: 18px;
1047
+ cursor: pointer;
1048
+ padding: 4px;
1049
+ border-radius: 4px;
1050
+ transition: transform 0.15s ease;
1051
+ }
1052
+ .rte-comment-reaction-dropdown button:hover {
1053
+ background: #f3f4f6;
1054
+ transform: scale(1.2);
1055
+ }
1056
+ .rte-thread-reply {
1057
+ padding: 12px;
1058
+ border-top: 1px solid #f3f4f6;
1059
+ }
1060
+ .rte-thread-reply-btn {
1061
+ width: 100%;
1062
+ padding: 8px;
1063
+ background: #f3f4f6;
1064
+ border: none;
1065
+ border-radius: 6px;
1066
+ font-size: 13px;
1067
+ color: #6b7280;
1068
+ cursor: pointer;
1069
+ transition: all 0.15s ease;
1070
+ }
1071
+ .rte-thread-reply-btn:hover {
1072
+ background: #e5e7eb;
1073
+ color: #1f2937;
1074
+ }
1075
+ .rte-thread-reply-input {
1076
+ width: 100%;
1077
+ min-height: 60px;
1078
+ padding: 8px;
1079
+ border: 1px solid #d1d5db;
1080
+ border-radius: 6px;
1081
+ font-size: 13px;
1082
+ resize: vertical;
1083
+ margin-bottom: 8px;
1084
+ }
1085
+ .rte-thread-reply-actions {
1086
+ display: flex;
1087
+ gap: 8px;
1088
+ }
1089
+ .rte-thread-actions {
1090
+ display: flex;
1091
+ gap: 8px;
1092
+ padding: 8px 12px;
1093
+ border-top: 1px solid #f3f4f6;
1094
+ background: #f9fafb;
1095
+ }
1096
+ .rte-btn-primary,
1097
+ .rte-btn-secondary,
1098
+ .rte-btn-resolve,
1099
+ .rte-btn-reopen,
1100
+ .rte-btn-delete-thread {
1101
+ padding: 6px 12px;
1102
+ border-radius: 4px;
1103
+ font-size: 12px;
1104
+ font-weight: 500;
1105
+ cursor: pointer;
1106
+ border: none;
1107
+ transition: all 0.15s ease;
1108
+ }
1109
+ .rte-btn-primary {
1110
+ background: #3b82f6;
1111
+ color: #fff;
1112
+ }
1113
+ .rte-btn-primary:hover {
1114
+ background: #2563eb;
1115
+ }
1116
+ .rte-btn-primary:disabled {
1117
+ background: #93c5fd;
1118
+ cursor: not-allowed;
1119
+ }
1120
+ .rte-btn-secondary {
1121
+ background: #e5e7eb;
1122
+ color: #374151;
1123
+ }
1124
+ .rte-btn-secondary:hover {
1125
+ background: #d1d5db;
1126
+ }
1127
+ .rte-btn-resolve {
1128
+ background: #dcfce7;
1129
+ color: #15803d;
1130
+ }
1131
+ .rte-btn-resolve:hover {
1132
+ background: #bbf7d0;
1133
+ }
1134
+ .rte-btn-reopen {
1135
+ background: #fef3c7;
1136
+ color: #92400e;
1137
+ }
1138
+ .rte-btn-reopen:hover {
1139
+ background: #fde68a;
1140
+ }
1141
+ .rte-btn-delete-thread {
1142
+ background: none;
1143
+ color: #6b7280;
1144
+ margin-left: auto;
1145
+ }
1146
+ .rte-btn-delete-thread:hover {
1147
+ background: #fef2f2;
1148
+ color: #ef4444;
1149
+ }
1150
+ .rte-comment-highlight {
1151
+ background: #fef3c7;
1152
+ border-bottom: 2px solid #f59e0b;
1153
+ cursor: pointer;
1154
+ }
1155
+ .rte-comment-highlight:hover {
1156
+ background: #fde68a;
1157
+ }
1158
+ .rte-comment-highlight-active {
1159
+ background: #fde68a;
1160
+ border-bottom-color: #d97706;
1161
+ }
1162
+ .rte-comment-highlight-resolved {
1163
+ background: #dcfce7;
1164
+ border-bottom-color: #22c55e;
1165
+ opacity: 0.7;
1166
+ }
1167
+
1168
+ /* src/styles/version-history.css */
1169
+ .rte-version-panel {
1170
+ position: absolute;
1171
+ top: 0;
1172
+ bottom: 0;
1173
+ width: 360px;
1174
+ background: #fff;
1175
+ border: 1px solid #e5e7eb;
1176
+ display: flex;
1177
+ flex-direction: column;
1178
+ z-index: 50;
1179
+ box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
1180
+ }
1181
+ .rte-version-panel-right {
1182
+ right: 0;
1183
+ border-left: 1px solid #e5e7eb;
1184
+ }
1185
+ .rte-version-panel-left {
1186
+ left: 0;
1187
+ border-right: 1px solid #e5e7eb;
1188
+ }
1189
+ .rte-version-panel-header {
1190
+ display: flex;
1191
+ align-items: center;
1192
+ justify-content: space-between;
1193
+ padding: 12px 16px;
1194
+ border-bottom: 1px solid #e5e7eb;
1195
+ background: #f9fafb;
1196
+ }
1197
+ .rte-version-panel-header h3 {
1198
+ margin: 0;
1199
+ font-size: 16px;
1200
+ font-weight: 600;
1201
+ color: #1f2937;
1202
+ }
1203
+ .rte-version-close-btn {
1204
+ background: none;
1205
+ border: none;
1206
+ font-size: 20px;
1207
+ color: #6b7280;
1208
+ cursor: pointer;
1209
+ padding: 4px;
1210
+ line-height: 1;
1211
+ }
1212
+ .rte-version-close-btn:hover {
1213
+ color: #1f2937;
1214
+ }
1215
+ .rte-version-autosave {
1216
+ display: flex;
1217
+ align-items: center;
1218
+ justify-content: space-between;
1219
+ padding: 12px 16px;
1220
+ border-bottom: 1px solid #e5e7eb;
1221
+ background: #f9fafb;
1222
+ }
1223
+ .rte-version-autosave-label {
1224
+ display: flex;
1225
+ align-items: center;
1226
+ gap: 8px;
1227
+ font-size: 13px;
1228
+ color: #374151;
1229
+ cursor: pointer;
1230
+ }
1231
+ .rte-version-autosave-label input {
1232
+ width: 16px;
1233
+ height: 16px;
1234
+ cursor: pointer;
1235
+ }
1236
+ .rte-version-save-btn {
1237
+ padding: 6px 12px;
1238
+ background: #3b82f6;
1239
+ color: #fff;
1240
+ border: none;
1241
+ border-radius: 6px;
1242
+ font-size: 12px;
1243
+ font-weight: 500;
1244
+ cursor: pointer;
1245
+ transition: background 0.15s ease;
1246
+ }
1247
+ .rte-version-save-btn:hover {
1248
+ background: #2563eb;
1249
+ }
1250
+ .rte-version-compare-mode {
1251
+ display: flex;
1252
+ align-items: center;
1253
+ justify-content: space-between;
1254
+ padding: 12px 16px;
1255
+ background: #dbeafe;
1256
+ border-bottom: 1px solid #93c5fd;
1257
+ }
1258
+ .rte-version-compare-mode span {
1259
+ font-size: 13px;
1260
+ color: #1d4ed8;
1261
+ }
1262
+ .rte-version-compare-mode button {
1263
+ padding: 4px 12px;
1264
+ background: #fff;
1265
+ border: 1px solid #93c5fd;
1266
+ border-radius: 4px;
1267
+ font-size: 12px;
1268
+ color: #1d4ed8;
1269
+ cursor: pointer;
1270
+ }
1271
+ .rte-version-list {
1272
+ flex: 1;
1273
+ overflow-y: auto;
1274
+ padding: 8px;
1275
+ }
1276
+ .rte-version-empty {
1277
+ padding: 32px 16px;
1278
+ text-align: center;
1279
+ color: #9ca3af;
1280
+ font-size: 14px;
1281
+ }
1282
+ .rte-version-section {
1283
+ margin-bottom: 16px;
1284
+ }
1285
+ .rte-version-section-title {
1286
+ font-size: 12px;
1287
+ font-weight: 600;
1288
+ color: #6b7280;
1289
+ text-transform: uppercase;
1290
+ padding: 8px 12px;
1291
+ margin-bottom: 4px;
1292
+ }
1293
+ .rte-version-item {
1294
+ background: #fff;
1295
+ border: 1px solid #e5e7eb;
1296
+ border-radius: 8px;
1297
+ margin-bottom: 8px;
1298
+ overflow: hidden;
1299
+ transition: all 0.15s ease;
1300
+ }
1301
+ .rte-version-item:hover {
1302
+ border-color: #d1d5db;
1303
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
1304
+ }
1305
+ .rte-version-viewing {
1306
+ border-color: #3b82f6;
1307
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
1308
+ }
1309
+ .rte-version-compare-from {
1310
+ border-color: #f59e0b;
1311
+ background: #fffbeb;
1312
+ }
1313
+ .rte-version-compare-to {
1314
+ border-color: #22c55e;
1315
+ background: #f0fdf4;
1316
+ }
1317
+ .rte-version-header {
1318
+ padding: 12px;
1319
+ cursor: pointer;
1320
+ }
1321
+ .rte-version-info {
1322
+ display: flex;
1323
+ align-items: center;
1324
+ justify-content: space-between;
1325
+ margin-bottom: 8px;
1326
+ }
1327
+ .rte-version-title {
1328
+ font-size: 14px;
1329
+ font-weight: 500;
1330
+ color: #1f2937;
1331
+ display: flex;
1332
+ align-items: center;
1333
+ gap: 6px;
1334
+ }
1335
+ .rte-version-pin-icon {
1336
+ font-size: 12px;
1337
+ }
1338
+ .rte-version-auto-badge {
1339
+ font-size: 10px;
1340
+ padding: 2px 6px;
1341
+ background: #e5e7eb;
1342
+ border-radius: 10px;
1343
+ color: #6b7280;
1344
+ font-weight: 500;
1345
+ }
1346
+ .rte-version-time {
1347
+ font-size: 12px;
1348
+ color: #9ca3af;
1349
+ }
1350
+ .rte-version-rename-input {
1351
+ font-size: 14px;
1352
+ font-weight: 500;
1353
+ padding: 4px 8px;
1354
+ border: 1px solid #3b82f6;
1355
+ border-radius: 4px;
1356
+ outline: none;
1357
+ width: 100%;
1358
+ }
1359
+ .rte-version-author {
1360
+ display: flex;
1361
+ align-items: center;
1362
+ gap: 8px;
1363
+ }
1364
+ .rte-version-avatar {
1365
+ width: 20px;
1366
+ height: 20px;
1367
+ border-radius: 50%;
1368
+ object-fit: cover;
1369
+ }
1370
+ .rte-version-avatar-placeholder {
1371
+ width: 20px;
1372
+ height: 20px;
1373
+ border-radius: 50%;
1374
+ background: #3b82f6;
1375
+ color: #fff;
1376
+ display: flex;
1377
+ align-items: center;
1378
+ justify-content: center;
1379
+ font-size: 10px;
1380
+ font-weight: 600;
1381
+ }
1382
+ .rte-version-author span {
1383
+ font-size: 12px;
1384
+ color: #6b7280;
1385
+ }
1386
+ .rte-version-stats {
1387
+ display: flex;
1388
+ gap: 16px;
1389
+ padding: 0 12px 8px;
1390
+ font-size: 11px;
1391
+ color: #9ca3af;
1392
+ }
1393
+ .rte-version-actions {
1394
+ display: flex;
1395
+ flex-wrap: wrap;
1396
+ gap: 4px;
1397
+ padding: 8px 12px;
1398
+ border-top: 1px solid #f3f4f6;
1399
+ background: #f9fafb;
1400
+ }
1401
+ .rte-version-btn {
1402
+ padding: 4px 8px;
1403
+ background: #fff;
1404
+ border: 1px solid #e5e7eb;
1405
+ border-radius: 4px;
1406
+ font-size: 11px;
1407
+ color: #6b7280;
1408
+ cursor: pointer;
1409
+ transition: all 0.15s ease;
1410
+ }
1411
+ .rte-version-btn:hover {
1412
+ background: #f3f4f6;
1413
+ border-color: #d1d5db;
1414
+ color: #374151;
1415
+ }
1416
+ .rte-version-btn-delete:hover {
1417
+ background: #fef2f2;
1418
+ border-color: #fecaca;
1419
+ color: #ef4444;
1420
+ }
1421
+ .rte-version-viewing-indicator {
1422
+ display: flex;
1423
+ align-items: center;
1424
+ justify-content: space-between;
1425
+ padding: 12px 16px;
1426
+ background: #dbeafe;
1427
+ border-top: 1px solid #93c5fd;
1428
+ }
1429
+ .rte-version-viewing-indicator span {
1430
+ font-size: 13px;
1431
+ color: #1d4ed8;
1432
+ font-weight: 500;
1433
+ }
1434
+ .rte-version-back-btn {
1435
+ padding: 6px 12px;
1436
+ background: #fff;
1437
+ border: 1px solid #93c5fd;
1438
+ border-radius: 6px;
1439
+ font-size: 12px;
1440
+ color: #1d4ed8;
1441
+ cursor: pointer;
1442
+ transition: all 0.15s ease;
1443
+ }
1444
+ .rte-version-back-btn:hover {
1445
+ background: #eff6ff;
1446
+ }
1447
+ .rte-version-comparison {
1448
+ flex: 1;
1449
+ display: flex;
1450
+ flex-direction: column;
1451
+ overflow: hidden;
1452
+ }
1453
+ .rte-version-comparison-header {
1454
+ display: flex;
1455
+ align-items: center;
1456
+ justify-content: space-between;
1457
+ padding: 12px 16px;
1458
+ border-bottom: 1px solid #e5e7eb;
1459
+ }
1460
+ .rte-version-comparison-header h4 {
1461
+ margin: 0;
1462
+ font-size: 14px;
1463
+ font-weight: 600;
1464
+ color: #1f2937;
1465
+ }
1466
+ .rte-version-comparison-close {
1467
+ background: none;
1468
+ border: none;
1469
+ font-size: 20px;
1470
+ color: #6b7280;
1471
+ cursor: pointer;
1472
+ }
1473
+ .rte-version-comparison-info {
1474
+ display: flex;
1475
+ align-items: center;
1476
+ gap: 12px;
1477
+ padding: 12px 16px;
1478
+ background: #f9fafb;
1479
+ border-bottom: 1px solid #e5e7eb;
1480
+ }
1481
+ .rte-version-comparison-from,
1482
+ .rte-version-comparison-to {
1483
+ flex: 1;
1484
+ font-size: 13px;
1485
+ color: #374151;
1486
+ }
1487
+ .rte-version-comparison-label {
1488
+ display: block;
1489
+ font-size: 10px;
1490
+ font-weight: 600;
1491
+ text-transform: uppercase;
1492
+ color: #9ca3af;
1493
+ margin-bottom: 4px;
1494
+ }
1495
+ .rte-version-comparison-from {
1496
+ padding: 8px;
1497
+ background: #fffbeb;
1498
+ border-radius: 6px;
1499
+ border: 1px solid #fcd34d;
1500
+ }
1501
+ .rte-version-comparison-to {
1502
+ padding: 8px;
1503
+ background: #f0fdf4;
1504
+ border-radius: 6px;
1505
+ border: 1px solid #86efac;
1506
+ }
1507
+ .rte-version-comparison-arrow {
1508
+ font-size: 18px;
1509
+ color: #9ca3af;
1510
+ }
1511
+ .rte-version-comparison-stats {
1512
+ display: flex;
1513
+ gap: 16px;
1514
+ padding: 12px 16px;
1515
+ border-bottom: 1px solid #e5e7eb;
1516
+ }
1517
+ .rte-comparison-stat {
1518
+ font-size: 12px;
1519
+ font-weight: 500;
1520
+ padding: 4px 8px;
1521
+ border-radius: 4px;
1522
+ }
1523
+ .rte-comparison-additions {
1524
+ background: #dcfce7;
1525
+ color: #15803d;
1526
+ }
1527
+ .rte-comparison-deletions {
1528
+ background: #fef2f2;
1529
+ color: #dc2626;
1530
+ }
1531
+ .rte-comparison-modifications {
1532
+ background: #fef3c7;
1533
+ color: #92400e;
1534
+ }
1535
+ .rte-version-comparison-diff {
1536
+ flex: 1;
1537
+ overflow-y: auto;
1538
+ padding: 12px;
1539
+ font-family: monospace;
1540
+ font-size: 12px;
1541
+ line-height: 1.6;
1542
+ }
1543
+ .rte-diff-line {
1544
+ display: flex;
1545
+ padding: 2px 8px;
1546
+ border-radius: 2px;
1547
+ margin-bottom: 2px;
1548
+ }
1549
+ .rte-diff-addition {
1550
+ background: #dcfce7;
1551
+ }
1552
+ .rte-diff-deletion {
1553
+ background: #fef2f2;
1554
+ }
1555
+ .rte-diff-modification {
1556
+ background: #fef3c7;
1557
+ }
1558
+ .rte-diff-indicator {
1559
+ width: 20px;
1560
+ font-weight: 700;
1561
+ color: #6b7280;
1562
+ }
1563
+ .rte-diff-addition .rte-diff-indicator {
1564
+ color: #15803d;
1565
+ }
1566
+ .rte-diff-deletion .rte-diff-indicator {
1567
+ color: #dc2626;
1568
+ }
1569
+ .rte-diff-modification .rte-diff-indicator {
1570
+ color: #92400e;
1571
+ }
1572
+ .rte-diff-content {
1573
+ flex: 1;
1574
+ white-space: pre-wrap;
1575
+ word-break: break-word;
1576
+ }
580
1577
  /*# sourceMappingURL=index.css.map */