index.wxss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. .chat {
  2. background-color: white;
  3. }
  4. .chat .content {
  5. height: 100vh;
  6. padding: 0rpx 30rpx;
  7. box-sizing: border-box;
  8. }
  9. .chat .content .base {
  10. display: flex;
  11. align-items: flex-start;
  12. justify-content: space-between;
  13. margin-bottom: 42rpx;
  14. margin-top: 20rpx;
  15. }
  16. .chat .content .base .contentBox {
  17. flex: 1;
  18. }
  19. .chat .content .base .contentBox .time {
  20. width: 200rpx;
  21. margin-bottom: 10rpx;
  22. font-size: 22rpx;
  23. color: #969696;
  24. }
  25. .chat .content .base .contentBox .message {
  26. max-width: 80%;
  27. padding: 20rpx;
  28. box-sizing: border-box;
  29. display: inline-block;
  30. font-size: 28rpx;
  31. line-height: 42rpx;
  32. border-radius: 14rpx;
  33. background-color: #F2F6FC;
  34. word-break: break-all;
  35. }
  36. .chat .content .base .contentBox .msgImg {
  37. max-width: 200rpx;
  38. }
  39. .chat .content .base .avatar {
  40. width: 80rpx;
  41. height: 80rpx;
  42. border-radius: 50%;
  43. background-color: #eeeeee;
  44. }
  45. .chat .content .someone {
  46. justify-content: flex-start;
  47. }
  48. .chat .content .someone .avatar {
  49. margin-right: 30rpx;
  50. }
  51. .chat .content .self {
  52. justify-content: flex-end;
  53. }
  54. .chat .content .self .contentBox {
  55. display: flex;
  56. flex-direction: column;
  57. align-items: flex-end;
  58. }
  59. .chat .content .self .contentBox .time {
  60. text-align: right;
  61. }
  62. .chat .content .self .contentBox .message {
  63. display: inline-block;
  64. background-color: #3DD076;
  65. color: white;
  66. }
  67. .chat .content .self .avatar {
  68. margin-left: 30rpx;
  69. }
  70. .chat .inputBox {
  71. position: fixed;
  72. left: 0px;
  73. bottom: 0px;
  74. width: 100%;
  75. display: flex;
  76. align-items: center;
  77. justify-content: space-between;
  78. box-sizing: border-box;
  79. padding: 20rpx 26rpx;
  80. background-color: #EEEDED;
  81. }
  82. .chat .inputBox .input {
  83. height: 80rpx;
  84. flex: 1;
  85. padding-left: 20rpx;
  86. border-radius: 10rpx;
  87. background-color: white;
  88. }
  89. .chat .inputBox .sendImg {
  90. width: 32rpx;
  91. height: 32rpx;
  92. border: 4rpx solid #3DD076;
  93. margin: 0rpx 24rpx;
  94. padding: 10rpx;
  95. border-radius: 50%;
  96. }
  97. .chat .inputBox .submit {
  98. padding: 14rpx 10rpx 14rpx 0rpx;
  99. color: #0091FF;
  100. font-size: 38rpx;
  101. }
  102. .chat .iosPadding {
  103. padding-bottom: 40rpx;
  104. }