web.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. .TUIChat {
  2. width: 100%;
  3. height: 100%;
  4. display: flex;
  5. flex-direction: column;
  6. position: absolute;
  7. &-header {
  8. padding: 12Px;
  9. display: flex;
  10. justify-content: space-between;
  11. align-items: center;
  12. border-bottom: 2px solid #DFE1E3;
  13. background-color: #F1F2F3;
  14. h1 {
  15. font-size: 16Px;
  16. line-height: 30Px;
  17. }
  18. }
  19. &-safe-tips {
  20. padding: 12Px 20Px;
  21. background-color: rgba(255, 149, 0, 0.1);
  22. color: #ff8c39;
  23. line-height: 18Px;
  24. font-family: 'PingFang SC';
  25. font-style: normal;
  26. font-weight: 400;
  27. text-align: justify;
  28. font-size: 12Px;
  29. a {
  30. color: #006eff;
  31. float: right;
  32. }
  33. }
  34. .TUIChat-setting {
  35. position: absolute;
  36. right: 0;
  37. height: calc(100% - 40Px);
  38. z-index: 2;
  39. top: 40Px;
  40. }
  41. &-main {
  42. min-height: 0Px;
  43. flex: 1;
  44. position: relative;
  45. display: flex;
  46. flex-direction: column;
  47. }
  48. &-footer {
  49. border-top: 2px solid #DFE1E3;
  50. height: 173Px;
  51. display: flex;
  52. flex-direction: column;
  53. background-color: #f1f2f3;
  54. .input {
  55. flex: 1;
  56. position: relative;
  57. display: flex;
  58. flex-direction: column;
  59. textarea {
  60. width: 100%;
  61. line-height: 20Px;
  62. margin: 0;
  63. padding: 2Px 20Px;
  64. resize: none;
  65. box-sizing: border-box;
  66. border: none;
  67. background: no-repeat;
  68. &:focus {
  69. outline: none;
  70. border: none;
  71. }
  72. }
  73. p {
  74. padding: 12Px 20Px 20Px;
  75. }
  76. .input-btn {
  77. position: absolute;
  78. bottom: 20Px;
  79. right: 20Px;
  80. padding: 8Px 20Px;
  81. border-radius: 4Px;
  82. border: none;
  83. font-size: 14Px;
  84. text-align: center;
  85. line-height: 20Px;
  86. &:hover {
  87. .input-btn-hover {
  88. display: flex;
  89. }
  90. }
  91. &-hover {
  92. display: none;
  93. justify-content: center;
  94. align-items: center;
  95. position: absolute;
  96. right: 120%;
  97. word-break: keep-all;
  98. height: 30Px;
  99. white-space: nowrap;
  100. top: 0;
  101. bottom: 0;
  102. margin: auto 0;
  103. padding: 5Px 10Px;
  104. border-radius: 3Px;
  105. &::before {
  106. content: '';
  107. position: absolute;
  108. width: 0;
  109. height: 0;
  110. right: -20Px;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. .disabled {
  117. position: relative;
  118. &::before {
  119. content: '';
  120. position: absolute;
  121. width: 100%;
  122. height: 100%;
  123. }
  124. }
  125. }
  126. .TUI-message-list {
  127. flex: 1;
  128. height: 100%;
  129. overflow-y: auto;
  130. overflow-x: hidden;
  131. position: relative;
  132. background-color: #F1F2F3;
  133. .message-more {
  134. font-size: 0.9rem;
  135. padding: 5Px;
  136. text-align: center;
  137. }
  138. li:first-child {
  139. margin-top: 5Px;
  140. }
  141. li {
  142. display: flex;
  143. position: relative;
  144. padding: 0 20Px 30Px;
  145. flex-direction: column;
  146. .message-label {
  147. max-width: 50Px;
  148. }
  149. }
  150. .right {
  151. flex-direction: row-reverse;
  152. justify-content: flex-start;
  153. }
  154. .to-bottom-tip {
  155. position: sticky;
  156. bottom: 10Px;
  157. left: 100%;
  158. margin-right: 15Px;
  159. width: 92Px;
  160. height: 28Px;
  161. padding: 0 5Px;
  162. background: #ffffff;
  163. border: 1Px solid #e0e0e0;
  164. box-shadow: 0 4Px 12Px 0 rgba(0, 0, 0, 0.06);
  165. display: flex;
  166. flex-direction: row;
  167. align-items: center;
  168. justify-content: center;
  169. border-radius: 3Px;
  170. .icon {
  171. width: 10Px;
  172. height: 10Px;
  173. }
  174. &-cont {
  175. font-family: PingFangSC-Regular;
  176. font-weight: 400;
  177. font-size: 10Px;
  178. color: #147aff;
  179. letter-spacing: 0;
  180. text-align: center;
  181. padding-left: 3Px;
  182. }
  183. }
  184. }
  185. .dialog {
  186. position: absolute;
  187. z-index: 5;
  188. &-item {
  189. min-width: min-content;
  190. max-width: 220Px;
  191. width: 72Px;
  192. word-break: keep-all;
  193. top: 30Px;
  194. border-radius: 8Px;
  195. display: flex;
  196. flex-wrap: wrap;
  197. align-items: baseline;
  198. white-space: nowrap;
  199. li:first-child {
  200. margin-top: 0;
  201. }
  202. li {
  203. padding: 4Px 12Px;
  204. font-size: 12Px;
  205. line-height: 17Px;
  206. display: flex;
  207. flex-direction: row;
  208. align-items: center;
  209. flex-direction: row;
  210. span {
  211. padding-left: 4Px;
  212. }
  213. }
  214. }
  215. &-conversation {
  216. .avatar {
  217. width: 36Px;
  218. height: 36Px;
  219. margin: 0 5Px 0 8Px;
  220. }
  221. .name {
  222. font-size: 14Px;
  223. }
  224. }
  225. &-userInfo {
  226. box-sizing: border-box;
  227. padding: 0;
  228. width: 100%;
  229. height: 100%;
  230. display: flex;
  231. justify-content: flex-end;
  232. .userInfo-main {
  233. height: 100%;
  234. box-sizing: border-box;
  235. padding: 20Px;
  236. width: 240Px;
  237. header {
  238. display: flex;
  239. justify-content: space-between;
  240. align-items: center;
  241. }
  242. main {
  243. display: flex;
  244. padding: 20Px 0;
  245. ol {
  246. flex: 1;
  247. display: flex;
  248. flex-wrap: wrap;
  249. dl {
  250. position: relative;
  251. flex: 0 0 33%;
  252. display: flex;
  253. flex-direction: column;
  254. align-items: center;
  255. img {
  256. width: 40Px;
  257. height: 40Px;
  258. }
  259. .more {
  260. padding-top: 10Px;
  261. }
  262. dd {
  263. max-width: 60Px;
  264. overflow: hidden;
  265. text-overflow: ellipsis;
  266. white-space: nowrap;
  267. }
  268. .userInfo-mask {
  269. position: absolute;
  270. z-index: 5;
  271. padding: 20Px;
  272. left: 100%;
  273. li {
  274. display: flex;
  275. align-items: center;
  276. label {
  277. width: 60Px;
  278. }
  279. span {
  280. max-width: 200Px;
  281. word-break: keep-all;
  282. }
  283. }
  284. }
  285. }
  286. }
  287. }
  288. }
  289. }
  290. }
  291. .image-dialog {
  292. position: fixed;
  293. z-index: 5;
  294. width: 100vw;
  295. height: calc(100vh - 63Px);
  296. top: 63Px;
  297. left: 0;
  298. header {
  299. display: flex;
  300. justify-content: flex-end;
  301. width: 100%;
  302. box-sizing: border-box;
  303. padding: 10Px 10Px;
  304. }
  305. }
  306. .memberList-box {
  307. position: absolute;
  308. bottom: 128Px;
  309. width: 21.94rem;
  310. max-height: 10rem;
  311. overflow-y: auto;
  312. background: #ffffff;
  313. box-shadow: 0 0.06rem 0.63rem 0 rgba(2, 16, 43, 0.15);
  314. border-radius: 0.13rem;
  315. &-header {
  316. height: 2.5rem;
  317. padding-top: 5Px;
  318. cursor: pointer;
  319. &:hover {
  320. background: rgba(0, 110, 255, 0.1);
  321. }
  322. }
  323. span {
  324. font-family: PingFangSC-Regular;
  325. font-weight: 400;
  326. font-size: 0.88rem;
  327. color: #000000;
  328. letter-spacing: 0;
  329. padding-left: 5Px;
  330. }
  331. &-body {
  332. height: 2.5rem;
  333. cursor: pointer;
  334. display: flex;
  335. align-items: center;
  336. &:hover {
  337. background: rgba(0, 110, 255, 0.1);
  338. }
  339. }
  340. img {
  341. width: 1.5rem;
  342. height: 1.5rem;
  343. padding-left: 10Px;
  344. }
  345. .selected {
  346. background: rgba(0, 110, 255, 0.1);
  347. }
  348. }
  349. .reply {
  350. display: flex;
  351. width: 100%;
  352. &-box {
  353. flex: 1;
  354. align-items: center;
  355. display: flex;
  356. padding: 0 18Px;
  357. i {
  358. height: 3.5rem;
  359. border: 1Px solid #e8e8e9;
  360. }
  361. label {
  362. margin-top: 5Px;
  363. }
  364. &-show {
  365. flex: 1;
  366. display: flex;
  367. width: 0;
  368. white-space: nowrap;
  369. overflow: hidden;
  370. text-overflow: ellipsis;
  371. flex-direction: column;
  372. justify-content: center;
  373. padding-left: 6Px;
  374. span {
  375. height: 1.25rem;
  376. font-family: PingFangSC-Regular;
  377. font-weight: 400;
  378. font-size: 0.88rem;
  379. color: #bfc1c5;
  380. letter-spacing: 0;
  381. text-overflow: ellipsis;
  382. width: 100%;
  383. overflow: hidden;
  384. }
  385. }
  386. }
  387. }
  388. .reference {
  389. width: auto;
  390. padding-bottom: 0Px;
  391. margin: 0Px 100Px 10Px 10Px;
  392. display: flex;
  393. &-box {
  394. padding: 0;
  395. overflow: hidden;
  396. width: max-content;
  397. padding: 10Px;
  398. background-color: #fbfbfb;
  399. display: flex;
  400. border-radius: 8Px;
  401. &-show {
  402. width: max-content;
  403. padding-right: 10Px;
  404. text-overflow: ellipsis;
  405. white-space: nowrap;
  406. overflow: hidden;
  407. flex: 1;
  408. &-name {
  409. padding-right: 5Px;
  410. }
  411. span {
  412. width: max-content;
  413. font-family: 'PingFang SC';
  414. font-style: normal;
  415. font-weight: 400;
  416. font-size: 12Px;
  417. line-height: 17Px;
  418. color: #666666;
  419. }
  420. }
  421. }
  422. }
  423. .btn {
  424. padding: 8Px 20Px;
  425. border-radius: 4Px;
  426. border: none;
  427. font-size: 14Px;
  428. text-align: center;
  429. line-height: 20Px;
  430. }
  431. .toggleMask {
  432. &::before {
  433. position: fixed;
  434. z-index: 1;
  435. content: '';
  436. width: 100vw;
  437. height: 100vh;
  438. top: 0;
  439. left: 0;
  440. opacity: 0;
  441. }
  442. }
  443. ::-webkit-scrollbar {
  444. width: 6Px;
  445. height: 140Px;
  446. background-color: transparent;
  447. }
  448. ::-webkit-scrollbar-track {
  449. border-radius: 10Px;
  450. }
  451. ::-webkit-scrollbar-thumb {
  452. border-radius: 10Px;
  453. background-color: #9a999c;
  454. }