index.wxss 1.8 KB

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