chat-room.wxss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* pages/chat-room/chat-room.wxss */
  2. .chat-room {
  3. padding: 30rpx;
  4. width: 93%;
  5. }
  6. .chat {
  7. width: 99%;
  8. display: flex;
  9. height: 100rpx;
  10. display: inline-flex;
  11. flex-direction: row;
  12. border-bottom: solid 1rpx #ece9e4;
  13. padding-bottom: 10rpx;
  14. margin-top: 20rpx;
  15. }
  16. .photo {
  17. width: 100rpx;
  18. height: 100rpx;
  19. border-radius: 50rpx;
  20. }
  21. .item-row {
  22. display: inline-flex;
  23. flex-direction: column;
  24. height: 100rpx;
  25. width: 82%;
  26. margin-left: 15rpx;
  27. }
  28. .chat-name {
  29. font-size: 1.1em;
  30. }
  31. .chat-time {
  32. font-size: .9em;
  33. color: #9a9a9a;
  34. position: absolute;
  35. right: 40rpx;
  36. }
  37. .chat-content {
  38. font-size: .9em;
  39. color: #aaa9a8;
  40. line-height: 50rpx;
  41. max-width: 80%;
  42. display: -webkit-box;
  43. overflow: hidden;
  44. text-overflow: ellipsis;
  45. -webkit-box-orient: vertical;
  46. -webkit-line-clamp: 1;
  47. }
  48. .unread-num {
  49. background-color: #e95543;
  50. width: 40rpx;
  51. height: 40rpx;
  52. border-radius: 20rpx;
  53. text-align: center;
  54. color: white;
  55. position: absolute;
  56. right: 48rpx;
  57. margin-top: 48rpx;
  58. }