index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. .contentBox {
  14. flex: 1;
  15. .time {
  16. width: 200rpx;
  17. margin-bottom: 10rpx;
  18. font-size: 22rpx;
  19. color: #969696;
  20. }
  21. .message {
  22. max-width: 80%;
  23. padding: 20rpx;
  24. box-sizing: border-box;
  25. font-size: 28rpx;
  26. line-height: 42rpx;
  27. border-radius: 14rpx;
  28. background-color: #F2F6FC;
  29. word-break: break-all;
  30. }
  31. .msgImg {
  32. max-width: 200rpx;
  33. }
  34. }
  35. .avatar {
  36. width: 80rpx;
  37. height: 80rpx;
  38. border-radius: 50%;
  39. background-color: rgb(238, 238, 238);
  40. }
  41. }
  42. .someone {
  43. justify-content: flex-start;
  44. .avatar {
  45. margin-right: 30rpx;
  46. }
  47. }
  48. .self {
  49. justify-content: flex-end;
  50. .contentBox {
  51. display: flex;
  52. flex-direction: column;
  53. align-items: flex-end;
  54. .message {
  55. display: inline-block;
  56. background-color: #3DD076;
  57. color: white;
  58. }
  59. }
  60. .avatar {
  61. margin-left: 30rpx;
  62. }
  63. }
  64. }
  65. .inputBox {
  66. position: fixed;
  67. left: 0px;
  68. bottom: 0px;
  69. width: 100%;
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-between;
  73. box-sizing: border-box;
  74. padding: 20rpx 26rpx;
  75. background-color: #EEEDED;
  76. .input {
  77. height: 80rpx;
  78. flex: 1;
  79. padding-left: 20rpx;
  80. border-radius: 10rpx;
  81. background-color: white;
  82. }
  83. .sendImg {
  84. width: 32rpx;
  85. height: 32rpx;
  86. border: 4rpx solid #3DD076;
  87. margin: 0rpx 24rpx;
  88. padding: 10rpx;
  89. border-radius: 50%;
  90. }
  91. .submit {
  92. padding: 14rpx 10rpx 14rpx 0rpx;
  93. color: #0091FF;
  94. font-size: 38rpx;
  95. }
  96. }
  97. .iosPadding {
  98. padding-bottom: 40rpx;
  99. }
  100. }