index.less 1.6 KB

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