index.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .message_container {
  2. width: 100%;
  3. background: #f8f9f9;
  4. }
  5. .message_list_item {
  6. width: 100%;
  7. display: flex;
  8. /* padding: 0 10px; */
  9. box-sizing: border-box;
  10. flex-direction: row;
  11. justify-content: flex-start;
  12. align-items: flex-end;
  13. }
  14. .message_list_item_content {
  15. display: flex;
  16. flex-direction: column;
  17. max-width: 70%;
  18. }
  19. .message_list_item_mine {
  20. flex-direction: row-reverse;
  21. }
  22. .message_list_item_avatar {
  23. margin: 0 10px;
  24. }
  25. .message_list_item_content_nickname {
  26. /* Nickname */
  27. height: 16px;
  28. /* 简体中文/标签/小 */
  29. font-family: 'PingFang SC';
  30. font-style: normal;
  31. font-weight: 400;
  32. font-size: 12px;
  33. line-height: 16px;
  34. /* identical to box height, or 133% */
  35. /* Neutral Special/5 */
  36. color: #5270ad;
  37. }
  38. .message_list_item_content_nickname_mine {
  39. text-align: right;
  40. }
  41. .message_time {
  42. display: flex;
  43. flex-direction: row;
  44. align-items: center;
  45. justify-content: center;
  46. width: 100%;
  47. height: 16px;
  48. /* Alphabet/Body/Small */
  49. font-family: 'SF Pro';
  50. font-style: normal;
  51. font-weight: 400;
  52. font-size: 12px;
  53. line-height: 16px;
  54. /* identical to box height, or 133% */
  55. /* Neutral/7 */
  56. color: #acb4b9;
  57. margin: 10px 0 5px 0;
  58. }
  59. /* 引用消息闪烁 */
  60. /* 闪烁动画 */
  61. @keyframes blinkAnimation {
  62. 50% {
  63. background-color: #eff0f1; /* 闪烁颜色 */
  64. }
  65. }
  66. /* 应用于元素的闪烁效果 */
  67. .quote_msg_avtive {
  68. animation: blinkAnimation 1s; /* 动画持续时间 */
  69. }