web.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. .search-result-list-item {
  2. padding: 8px 10px;
  3. border-bottom: 1px solid rgba(0,0,0,0.1);
  4. cursor: pointer;
  5. &-image {
  6. display: inline-block;
  7. width: 100px;
  8. height: 100px;
  9. max-width: 100px;
  10. max-height: 100px;
  11. overflow: hidden;
  12. box-sizing: content-box;
  13. border: 1px solid #f1f1f1;
  14. padding: 0;
  15. margin: 5px;
  16. }
  17. &-file {
  18. border: none;
  19. }
  20. .info {
  21. display: flex;
  22. flex-direction: row;
  23. justify-content: center;
  24. &-left {
  25. &-avatar {
  26. width: 36px;
  27. height: 36px;
  28. border-radius: 5px;
  29. }
  30. }
  31. &-main {
  32. flex: 1;
  33. padding: 0 10px;
  34. overflow: hidden;
  35. &-name,
  36. &-content {
  37. flex: 1;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. white-space: nowrap;
  41. }
  42. &-name {
  43. color: #333;
  44. font-size: 14px;
  45. height: 20px;
  46. }
  47. &-content {
  48. color: #999;
  49. font-size: 12px;
  50. .highlight {
  51. color: #007aff;
  52. }
  53. .normal {
  54. color: #999;
  55. }
  56. }
  57. }
  58. &-right {
  59. width: fit-content;
  60. &-time {
  61. font-weight: 400;
  62. font-size: 12px;
  63. color: #999;
  64. letter-spacing: 0;
  65. white-space: nowrap;
  66. }
  67. }
  68. }
  69. .bubble {
  70. display: flex;
  71. flex-direction: row;
  72. justify-content: center;
  73. &-left {
  74. &-avatar {
  75. width: 36px;
  76. height: 36px;
  77. border-radius: 5px;
  78. }
  79. }
  80. &-main {
  81. flex: 1;
  82. overflow: hidden;
  83. display: flex;
  84. flex-direction: column;
  85. padding: 0 8px;
  86. &-name {
  87. max-width: 100%;
  88. width: fit-content;
  89. padding-bottom: 4px;
  90. font-weight: 400;
  91. font-size: 12px;
  92. color: #999;
  93. letter-spacing: 0;
  94. overflow: hidden;
  95. text-overflow: ellipsis;
  96. white-space: nowrap;
  97. }
  98. &-content {
  99. max-width: 100%;
  100. width: fit-content;
  101. box-sizing: border-box;
  102. padding: 12px;
  103. font-weight: 400;
  104. font-size: 14px;
  105. color: #000;
  106. letter-spacing: 0;
  107. word-wrap: break-word;
  108. word-break: break-all;
  109. overflow: hidden;
  110. background: #eff0f1;
  111. border-radius: 0 10px 10px;
  112. .highlight {
  113. background-color: #007aff33;
  114. }
  115. .normal {
  116. color: #1f2329;
  117. }
  118. }
  119. }
  120. &-right {
  121. display: flex;
  122. flex-direction: column;
  123. align-items: flex-end;
  124. &-time {
  125. font-weight: 400;
  126. font-size: 12px;
  127. color: #999;
  128. letter-spacing: 0;
  129. white-space: nowrap;
  130. }
  131. &-to {
  132. cursor: pointer;
  133. font-weight: 400;
  134. font-size: 12px;
  135. color: #007aff;
  136. letter-spacing: 0;
  137. white-space: nowrap;
  138. }
  139. }
  140. }
  141. .file {
  142. display: flex;
  143. flex-direction: column;
  144. justify-content: center;
  145. &-header {
  146. flex: 1;
  147. padding: 10px 0;
  148. overflow: hidden;
  149. display: flex;
  150. flex-direction: row;
  151. justify-content: center;
  152. align-items: center;
  153. &-avatar {
  154. width: 24px;
  155. height: 24px;
  156. border-radius: 4px;
  157. margin-right: 3px;
  158. }
  159. &-name {
  160. flex: 1;
  161. }
  162. &-name,
  163. &-time,
  164. &-to {
  165. color: #666;
  166. font-size: 14px;
  167. height: 24px;
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. white-space: nowrap;
  171. }
  172. &-to {
  173. cursor: pointer;
  174. font-weight: 400;
  175. color: #007aff;
  176. letter-spacing: 0;
  177. white-space: nowrap;
  178. padding-right: 3px;
  179. }
  180. }
  181. &-main-content {
  182. padding: 10px;
  183. background-color: #f1f1f1;
  184. }
  185. }
  186. .image {
  187. width: 100px;
  188. height: 100px;
  189. max-width: 100px;
  190. max-height: 100px;
  191. overflow: hidden;
  192. box-sizing: content-box;
  193. .image-container {
  194. width: 100px;
  195. height: 100px;
  196. max-width: 100px;
  197. max-height: 100px;
  198. overflow: hidden;
  199. position: relative;
  200. .image-container-hover {
  201. position: absolute;
  202. bottom: 0;
  203. width: 100%;
  204. height: 40%;
  205. background-color: rgba(0,0,0,0.3);
  206. .image-container-hover-text {
  207. width: 100%;
  208. height: 100%;
  209. font-size: 12px;
  210. display: flex;
  211. justify-content: center;
  212. align-items: center;
  213. color: #fff;
  214. cursor: pointer;
  215. user-select: none;
  216. }
  217. }
  218. }
  219. }
  220. }
  221. .hover-info {
  222. border-radius: 5px;
  223. background-color: #f5f5f5;
  224. }
  225. .hover-bubble {
  226. background-color: #f5f5f5;
  227. }