|
366 | 366 | } |
367 | 367 |
|
368 | 368 | /* 统一特殊消息尾巴(红包 / 文件等) */ |
369 | | -:deep(.wechat-special-card) { |
| 369 | +.wechat-special-card { |
370 | 370 | position: relative; |
371 | 371 | overflow: visible; |
372 | 372 | } |
373 | 373 |
|
374 | | -:deep(.wechat-special-card)::after { |
| 374 | +.wechat-special-card::after { |
375 | 375 | content: ''; |
376 | 376 | position: absolute; |
377 | 377 | top: 12px; |
|
383 | 383 | border-radius: 2px; |
384 | 384 | } |
385 | 385 |
|
386 | | -:deep(.wechat-special-sent-side)::after { |
| 386 | +.wechat-special-sent-side::after { |
387 | 387 | left: auto; |
388 | 388 | right: -4px; |
389 | 389 | } |
|
754 | 754 | } |
755 | 755 |
|
756 | 756 | /* 链接消息样式 - 微信风格 */ |
757 | | -:deep(.wechat-link-card) { |
| 757 | +.wechat-link-card { |
758 | 758 | width: 210px; |
759 | 759 | min-width: 210px; |
760 | 760 | max-width: 210px; |
|
770 | 770 | transition: background-color 0.15s ease; |
771 | 771 | } |
772 | 772 |
|
773 | | -:deep(.wechat-link-card:hover) { |
| 773 | +.wechat-link-card:hover { |
774 | 774 | background: #f5f5f5; |
775 | 775 | } |
776 | 776 |
|
777 | | -:deep(.wechat-link-content) { |
| 777 | +.wechat-link-content { |
778 | 778 | display: flex; |
779 | 779 | flex-direction: column; |
780 | 780 | gap: 8px; |
|
783 | 783 | flex: 1 1 auto; |
784 | 784 | } |
785 | 785 |
|
786 | | -:deep(.wechat-link-summary) { |
| 786 | +.wechat-link-summary { |
787 | 787 | display: flex; |
788 | 788 | align-items: flex-start; |
789 | 789 | gap: 10px; |
790 | 790 | min-height: 42px; |
791 | 791 | } |
792 | 792 |
|
793 | | -:deep(.wechat-link-title) { |
| 793 | +.wechat-link-title { |
794 | 794 | font-size: 14px; |
795 | 795 | color: #1a1a1a; |
796 | 796 | display: -webkit-box; |
|
801 | 801 | word-break: break-word; |
802 | 802 | } |
803 | 803 |
|
804 | | -:deep(.wechat-link-desc) { |
| 804 | +.wechat-link-desc { |
805 | 805 | font-size: 12px; |
806 | 806 | color: #8c8c8c; |
807 | 807 | display: -webkit-box; |
|
814 | 814 | min-width: 0; |
815 | 815 | } |
816 | 816 |
|
817 | | -:deep(.wechat-link-thumb) { |
| 817 | +.wechat-link-thumb { |
818 | 818 | width: 42px; |
819 | 819 | height: 42px; |
820 | 820 | flex: 0 0 auto; |
|
824 | 824 | align-self: flex-start; |
825 | 825 | } |
826 | 826 |
|
827 | | -:deep(.wechat-link-thumb-img) { |
| 827 | +.wechat-link-thumb-img { |
828 | 828 | width: 100%; |
829 | 829 | height: 100%; |
830 | 830 | object-fit: cover; |
831 | 831 | display: block; |
832 | 832 | } |
833 | 833 |
|
834 | | -:deep(.wechat-link-card--mini-program) { |
| 834 | +.wechat-link-card--mini-program { |
835 | 835 | max-height: 270px; |
836 | 836 | height: 270px; |
837 | 837 | } |
838 | 838 |
|
839 | | -:deep(.wechat-link-mini-body) { |
| 839 | +.wechat-link-mini-body { |
840 | 840 | display: flex; |
841 | 841 | flex-direction: column; |
842 | 842 | gap: 10px; |
|
846 | 846 | min-height: 0; |
847 | 847 | } |
848 | 848 |
|
849 | | -:deep(.wechat-link-mini-header) { |
| 849 | +.wechat-link-mini-header { |
850 | 850 | display: flex; |
851 | 851 | align-items: center; |
852 | 852 | gap: 8px; |
853 | 853 | min-width: 0; |
854 | 854 | } |
855 | 855 |
|
856 | | -:deep(.wechat-link-mini-header-avatar) { |
| 856 | +.wechat-link-mini-header-avatar { |
857 | 857 | width: 20px; |
858 | 858 | height: 20px; |
859 | 859 | border-radius: 50%; |
|
867 | 867 | overflow: hidden; |
868 | 868 | } |
869 | 869 |
|
870 | | -:deep(.wechat-link-mini-header-avatar-img) { |
| 870 | +.wechat-link-mini-header-avatar-img { |
871 | 871 | position: absolute; |
872 | 872 | inset: 0; |
873 | 873 | width: 100%; |
|
876 | 876 | display: block; |
877 | 877 | } |
878 | 878 |
|
879 | | -:deep(.wechat-link-mini-header-name) { |
| 879 | +.wechat-link-mini-header-name { |
880 | 880 | font-size: 13px; |
881 | 881 | color: #7d7d7d; |
882 | 882 | overflow: hidden; |
|
886 | 886 | flex: 1 1 auto; |
887 | 887 | } |
888 | 888 |
|
889 | | -:deep(.wechat-link-mini-title) { |
| 889 | +.wechat-link-mini-title { |
890 | 890 | font-size: 13px; |
891 | 891 | line-height: 1.45; |
892 | 892 | color: #1a1a1a; |
|
897 | 897 | word-break: break-word; |
898 | 898 | } |
899 | 899 |
|
900 | | -:deep(.wechat-link-mini-preview) { |
| 900 | +.wechat-link-mini-preview { |
901 | 901 | width: 100%; |
902 | 902 | height: auto; |
903 | 903 | min-height: 0; |
|
907 | 907 | margin-top: auto; |
908 | 908 | } |
909 | 909 |
|
910 | | -:deep(.wechat-link-mini-preview--empty) { |
| 910 | +.wechat-link-mini-preview--empty { |
911 | 911 | background: #f7f7f7; |
912 | 912 | } |
913 | 913 |
|
914 | | -:deep(.wechat-link-mini-preview-img) { |
| 914 | +.wechat-link-mini-preview-img { |
915 | 915 | width: 100%; |
916 | 916 | height: 100%; |
917 | 917 | object-fit: contain; |
918 | 918 | object-position: center; |
919 | 919 | display: block; |
920 | 920 | } |
921 | 921 |
|
922 | | -:deep(.wechat-link-mini-footer) { |
| 922 | +.wechat-link-mini-footer { |
923 | 923 | height: 23px; |
924 | 924 | display: flex; |
925 | 925 | align-items: center; |
|
930 | 930 | flex-shrink: 0; |
931 | 931 | } |
932 | 932 |
|
933 | | -:deep(.wechat-link-mini-footer)::before { |
| 933 | +.wechat-link-mini-footer::before { |
934 | 934 | content: ''; |
935 | 935 | position: absolute; |
936 | 936 | top: 0; |
|
940 | 940 | background: #e8e8e8; |
941 | 941 | } |
942 | 942 |
|
943 | | -:deep(.wechat-link-mini-footer-icon) { |
| 943 | +.wechat-link-mini-footer-icon { |
944 | 944 | width: 12px; |
945 | 945 | height: 12px; |
946 | 946 | object-fit: contain; |
947 | 947 | flex-shrink: 0; |
948 | 948 | } |
949 | 949 |
|
950 | | -:deep(.wechat-link-mini-footer-text) { |
| 950 | +.wechat-link-mini-footer-text { |
951 | 951 | font-size: 10px; |
952 | 952 | color: #8c8c8c; |
953 | 953 | } |
954 | 954 |
|
955 | | -:deep(.wechat-link-from) { |
| 955 | +.wechat-link-from { |
956 | 956 | height: 30px; |
957 | 957 | display: flex; |
958 | 958 | align-items: center; |
|
962 | 962 | flex-shrink: 0; |
963 | 963 | } |
964 | 964 |
|
965 | | -:deep(.wechat-link-from)::before { |
| 965 | +.wechat-link-from::before { |
966 | 966 | content: ''; |
967 | 967 | position: absolute; |
968 | 968 | top: 0; |
|
972 | 972 | background: #e8e8e8; |
973 | 973 | } |
974 | 974 |
|
975 | | -:deep(.wechat-link-from-avatar) { |
| 975 | +.wechat-link-from-avatar { |
976 | 976 | width: 16px; |
977 | 977 | height: 16px; |
978 | 978 | border-radius: 50%; |
|
986 | 986 | overflow: hidden; |
987 | 987 | } |
988 | 988 |
|
989 | | -:deep(.wechat-link-from-avatar-img) { |
| 989 | +.wechat-link-from-avatar-img { |
990 | 990 | position: absolute; |
991 | 991 | inset: 0; |
992 | 992 | width: 100%; |
|
995 | 995 | display: block; |
996 | 996 | } |
997 | 997 |
|
998 | | -:deep(.wechat-link-from-name) { |
| 998 | +.wechat-link-from-name { |
999 | 999 | font-size: 12px; |
1000 | 1000 | color: #b2b2b2; |
1001 | 1001 | overflow: hidden; |
|
1004 | 1004 | } |
1005 | 1005 |
|
1006 | 1006 | /* 链接封面卡片(170x230 图 + 60 底栏) */ |
1007 | | -:deep(.wechat-link-card-cover) { |
| 1007 | +.wechat-link-card-cover { |
1008 | 1008 | width: 137px; |
1009 | 1009 | min-width: 137px; |
1010 | 1010 | max-width: 137px; |
|
1020 | 1020 | transition: background-color 0.15s ease; |
1021 | 1021 | } |
1022 | 1022 |
|
1023 | | -:deep(.wechat-link-card-cover:hover) { |
| 1023 | +.wechat-link-card-cover:hover { |
1024 | 1024 | background: #f5f5f5; |
1025 | 1025 | } |
1026 | 1026 |
|
1027 | | -:deep(.wechat-link-cover-image-wrap) { |
| 1027 | +.wechat-link-cover-image-wrap { |
1028 | 1028 | width: 137px; |
1029 | 1029 | height: 180px; |
1030 | 1030 | position: relative; |
|
1034 | 1034 | flex-shrink: 0; |
1035 | 1035 | } |
1036 | 1036 |
|
1037 | | -:deep(.wechat-link-cover-image) { |
| 1037 | +.wechat-link-cover-image { |
1038 | 1038 | width: 100%; |
1039 | 1039 | height: 100%; |
1040 | 1040 | object-fit: cover; |
|
1043 | 1043 | } |
1044 | 1044 |
|
1045 | 1045 | /* 仅公众号封面卡片去掉菱形尖角,其它消息保持原样 */ |
1046 | | -:deep(.wechat-link-card-cover.wechat-special-card)::after { |
| 1046 | +.wechat-link-card-cover.wechat-special-card::after { |
1047 | 1047 | content: none !important; |
1048 | 1048 | } |
1049 | 1049 |
|
1050 | | -:deep(.wechat-link-cover-from) { |
| 1050 | +.wechat-link-cover-from { |
1051 | 1051 | height: 30px; |
1052 | 1052 | display: flex; |
1053 | 1053 | align-items: center; |
|
1062 | 1062 | flex-shrink: 0; |
1063 | 1063 | } |
1064 | 1064 |
|
1065 | | -:deep(.wechat-link-cover-from-avatar) { |
| 1065 | +.wechat-link-cover-from-avatar { |
1066 | 1066 | width: 18px; |
1067 | 1067 | height: 18px; |
1068 | 1068 | border-radius: 50%; |
|
1076 | 1076 | overflow: hidden; |
1077 | 1077 | } |
1078 | 1078 |
|
1079 | | -:deep(.wechat-link-cover-from-avatar-img) { |
| 1079 | +.wechat-link-cover-from-avatar-img { |
1080 | 1080 | position: absolute; |
1081 | 1081 | inset: 0; |
1082 | 1082 | width: 100%; |
|
1085 | 1085 | display: block; |
1086 | 1086 | } |
1087 | 1087 |
|
1088 | | -:deep(.wechat-link-cover-from-name) { |
| 1088 | +.wechat-link-cover-from-name { |
1089 | 1089 | font-size: 12px; |
1090 | 1090 | color: #f3f3f3; |
1091 | 1091 | overflow: hidden; |
1092 | 1092 | text-overflow: ellipsis; |
1093 | 1093 | white-space: nowrap; |
1094 | 1094 | } |
1095 | 1095 |
|
1096 | | -:deep(.wechat-link-cover-title) { |
| 1096 | +.wechat-link-cover-title { |
1097 | 1097 | height: 50px; |
1098 | 1098 | padding: 7px 10px 0; |
1099 | 1099 | box-sizing: border-box; |
|
0 commit comments