index.wxss 1.5 KB

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