index.less 1.6 KB

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