index.wxss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .chat {
  2. background-color: white;
  3. }
  4. .chat .content {
  5. padding: 20rpx 30rpx 150rpx;
  6. }
  7. .chat .content .base {
  8. display: flex;
  9. align-items: flex-start;
  10. justify-content: space-between;
  11. margin-bottom: 42rpx;
  12. }
  13. .chat .content .base .avatar {
  14. width: 80rpx;
  15. height: 80rpx;
  16. border-radius: 50%;
  17. background-color: #eeeeee;
  18. }
  19. .chat .content .base .message {
  20. flex: 1;
  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 .avatar {
  29. margin-right: 30rpx;
  30. }
  31. .chat .content .self .message {
  32. margin-right: 30rpx;
  33. background-color: #3DD076;
  34. color: white;
  35. }
  36. .chat .inputBox {
  37. position: fixed;
  38. left: 0px;
  39. bottom: 0px;
  40. width: 100%;
  41. display: flex;
  42. align-items: center;
  43. justify-content: space-between;
  44. box-sizing: border-box;
  45. padding: 20rpx 26rpx;
  46. background-color: #EEEDED;
  47. }
  48. .chat .inputBox .input {
  49. height: 80rpx;
  50. flex: 1;
  51. padding-left: 20rpx;
  52. border-radius: 10rpx;
  53. background-color: white;
  54. }
  55. .chat .inputBox .submit {
  56. padding: 14rpx 30rpx;
  57. color: #0091FF;
  58. font-size: 38rpx;
  59. }
  60. .chat .iosPadding {
  61. padding-bottom: 40rpx;
  62. }