index.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .gambit-msg {
  2. position: relative;
  3. width: 100vw;
  4. margin-top: 34rpx;
  5. margin-bottom: 74rpx;
  6. }
  7. /* l为左对齐 r为右对齐 */
  8. /* 用户头像 */
  9. .user-img {
  10. position: absolute;
  11. width: 70rpx;
  12. height: 70rpx;
  13. top: 6rpx;
  14. border-radius: 50%;
  15. }
  16. .l .user-img {
  17. left: 30rpx;
  18. }
  19. .r .user-img {
  20. right: 30rpx;
  21. }
  22. /* 话题内容盒子 */
  23. .contents-box {
  24. display: flex;
  25. flex-direction: column;
  26. position: absolute;
  27. width: 570rpx;
  28. background: #F6F7F8;
  29. border-radius: 10rpx;
  30. padding: 20rpx;
  31. padding-bottom: 0;
  32. box-sizing: border-box;
  33. top: 0;
  34. }
  35. .l .contents-box {
  36. align-items: flex-start;
  37. left: 120rpx;
  38. }
  39. .r .contents-box {
  40. align-items: flex-end;
  41. right: 120rpx;
  42. }
  43. /* 信息气泡样式 */
  44. .msg-bubble {
  45. border-radius: 10rpx;
  46. font-size: 28rpx;
  47. background-color: #FFFFFF;
  48. padding: 20rpx;
  49. box-sizing: border-box;
  50. margin-bottom: 20rpx;
  51. word-break: break-all;
  52. white-space: pre-wrap;
  53. }
  54. .l .msg-bubble {
  55. background-color: #FFFFFF;
  56. color: #000000;
  57. }
  58. .r .msg-bubble {
  59. background-color: #4BBECF;
  60. color: #FFFFFF;
  61. }
  62. /* 附件信息 */
  63. .msg-file {
  64. padding: 6rpx;
  65. border-radius: 10rpx;
  66. margin-bottom: 20rpx;
  67. padding-bottom: 0;
  68. }
  69. .r .msg-file {
  70. align-items: flex-end;
  71. }
  72. .msg-file .image {
  73. width: 168px;
  74. border-radius: 10rpx;
  75. }
  76. .msg-file .emoji {
  77. width: 50rpx;
  78. }
  79. /* 分割线 */
  80. .hr {
  81. height: 2rpx;
  82. width: 100%;
  83. background: rgba(147, 147, 147, .1);
  84. padding-left: -10rpx;
  85. }
  86. /* 查看数据 */
  87. .bottom {
  88. width: 100vw;
  89. height: 34rpx;
  90. line-height: 34rpx;
  91. font-size: 24rpx;
  92. color: rgba(0, 0, 0, .3);
  93. margin-top: 18rpx;
  94. margin-bottom: 20rpx;
  95. text-decoration: underline;
  96. }
  97. .r .bottom {
  98. text-align: right;
  99. }
  100. .contents-box .time {
  101. position: absolute;
  102. height: 34rpx;
  103. line-height: 34rpx;
  104. font-size: 24rpx;
  105. color: #000000;
  106. right: 20rpx;
  107. bottom: -40rpx;
  108. opacity: .39;
  109. }
  110. /* 回复 */
  111. .bot-button {
  112. width: 100%;
  113. margin-top: 14rpx;
  114. margin-bottom: 16rpx;
  115. text-align: right;
  116. }
  117. .call {
  118. width: 108rpx !important;
  119. height: 50rpx !important;
  120. background: #4DC2D4 !important;
  121. box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.1) !important;
  122. border-radius: 8rpx !important;
  123. font-size: 24rpx !important;
  124. font-family: PingFangSC-Medium, PingFang SC !important;
  125. color: #FFFFFF;
  126. text-shadow: 0px 0px 12rpx rgba(0, 0, 0, 0.1) !important;
  127. padding: 0 !important;
  128. }