web.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. .tui-conversation-list {
  2. font-family: PingFangSC-Regular;
  3. font-weight: 400;
  4. letter-spacing: 0;
  5. flex: 1;
  6. overflow: auto;
  7. }
  8. .tui-conversation {
  9. &-item {
  10. padding: 12px;
  11. display: flex;
  12. align-items: center;
  13. cursor: pointer;
  14. box-sizing: border-box;
  15. overflow: hidden;
  16. .left {
  17. position: relative;
  18. width: 91rpx;
  19. height: 91rpx;
  20. .num {
  21. position: absolute;
  22. display: inline-block;
  23. right: 0;
  24. top: -5px;
  25. min-width: 10px;
  26. width: fit-content;
  27. padding: 0 2.5px;
  28. height: 15px;
  29. font-size: 10px;
  30. text-align: center;
  31. line-height: 15px;
  32. border-radius: 7.5px;
  33. }
  34. .num-notify {
  35. position: absolute;
  36. display: inline-block;
  37. right: 2px;
  38. top: -2px;
  39. width: 6px;
  40. height: 6px;
  41. font-size: 10px;
  42. text-align: center;
  43. line-height: 15px;
  44. border-radius: 65%;
  45. }
  46. .avatar {
  47. width: 30px;
  48. height: 30px;
  49. border-radius: 5px;
  50. }
  51. .online-status {
  52. box-sizing: border-box;
  53. position: absolute;
  54. width: 10px;
  55. height: 10px;
  56. left: 24px;
  57. top: 22px;
  58. border: 2px solid #fff;
  59. box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  60. border-radius: 50%;
  61. &-online {
  62. background: #29cc85;
  63. }
  64. &-offline {
  65. background: #a4a4a4;
  66. }
  67. }
  68. }
  69. .content-footer {
  70. line-height: 16px;
  71. display: flex;
  72. flex-direction: column;
  73. .time {
  74. font-size: 12px;
  75. line-height: 16px;
  76. display: inline-block;
  77. white-space: nowrap;
  78. }
  79. }
  80. .content {
  81. display: flex;
  82. flex: 1;
  83. padding-left: 8px;
  84. justify-content: space-between;
  85. box-sizing: border-box;
  86. overflow: hidden;
  87. .content-footer {
  88. align-items: flex-end;
  89. .icon {
  90. display: inline-block;
  91. width: 16px;
  92. height: 16px;
  93. margin: 0;
  94. }
  95. }
  96. }
  97. .content-header {
  98. flex: 1;
  99. display: flex;
  100. flex-direction: column;
  101. overflow: hidden;
  102. box-sizing: border-box;
  103. &-label {
  104. flex: 1;
  105. font-size: 14px;
  106. }
  107. .middle-box-content {
  108. font-weight: 400;
  109. font-size: 28rpx !important;
  110. color: #999999;
  111. font-style: normal;
  112. }
  113. .name {
  114. width: 404rpx;
  115. height: 44rpx;
  116. font-weight: 500;
  117. font-size: 32rpx;
  118. color: #333333;
  119. line-height: 40rpx;
  120. // width: 110px;
  121. letter-spacing: 0;
  122. // font-size: 14px;
  123. overflow: hidden;
  124. text-overflow: ellipsis;
  125. white-space: nowrap;
  126. }
  127. .middle-box {
  128. flex: 1;
  129. display: flex;
  130. align-items: center;
  131. &-at,
  132. &-draft {
  133. font-size: 12px;
  134. }
  135. &-content {
  136. flex: 1;
  137. width: 0;
  138. overflow: hidden;
  139. text-overflow: ellipsis;
  140. white-space: nowrap;
  141. font-size: 12px;
  142. line-height: 16px;
  143. }
  144. }
  145. }
  146. &-content {
  147. position: relative;
  148. .tui-conversation-item:hover {
  149. background: rgba(0, 110, 255, 0.1);
  150. }
  151. .dialog {
  152. position: absolute;
  153. z-index: 5;
  154. padding: 2px 20px;
  155. cursor: pointer;
  156. &-item {
  157. top: 30px;
  158. left: 164px;
  159. border-radius: 8px;
  160. }
  161. .conversation-options {
  162. padding: 5px 0;
  163. height: 17px;
  164. font-size: 12px;
  165. line-height: 17px;
  166. }
  167. &-item-up {
  168. top: -50px;
  169. }
  170. }
  171. }
  172. }
  173. }