web.scss 3.2 KB

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