index.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .chat {
  2. min-height: 100vh;
  3. background-color: white;
  4. .content {
  5. height: 100vh;
  6. padding: 0rpx 30rpx 150rpx;
  7. box-sizing: border-box;
  8. .base {
  9. display: flex;
  10. align-items: flex-start;
  11. justify-content: space-between;
  12. margin-bottom: 42rpx;
  13. margin-top: 20rpx;
  14. .avatar {
  15. width: 80rpx;
  16. height: 80rpx;
  17. border-radius: 50%;
  18. background-color: rgb(238, 238, 238);
  19. }
  20. .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. .msgImg {
  31. margin-right: 24rpx;
  32. max-width: 200rpx;
  33. }
  34. }
  35. .someone {
  36. justify-content: flex-start;
  37. .avatar {
  38. margin-right: 30rpx;
  39. }
  40. }
  41. .self {
  42. justify-content: flex-end;
  43. .message {
  44. display: inline-block;
  45. margin-right: 30rpx;
  46. background-color: #3DD076;
  47. color: white;
  48. }
  49. }
  50. }
  51. .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. .input {
  63. height: 80rpx;
  64. flex: 1;
  65. padding-left: 20rpx;
  66. border-radius: 10rpx;
  67. background-color: white;
  68. }
  69. .sendImg {
  70. width: 32rpx;
  71. height: 32rpx;
  72. border: 4rpx solid #3DD076;
  73. margin: 0rpx 24rpx;
  74. padding: 10rpx;
  75. border-radius: 50%;
  76. }
  77. .submit {
  78. padding: 14rpx 10rpx 14rpx 0rpx;
  79. color: #0091FF;
  80. font-size: 38rpx;
  81. }
  82. }
  83. .iosPadding {
  84. padding-bottom: 40rpx;
  85. }
  86. }