chat.component.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .content {
  2. // padding-bottom: 12.8205vw;
  3. .scroll {
  4. overflow: hidden;
  5. padding-bottom: 12.8205vw;
  6. }
  7. .avatar {
  8. width: 10.2564vw;
  9. height: 10.2564vw;
  10. border-radius: 50%;
  11. }
  12. .message-box {
  13. margin-bottom: 7.6923vw;
  14. .time-box {
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. height: 12.8205vw;
  19. font-size: 3.0769vw;
  20. color: #fff;
  21. .time {
  22. background: rgba(0, 0, 0, 0.2);
  23. border-radius: 1.0256vw;
  24. padding: 0 2.5641vw;
  25. }
  26. }
  27. .text-item {
  28. position: relative;
  29. line-height: 1.5;
  30. font-size: 4.1026vw;
  31. padding: 2.5641vw;
  32. max-width: 56.4103vw;
  33. border-radius: 1.0256vw;
  34. word-wrap: break-word;
  35. min-height: 10.2564vw;
  36. min-width: 10.2564vw;
  37. }
  38. .msg-bloak {
  39. display: flex;
  40. padding: 0 4px;
  41. .text-item_left {
  42. background: #f1f1f1;
  43. }
  44. .text-item_left::before {
  45. content: "";
  46. position: absolute;
  47. left: -2.8205vw;
  48. top: calc(5.1282vw - 1.5385vw);
  49. border: 1.5385vw solid transparent;
  50. border-right-color: #f1f1f1;
  51. z-index: 20;
  52. }
  53. .text-item_right {
  54. background: #a2e65b;
  55. }
  56. .text-item_right::before {
  57. content: "";
  58. position: absolute;
  59. left: calc(100% - 0.2564vw);
  60. top: calc(5.1282vw - 1.5385vw);
  61. border: 1.5385vw solid transparent;
  62. border-left-color: #a2e65b;
  63. }
  64. }
  65. .self {
  66. justify-content: end;
  67. }
  68. .no_self {
  69. justify-content: start;
  70. }
  71. .text-item_status {
  72. // height: 10.2564vw;
  73. display: flex;
  74. align-items: center;
  75. // margin-right: 3.0769vw;
  76. font-size: 3.0769vw;
  77. color: #888;
  78. }
  79. .text-item_status--fail {
  80. color: red;
  81. }
  82. .text-item_status--success {
  83. color: #28bf39;
  84. }
  85. }
  86. .img-item {
  87. width: 35.8974vw;
  88. height: 25.641vw;
  89. object-fit: contain;
  90. }
  91. }
  92. .footer-tool {
  93. .tools {
  94. // width: 41.0256vw;
  95. display: flex;
  96. align-items: center;
  97. justify-content: space-between;
  98. flex-shrink: 0;
  99. ion-icon {
  100. font-size: 7.6923vw;
  101. }
  102. .splice {
  103. margin: 0 0.5128vw;
  104. }
  105. }
  106. .tools-maxwid {
  107. width: 41.0256vw;
  108. }
  109. }
  110. .emoji-content {
  111. background: #fbfbfb;
  112. height: 41.0256vw;
  113. overflow-y: scroll;
  114. .emoji-box {
  115. display: flex;
  116. flex-wrap: wrap;
  117. width: 100%;
  118. .emoji-item {
  119. width: 7.6923vw;
  120. height: 7.6923vw;
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. .emoji-img {
  125. width: 5.1282vw;
  126. height: 5.1282vw;
  127. }
  128. }
  129. .emoji-item__del {
  130. width: 7.6923vw;
  131. height: 7.6923vw;
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. .emoji-img {
  136. width: 5.1282vw;
  137. height: 5.1282vw;
  138. }
  139. }
  140. }
  141. }
  142. ion-popover {
  143. --width: 38.4615vw;
  144. }
  145. .clear {
  146. font-size: 3.5897vw;
  147. }
  148. .fl {
  149. margin-right: 2.5641vw;
  150. float: left;
  151. }
  152. .fr {
  153. float: right;
  154. margin-left: 2.5641vw;
  155. }