index.less 2.2 KB

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