web.scss 3.2 KB

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