index.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. flex: 1;
  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. }
  26. }
  27. .someone {
  28. .avatar {
  29. margin-right: 30rpx;
  30. }
  31. }
  32. .self {
  33. .message {
  34. margin-right: 30rpx;
  35. background-color: #3DD076;
  36. color: white;
  37. }
  38. }
  39. }
  40. .inputBox {
  41. position: fixed;
  42. left: 0px;
  43. bottom: 0px;
  44. width: 100%;
  45. display: flex;
  46. align-items: center;
  47. justify-content: space-between;
  48. box-sizing: border-box;
  49. padding: 20rpx 26rpx;
  50. background-color: #EEEDED;
  51. .input {
  52. height: 80rpx;
  53. flex: 1;
  54. padding-left: 20rpx;
  55. border-radius: 10rpx;
  56. background-color: white;
  57. }
  58. .sendImg {
  59. width: 32rpx;
  60. height: 32rpx;
  61. border: 4rpx solid #3DD076;
  62. margin: 0rpx 24rpx;
  63. padding: 10rpx;
  64. border-radius: 50%;
  65. }
  66. .submit {
  67. padding: 14rpx 10rpx 14rpx 0rpx;
  68. color: #0091FF;
  69. font-size: 38rpx;
  70. }
  71. }
  72. .iosPadding {
  73. padding-bottom: 40rpx;
  74. }
  75. }