index.wxss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. flex: 1;
  22. padding: 20rpx;
  23. box-sizing: border-box;
  24. font-size: 28rpx;
  25. line-height: 42rpx;
  26. border-radius: 14rpx;
  27. background-color: #F2F6FC;
  28. }
  29. .chat .content .someone .avatar {
  30. margin-right: 30rpx;
  31. }
  32. .chat .content .self .message {
  33. margin-right: 30rpx;
  34. background-color: #3DD076;
  35. color: white;
  36. }
  37. .chat .inputBox {
  38. position: fixed;
  39. left: 0px;
  40. bottom: 0px;
  41. width: 100%;
  42. display: flex;
  43. align-items: center;
  44. justify-content: space-between;
  45. box-sizing: border-box;
  46. padding: 20rpx 26rpx;
  47. background-color: #EEEDED;
  48. }
  49. .chat .inputBox .input {
  50. height: 80rpx;
  51. flex: 1;
  52. padding-left: 20rpx;
  53. border-radius: 10rpx;
  54. background-color: white;
  55. }
  56. .chat .inputBox .sendImg {
  57. width: 32rpx;
  58. height: 32rpx;
  59. border: 4rpx solid #3DD076;
  60. margin: 0rpx 24rpx;
  61. padding: 10rpx;
  62. border-radius: 50%;
  63. }
  64. .chat .inputBox .submit {
  65. padding: 14rpx 10rpx 14rpx 0rpx;
  66. color: #0091FF;
  67. font-size: 38rpx;
  68. }
  69. .chat .iosPadding {
  70. padding-bottom: 40rpx;
  71. }