trtc-room.wxss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  1. @charset "UTF-8";
  2. /* 1v1 视频电话模式 */
  3. .template-1v1 {
  4. width: 100vw;
  5. height: 100%;
  6. position: relative;
  7. background-image: linear-gradient(180deg, #000000 22%, #354C57 96%);
  8. filter: blur(40);
  9. }
  10. .template-1v1.vertical {
  11. height: 100vh;
  12. }
  13. .template-1v1 .view-container {
  14. width: 50vw;
  15. height: 100%;
  16. position: absolute;
  17. top: 0;
  18. z-index: 2;
  19. }
  20. .template-1v1.vertical .view-container {
  21. padding-bottom: 88%;
  22. height: 0;
  23. top: 17%;
  24. }
  25. .template-1v1 .pusher-container {
  26. position: absolute;
  27. right: 0;
  28. }
  29. .template-1v1 .pusher-container.fullscreen {
  30. width: 100vw;
  31. height: 100vh;
  32. top: 0;
  33. right: 0;
  34. }
  35. .template-1v1 .loading {
  36. position: absolute;
  37. top: 40vh;
  38. left: 50vw;
  39. transform: translate(-50%, 0);
  40. width: 300rpx;
  41. height: 250rpx;
  42. border-radius: 12rpx;
  43. background: rgba(0, 0, 0, 0.6);
  44. color: white;
  45. padding: 40rpx;
  46. display: flex;
  47. flex-direction: column;
  48. }
  49. .template-1v1 .loading-img {
  50. height: 200rpx;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. animation: rotate 2s linear infinite;
  55. }
  56. .template-1v1 .rotate-img {
  57. width: 160rpx;
  58. height: 160rpx;
  59. }
  60. .template-1v1 .loading-text {
  61. width: 100%;
  62. padding-top: 40rpx;
  63. text-align: center;
  64. }
  65. @keyframes rotate {
  66. 0% {
  67. transform: rotate(0deg);
  68. }
  69. 50% {
  70. transform: rotate(180deg);
  71. }
  72. 100% {
  73. transform: rotate(360deg);
  74. }
  75. }
  76. /* .template-1v1 .player-container:nth-child(1){
  77. width: 100vw;
  78. height: 100vh;
  79. } */
  80. .template-1v1 .handle-btns {
  81. position: absolute;
  82. z-index: 3;
  83. bottom: 15vh;
  84. width: 100vw;
  85. display: flex;
  86. flex-direction: row;
  87. justify-content: space-around;
  88. }
  89. .template-1v1 .bottom-btns {
  90. position: absolute;
  91. z-index: 3;
  92. bottom: 3vh;
  93. width: 100vw;
  94. display: flex;
  95. flex-direction: row;
  96. justify-content: space-around;
  97. }
  98. /* .template-1v1 image {
  99. width: 4vh;
  100. height: 4vh;
  101. } */
  102. .template-1v1 .btn-normal {
  103. width: 8vh;
  104. height: 8vh;
  105. box-sizing: border-box;
  106. display: flex;
  107. background: white;
  108. justify-content: center;
  109. align-items: center;
  110. border-radius: 50%;
  111. }
  112. .template-1v1 .btn-hangup .btn-image,
  113. .template-1v1 .btn-normal .btn-image {
  114. width: 4vh;
  115. height: 4vh;
  116. }
  117. .template-1v1 .btn-hangup {
  118. width: 8vh;
  119. height: 8vh;
  120. background: #f75c45;
  121. box-sizing: border-box;
  122. display: flex;
  123. justify-content: center;
  124. align-items: center;
  125. border-radius: 50%;
  126. }
  127. /* 9人 会议模版 */
  128. .template-grid {
  129. width: 100vw;
  130. height: 100vh;
  131. overflow: hidden;
  132. /* display: flex;
  133. flex-direction: row;
  134. flex-wrap: wrap; */
  135. }
  136. .column-layout {
  137. width: 100vw;
  138. height: 100vh;
  139. display: flex;
  140. flex-direction: column;
  141. }
  142. .column-layout .column-1 {
  143. flex: 1;
  144. }
  145. .column-layout .column-2 {
  146. position: relative;
  147. height: 100rpx;
  148. background-color: #242424;
  149. }
  150. .fullscreen-device-fix .column-layout .column-2 {
  151. height: 120rpx;
  152. }
  153. .menu {
  154. width: 100%;
  155. display: flex;
  156. flex-direction: row;
  157. justify-content: center;
  158. align-items: center;
  159. }
  160. .menu .menu-item {
  161. text-align: center;
  162. height: 100rpx;
  163. flex-grow: 1;
  164. display: flex;
  165. flex-direction: column;
  166. justify-content: center;
  167. align-items: center;
  168. }
  169. .menu .menu-item .image {
  170. width: 46rpx;
  171. height: 46rpx;
  172. }
  173. .more-menu {
  174. position: absolute;
  175. top: 0;
  176. }
  177. .more-menu .scroll-container {
  178. width: 100%;
  179. height: 100rpx;
  180. white-space: nowrap;
  181. }
  182. .more-menu .menu-item-container {
  183. width: 20%;
  184. display: inline-block;
  185. }
  186. .template-grid .grid-container {
  187. width: 100%;
  188. height: 100%;
  189. display: flex;
  190. flex-direction: row;
  191. flex-wrap: wrap;
  192. }
  193. .template-grid .grid-scroll-container {
  194. width: 100%;
  195. height: 100%;
  196. /* box-sizing: border-box; */
  197. /* overflow-y: scroll; */
  198. background-color: #000;
  199. }
  200. .grid-containe.overflow {
  201. height: auto;
  202. }
  203. .template-grid .view-container {
  204. position: relative;
  205. }
  206. .stream-0 .view-container {
  207. width: 100%;
  208. height: 100%;
  209. }
  210. .stream-1 .view-container {
  211. width: 100%;
  212. height: 50%;
  213. }
  214. .stream-2 .view-container {
  215. width: 50%;
  216. height: 50%;
  217. }
  218. .stream-2 .view-container:nth-child(1) {
  219. width: 100%;
  220. height: 50%;
  221. }
  222. .stream-3 .view-container {
  223. width: 50%;
  224. height: 50%;
  225. }
  226. .stream-4 .view-container {
  227. width: 50%;
  228. height: 33.3%;
  229. }
  230. .stream-4 .view-container:nth-child(1) {
  231. width: 100%;
  232. height: 33.3%;
  233. }
  234. .stream-5 .view-container {
  235. width: 50%;
  236. height: 33.3%;
  237. }
  238. .stream-6 .view-container {
  239. width: 33.3%;
  240. height: 33.3%;
  241. }
  242. .stream-6 .view-container:nth-child(1) {
  243. width: 100%;
  244. height: 33.3%;
  245. }
  246. .stream-7 .view-container {
  247. width: 33.3%;
  248. height: 33.3%;
  249. }
  250. .stream-7 .view-container:nth-child(1) {
  251. width: 50%;
  252. height: 33.3%;
  253. }
  254. .stream-7 .view-container:nth-child(2) {
  255. width: 50%;
  256. height: 33.3%;
  257. }
  258. .stream-8 .view-container {
  259. width: 33.3%;
  260. height: 33.3%;
  261. }
  262. .stream-even .view-container {
  263. width: 50%;
  264. height: 50%;
  265. }
  266. .stream-odd .view-container {
  267. width: 50%;
  268. height: 50%;
  269. }
  270. .stream-odd .view-container:last-child {
  271. width: 100%;
  272. height: 50%;
  273. }
  274. .template-grid .operation-bar {
  275. position: absolute;
  276. bottom: 6rpx;
  277. width: 100%;
  278. display: flex;
  279. flex-direction: row;
  280. justify-content: center;
  281. }
  282. .operation-bar .operation-item-container {
  283. width: auto;
  284. display: flex;
  285. flex-direction: row;
  286. justify-content: center;
  287. background: rgba(0, 0, 0, 0.3);
  288. border-radius: 10rpx;
  289. }
  290. .template-grid .operation-bar .operation-item {
  291. width: 64rpx;
  292. height: 64rpx;
  293. /* flex-grow: 1; */
  294. display: flex;
  295. flex-direction: column;
  296. justify-content: center;
  297. align-items: center;
  298. text-align: center;
  299. }
  300. .operation-item .item-image {
  301. width: 36rpx;
  302. height: 36rpx;
  303. }
  304. .template-grid .volume-progress {
  305. width: 100%;
  306. position: absolute;
  307. bottom: 0;
  308. }
  309. .template-grid .btn-normal {
  310. width: 64rpx;
  311. height: 64rpx;
  312. margin: 0 6rpx;
  313. box-sizing: border-box;
  314. display: flex;
  315. background: white;
  316. justify-content: center;
  317. align-items: center;
  318. border-radius: 50%;
  319. }
  320. .template-grid .btn-normal .btn-image {
  321. width: 36rpx;
  322. height: 36rpx;
  323. }
  324. .template-grid .btn-hangup {
  325. background: #f75c45;
  326. }
  327. .template-grid .panel {
  328. position: absolute;
  329. background: rgba(0, 0, 0, 0.8);
  330. width: 90vw;
  331. height: auto;
  332. z-index: 999;
  333. top: 50vh;
  334. left: 50vw;
  335. transform: translate(-50%, -50%);
  336. color: white;
  337. display: flex;
  338. flex-direction: column;
  339. padding: 20rpx 0;
  340. border-radius: 10rpx;
  341. box-sizing: border-box;
  342. font-size: 14px;
  343. }
  344. .panel .close-btn {
  345. position: absolute;
  346. top: 0;
  347. right: 0;
  348. padding: 5px 10px;
  349. }
  350. .panel .panel-header {
  351. text-align: center;
  352. padding-bottom: 20rpx;
  353. }
  354. .panel .panel-tips {
  355. color: #999;
  356. text-align: center;
  357. }
  358. .panel .panel-body {
  359. flex: 1;
  360. max-height: 50vh;
  361. }
  362. .panel .panel-body .scroll-container {
  363. width: 100%;
  364. height: 100%;
  365. box-sizing: border-box;
  366. }
  367. .memberlist-panel .panel-body {
  368. height: 50vh;
  369. }
  370. .memberlist-panel .member-item {
  371. display: flex;
  372. /* border-bottom: 1px solid #999; */
  373. margin: 16rpx 16rpx 16rpx 32rpx;
  374. }
  375. .memberlist-panel .member-id {
  376. width: 30%;
  377. font-size: 12px;
  378. line-height: 64rpx;
  379. }
  380. .memberlist-panel .member-btns {
  381. width: 70%;
  382. display: flex;
  383. justify-content: flex-end;
  384. }
  385. .memberlist-panel .member-btns .btn-normal {
  386. margin-left: 0;
  387. }
  388. .memberlist-panel .member-btns .btn {
  389. margin-right: 0;
  390. }
  391. .setting-panel .panel-body {
  392. height: 50vh;
  393. }
  394. .setting-panel .setting-option {
  395. display: flex;
  396. justify-content: space-between;
  397. margin: 16rpx 16rpx 16rpx 32rpx;
  398. /* box-sizing: border-box;
  399. padding: 12rpx 16rpx 12rpx 32rpx; */
  400. }
  401. .setting-panel .setting-option .label {
  402. /* line-height: 64rpx; */
  403. display: flex;
  404. flex-direction: column;
  405. justify-content: center;
  406. align-items: center;
  407. }
  408. .setting-panel .setting-switch {
  409. transform: scale(0.8);
  410. margin-right: -12rpx;
  411. }
  412. .bgm-panel .panel-body {
  413. height: auto;
  414. }
  415. .bgm-panel .setting-option {
  416. height: 60rpx;
  417. display: flex;
  418. flex-direction: row;
  419. margin: 16rpx 16rpx 16rpx 32rpx;
  420. }
  421. .bgm-panel .setting-option .label {
  422. width: 140rpx;
  423. line-height: 60rpx;
  424. }
  425. .bgm-panel .setting-option .slider-content {
  426. flex: 1;
  427. line-height: 60rpx;
  428. }
  429. .bgm-panel .setting-option .slider-content slider {
  430. transform: scale(0.9);
  431. margin: 0;
  432. }
  433. .bgm-panel .setting-option .slider-content progress {
  434. transform: scale(0.9);
  435. margin-top: 28rpx;
  436. }
  437. .bgm-panel .menu {
  438. padding: 16rpx 32rpx 16rpx 32rpx;
  439. box-sizing: border-box;
  440. }
  441. .bgm-panel .menu .menu-item {
  442. height: 80rpx;
  443. background-color: #333;
  444. }
  445. .template-grid .masker {
  446. position: absolute;
  447. top: 0;
  448. width: 100vw;
  449. height: 100vh;
  450. background: rgba(0, 0, 0, 0.4);
  451. }
  452. .template-grid .no-stream,
  453. .template-grid .no-video {
  454. position: absolute;
  455. top: 0;
  456. left: 0;
  457. width: 100%;
  458. height: 100%;
  459. display: flex;
  460. flex-direction: column;
  461. align-items: center;
  462. justify-content: center;
  463. box-sizing: border-box;
  464. color: #fff;
  465. background-color: rgba(0, 0, 0, 0.4);
  466. font-size: 12px;
  467. }
  468. .template-grid .audio-volume,
  469. .template-grid .no-audio {
  470. position: absolute;
  471. bottom: 20rpx;
  472. left: 20rpx;
  473. width: 36rpx;
  474. height: 36rpx;
  475. }
  476. .no-stream .image,
  477. .no-video .image {
  478. width: 60rpx;
  479. height: 60rpx;
  480. }
  481. .audio-volume .image,
  482. .no-audio .image {
  483. width: 36rpx;
  484. height: 36rpx;
  485. position: absolute;
  486. /*android 的bug ,image absolute后会向上漂移几个像素,如果要对其必须都设置absolute*/
  487. }
  488. .audio-active {
  489. position: absolute;
  490. left: 0;
  491. bottom: 0;
  492. width: 100%;
  493. height: 0;
  494. overflow: hidden;
  495. }
  496. .audio-active .image {
  497. bottom: 0;
  498. }
  499. .slide-up-tips {
  500. position: absolute;
  501. bottom: -100rpx;
  502. left: 50%;
  503. transform: translate(-50%, 0);
  504. width: 200rpx;
  505. height: auto;
  506. display: flex;
  507. flex-direction: column;
  508. align-items: center;
  509. justify-content: center;
  510. box-sizing: border-box;
  511. font-size: 12px;
  512. color: #fff;
  513. background-color: rgba(0, 0, 0, 0.4);
  514. box-sizing: border-box;
  515. padding: 20rpx;
  516. border-radius: 10rpx;
  517. opacity: 0;
  518. }
  519. .slide-up-tips .image {
  520. width: 100rpx;
  521. height: 100rpx;
  522. }
  523. .player-placeholder {
  524. display: flex;
  525. flex-direction: column;
  526. align-items: center;
  527. justify-content: center;
  528. }
  529. .player-placeholder .image {
  530. width: 100rpx;
  531. height: 100rpx;
  532. }
  533. .pages-container {
  534. width: auto;
  535. left: 50%;
  536. transform: translate(-50%, 0);
  537. height: 20rpx;
  538. position: absolute;
  539. bottom: 12%;
  540. display: flex;
  541. flex-direction: row;
  542. align-items: center;
  543. justify-content: center;
  544. }
  545. .pages-container .page-item {
  546. width: 20rpx;
  547. height: 20rpx;
  548. border-radius: 50%;
  549. margin: 0 8rpx;
  550. background-color: rgba(99, 99, 99, 0.5);
  551. }
  552. .pages-container .page-item.current {
  553. background-color: #fff;
  554. }
  555. .radio-group-no-box {
  556. display: inline-block;
  557. color: #006eff;
  558. background-color: #ffffff;
  559. border: 1px solid #006eff;
  560. border-radius: 4px;
  561. margin-left: 180rpx;
  562. font-size: 12px;
  563. }
  564. .radio-group-no-box .radio-item {
  565. padding: 5px 8px;
  566. text-align: center;
  567. border-right: 1px solid #006eff;
  568. display: inline-block;
  569. }
  570. .radio-group-no-box .radio-item:last-child {
  571. border-right: none;
  572. }
  573. .radio-group-no-box .radio-item.selected {
  574. color: #ffffff;
  575. background-color: #006eff;
  576. }
  577. .radio-group-no-box radio {
  578. display: none;
  579. }
  580. .picker-label {
  581. display: inline-block;
  582. color: #006eff;
  583. background-color: #ffffff;
  584. border: 1px solid #006eff;
  585. border-radius: 4px;
  586. padding: 5px 8px;
  587. text-align: center;
  588. font-size: 12px;
  589. }
  590. /* 通过方法自定义模式 */
  591. .template-custom {
  592. /* 绝对定位模式 pusher 和 player 都用绝对定位*/
  593. width: 100vw;
  594. height: 100vh;
  595. position: relative;
  596. }
  597. .template-custom .pusher-container,
  598. .template-custom .player-container {
  599. position: absolute;
  600. }
  601. .plv-rtc-nameplate {
  602. position: absolute;
  603. bottom: 50px;
  604. left: 13%;
  605. transform: translateX(-13%);
  606. }
  607. .plv-rtc-nameplate.audio {
  608. top: 0;
  609. width: 100%;
  610. height: 100%;
  611. }
  612. .plv-rtc-nameplate__bg__img {
  613. width: 100%;
  614. height: 100%;
  615. background-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.25) 100%);
  616. filter: blur(10px);
  617. }
  618. .plv-rtc-nameplate__content {
  619. position: absolute;
  620. box-sizing: content-box;
  621. display: flex;
  622. justify-items: center;
  623. align-items: center;
  624. border-radius: 21px;
  625. }
  626. .plv-rtc-nameplate__content.audio {
  627. top: 50%;
  628. left: 50%;
  629. transform: translate(-50%, -50%);
  630. text-align: center;
  631. flex-direction: column;
  632. }
  633. .plv-rtc-nameplate__content.video {
  634. padding: 0 6px 0 2px;
  635. width: 148px;
  636. height: 32px;
  637. background: rgba(0, 0, 0, 0.3);
  638. }
  639. .plv-rtc-nameplate__content__status {
  640. display: flex;
  641. align-items: center;
  642. justify-content: center;
  643. }
  644. .plv-rtc-nameplate__content__nickname {
  645. width: 96px;
  646. height: 22px;
  647. font-size: 16px;
  648. color: #FFFFFF;
  649. margin: 0 4px;
  650. text-align: center;
  651. overflow: hidden;
  652. text-overflow: ellipsis;
  653. white-space: nowrap;
  654. }
  655. .plv-rtc-nameplate__content__avatar {
  656. width: 28px;
  657. height: 28px;
  658. border-radius: 100%;
  659. }
  660. .plv-rtc-nameplate__content__avatar.audio {
  661. background-color: #FFFFFF;
  662. width: 80px;
  663. height: 80px;
  664. padding: 2px;
  665. background-color: #fff;
  666. }
  667. .plv-rtc-nameplate__content__avatar.audio image {
  668. margin-bottom: 6px;
  669. width: 80px;
  670. height: 80px;
  671. }
  672. .plv-rtc-nameplate__content__avatar.video image {
  673. width: 100%;
  674. height: 100%;
  675. }
  676. .plv-rtc-nameplate__content__mic {
  677. width: 12px;
  678. height: 16px;
  679. }
  680. .plv-rtc-nameplate__content__avatar__image {
  681. border-radius: 100%;
  682. }
  683. .pusher {
  684. width: 100%;
  685. height: 100%;
  686. position: absolute;
  687. }
  688. .player {
  689. width: 100%;
  690. height: 100%;
  691. position: absolute;
  692. }
  693. .debug-info {
  694. max-width: 100vw;
  695. max-height: 90vh;
  696. box-sizing: border-box;
  697. overflow-y: scroll;
  698. position: absolute;
  699. z-index: 9999;
  700. background-color: rgba(0, 0, 0, 0.5);
  701. color: #fff;
  702. bottom: 20rpx;
  703. left: 0;
  704. padding: 10rpx;
  705. font-size: 12px;
  706. }
  707. .debug-info-btn .debug-btn,
  708. .debug-info .debug-btn {
  709. padding: 0 8px;
  710. min-height: 18px;
  711. width: auto;
  712. font-size: 12px;
  713. line-height: 18px;
  714. display: inline-block;
  715. color: #06ae56;
  716. background-color: #f2f2f2;
  717. }
  718. .debug-info .debug-btn.false {
  719. color: #727272;
  720. }
  721. .debug-info-btn .debug-btn,
  722. .debug-info .button-hover {
  723. background-color: #dbdbdb;
  724. }
  725. .debug-info .close-btn {
  726. position: absolute;
  727. top: 0;
  728. right: 0;
  729. padding: 5px 10px;
  730. }
  731. .debug-info .text.true {
  732. color: #1fff8b;
  733. }
  734. .debug-info .text.false {
  735. color: #ff2e2e;
  736. }
  737. .debug-info-btn {
  738. position: absolute;
  739. z-index: 9998;
  740. bottom: 160rpx;
  741. left: 0;
  742. }
  743. .trtc-room-container {
  744. height: 100%;
  745. width: 100%;
  746. }
  747. .trtc-room-container .btn {
  748. display: inline-block;
  749. width: auto;
  750. height: 60rpx;
  751. min-height: 60rpx;
  752. line-height: 60rpx;
  753. font-size: 12px;
  754. font-weight: normal;
  755. padding: 0 10rpx;
  756. color: #006eff;
  757. background-color: #f2f2f2;
  758. margin: 0 16rpx;
  759. }
  760. .trtc-room-container .btn.active {
  761. color: #f2f2f2;
  762. background-color: #006eff;
  763. }
  764. .trtc-room-container .btn-hover {
  765. background-color: #d1d1d1;
  766. }
  767. .im-panel {
  768. position: absolute;
  769. z-index: 9;
  770. display: flex;
  771. flex-direction: column;
  772. align-items: center;
  773. justify-content: center;
  774. width: 90vw;
  775. height: 320rpx;
  776. top: 50vh;
  777. left: 50vw;
  778. transform: translate(-50%, -50%);
  779. padding: 20rpx 0;
  780. border-radius: 10rpx;
  781. font-size: 12px;
  782. /* bottom: 25vh; */
  783. color: #fff;
  784. background-color: rgba(0, 0, 0, 0.8);
  785. }
  786. .im-panel .close-btn {
  787. position: absolute;
  788. top: 0;
  789. right: -3px;
  790. padding: 5px 10px;
  791. z-index: 99;
  792. }
  793. .message-panel-body {
  794. width: 100%;
  795. height: 80%;
  796. overflow-x: hidden;
  797. overflow-y: scroll;
  798. }
  799. .message-scroll-container {
  800. height: 100%;
  801. /* box-sizing: border-box;
  802. padding: 0 20rpx; */
  803. }
  804. .message-list {
  805. width: 100%;
  806. box-sizing: border-box;
  807. padding: 0 20rpx;
  808. /* display: flex;
  809. flex-direction: column; */
  810. }
  811. .message-item {
  812. width: 100%;
  813. /* height: 36rpx; */
  814. /* padding: 0 20rpx; */
  815. padding-bottom: 10rpx;
  816. display: flex;
  817. flex-direction: row;
  818. }
  819. .message-item .user-name {
  820. width: 20%;
  821. color: #2483ff;
  822. overflow: hidden;
  823. text-overflow: ellipsis;
  824. white-space: nowrap;
  825. }
  826. .user-name.mine {
  827. color: #ff7424;
  828. }
  829. .message-item .separate {
  830. padding: 0 5px;
  831. color: #fff;
  832. }
  833. .message-item .message-content {
  834. word-wrap: break-word;
  835. word-break: break-all;
  836. padding-left: 20rpx;
  837. position: relative;
  838. max-width: 80%;
  839. box-sizing: border-box;
  840. }
  841. .message-content::after {
  842. content: ':';
  843. position: absolute;
  844. left: 0;
  845. top: 0;
  846. }
  847. .message-panel-bottom {
  848. width: 100%;
  849. height: 50rpx;
  850. box-sizing: border-box;
  851. padding: 0 20rpx 0;
  852. margin-top: 20rpx;
  853. display: flex;
  854. flex-direction: row;
  855. }
  856. .message-input-container {
  857. flex-grow: 1;
  858. }
  859. .message-input-container .message-input {
  860. font-size: 12px;
  861. padding-left: 20rpx;
  862. border-radius: 10rpx;
  863. height: 100%;
  864. background-color: rgba(0, 0, 0, 0.1);
  865. }
  866. .message-send-btn .btn {
  867. margin-right: 0;
  868. height: 50rpx;
  869. min-height: 50rpx;
  870. line-height: 50rpx;
  871. }
  872. .volume-animation {
  873. position: absolute;
  874. width: 80rpx;
  875. height: 80rpx;
  876. left: 0;
  877. top: initial;
  878. bottom: 20rpx;
  879. z-index: 9;
  880. /* transform: translate(-50%, 0); */
  881. }
  882. .volume-animation .image {
  883. position: absolute;
  884. width: 80rpx;
  885. height: 80rpx;
  886. }
  887. .volume-animation .audio-active {
  888. animation: viewlinear 1.5s linear infinite;
  889. }
  890. @keyframes viewlinear {
  891. /** 第一种写法**/
  892. 0% {
  893. height: 0;
  894. }
  895. 100% {
  896. height: 100%;
  897. }
  898. }
  899. .none,
  900. .view-container.none,
  901. .template-grid .view-container.none,
  902. .template-1v1 .view-container.none {
  903. display: none !important;
  904. }