index.wxss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .chat {
  2. min-height: 100vh;
  3. background-color: white;
  4. }
  5. .chat .content {
  6. padding: 20rpx 30rpx 150rpx;
  7. }
  8. .chat .content .base {
  9. display: flex;
  10. align-items: flex-start;
  11. justify-content: space-between;
  12. margin-bottom: 42rpx;
  13. }
  14. .chat .content .base .avatar {
  15. width: 80rpx;
  16. height: 80rpx;
  17. border-radius: 50%;
  18. background-color: #eeeeee;
  19. }
  20. .chat .content .base .message {
  21. padding: 20rpx;
  22. box-sizing: border-box;
  23. font-size: 28rpx;
  24. line-height: 42rpx;
  25. border-radius: 14rpx;
  26. background-color: #F2F6FC;
  27. }
  28. .chat .content .someone {
  29. justify-content: flex-start;
  30. }
  31. .chat .content .someone .avatar {
  32. margin-right: 30rpx;
  33. }
  34. .chat .content .self {
  35. justify-content: flex-end;
  36. }
  37. .chat .content .self .message {
  38. display: inline-block;
  39. margin-right: 30rpx;
  40. background-color: #3DD076;
  41. color: white;
  42. }
  43. .chat .inputBox {
  44. position: fixed;
  45. left: 0px;
  46. bottom: 0px;
  47. width: 100%;
  48. display: flex;
  49. align-items: center;
  50. justify-content: space-between;
  51. box-sizing: border-box;
  52. padding: 20rpx 26rpx;
  53. background-color: #EEEDED;
  54. }
  55. .chat .inputBox .input {
  56. height: 80rpx;
  57. flex: 1;
  58. padding-left: 20rpx;
  59. border-radius: 10rpx;
  60. background-color: white;
  61. }
  62. .chat .inputBox .sendImg {
  63. width: 32rpx;
  64. height: 32rpx;
  65. border: 4rpx solid #3DD076;
  66. margin: 0rpx 24rpx;
  67. padding: 10rpx;
  68. border-radius: 50%;
  69. }
  70. .chat .inputBox .submit {
  71. padding: 14rpx 10rpx 14rpx 0rpx;
  72. color: #0091FF;
  73. font-size: 38rpx;
  74. }
  75. .chat .iosPadding {
  76. padding-bottom: 40rpx;
  77. }