index.less 1.8 KB

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