index.wxss 1.6 KB

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