index.less 2.0 KB

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