chatroom.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. .avatar-box {
  2. width: 1.7067rem;
  3. height: 1.7067rem;
  4. margin: 0.56rem auto 0;
  5. border: 1px #ed5d18 solid;
  6. border-radius: 50%;
  7. // background-image: url('@/assets/images/avatar_default.jpg');
  8. background-size: 100%;
  9. background-repeat: no-repeat;
  10. position: fixed;
  11. top: 0.2667rem;
  12. left: 0.2667rem;
  13. z-index: 100;
  14. overflow: hidden;
  15. .tips {
  16. width: 100%;
  17. height: 0.5rem;
  18. position: absolute;
  19. background: rgba(0, 0, 0, 0.5);
  20. bottom: 0;
  21. left: 0;
  22. text-align: center;
  23. line-height: 0.5rem;
  24. font-size: 0.22rem;
  25. color: #ed5d18;
  26. }
  27. input {
  28. width: 100%;
  29. height: 100%;
  30. opacity: 0;
  31. position: relative;
  32. z-index: 10;
  33. cursor: pointer;
  34. }
  35. }
  36. #PageRtcLive {
  37. position: absolute;
  38. left: 0;
  39. bottom: 0;
  40. // height: 7.31rem;
  41. width: 100%;
  42. z-index: 999;
  43. // background: rgba(0, 0, 0, 0.1);
  44. padding: 0 0.44rem;
  45. box-sizing: border-box;
  46. // pointer-events: none;
  47. .share {
  48. position: fixed;
  49. top: 0.56rem;
  50. right: 0.24rem;
  51. width: 0.52rem;
  52. height: 0.52rem;
  53. background: url(/@/assets/images/rtcLive/vr@2x.png);
  54. background-size: 100% 100%;
  55. }
  56. .member_number {
  57. // width: 1.67rem;
  58. height: 0.9rem;
  59. background: rgba(0, 0, 0, 0.15);
  60. border-radius: 0.8rem;
  61. position: fixed;
  62. top: 0.56rem;
  63. left: 0.64rem;
  64. padding: 0;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. .avatar {
  69. width: 0.9rem;
  70. height: 0.9rem;
  71. background-size: 100% 100%;
  72. border-radius: 50%;
  73. margin-right: 0.07rem;
  74. }
  75. // .members {
  76. // width: 0.42rem;
  77. // height: 0.42rem;
  78. // background: url(/@/assets/images/rtcLive/members@2x.png);
  79. // background-size: 100% 100%;
  80. // margin-right: 0.07rem;
  81. // }
  82. .content {
  83. padding: 0 0.3rem 0 0.1rem;
  84. display: flex;
  85. flex-direction: column;
  86. align-items: flex-start;
  87. justify-content: center;
  88. .title {
  89. font-size: 13px;
  90. }
  91. > div {
  92. padding: 0;
  93. font-size: 12px;
  94. line-height: 14px;
  95. }
  96. }
  97. span {
  98. font-size: 0.24rem;
  99. color: #fff;
  100. }
  101. }
  102. .room_valid {
  103. // width: 1.67rem;
  104. height: 0.5rem;
  105. background: rgba(0, 0, 0, 0.3);
  106. border-radius: 0.25rem;
  107. position: fixed;
  108. top: 0.56rem;
  109. left: 0.44rem;
  110. padding: 0.07rem 0.17rem;
  111. display: flex;
  112. align-items: center;
  113. justify-content: center;
  114. .members {
  115. width: 0.42rem;
  116. height: 0.42rem;
  117. background: url(/@/assets/images/rtcLive/members@2x.png);
  118. background-size: 100% 100%;
  119. margin-right: 0.07rem;
  120. }
  121. span {
  122. font-size: 0.24rem;
  123. color: #fff;
  124. }
  125. }
  126. .controlBar {
  127. width: 9.51rem;
  128. height: 1.173333rem;
  129. background: rgba(0, 0, 0, 0.5);
  130. border-radius: 0.67rem;
  131. border: 0.03rem solid rgba(255, 255, 255, 0.1);
  132. margin: 0.67rem auto 0;
  133. // position: absolute;
  134. position: fixed;
  135. z-index: 9999;
  136. left: 50%;
  137. transform: translateX(-50%);
  138. padding: 0 0.266667rem;
  139. box-sizing: border-box;
  140. bottom: 0.94rem;
  141. display: flex;
  142. align-items: center;
  143. justify-content: space-between;
  144. .saySomething {
  145. color: #fff;
  146. // font-size: 0.42rem;
  147. height: 0.8rem;
  148. position: relative;
  149. display: flex;
  150. align-items: center;
  151. justify-content: center;
  152. background: rgba(0, 0, 0, 0.5);
  153. padding: 0 0.2rem 0 0.2rem;
  154. border-radius: 0.64rem;
  155. width: 100%;
  156. display: flex;
  157. align-items: center;
  158. justify-content: space-between;
  159. .disSpeakBtn {
  160. width: 0.533333rem;
  161. height: 0.533333rem;
  162. background: url(/@/assets/images/rtcLive/pop-up_screen_on@2x.png) no-repeat;
  163. background-size: 100% 100%;
  164. cursor: pointer;
  165. &.dis {
  166. background: url(/@/assets/images/rtcLive/pop-up_screen_off@2x.png) no-repeat;
  167. background-size: 100% 100%;
  168. }
  169. }
  170. .speakIcon {
  171. width: 0.32rem;
  172. height: 0.32rem;
  173. background: url(/@/assets/images/rtcLive/Input_norma@2x.png);
  174. background-size: 100% 100%;
  175. display: block;
  176. margin-right: 0.1rem;
  177. &.dis {
  178. background: url(/@/assets/images/rtcLive/Input_disabled@2x.png);
  179. background-size: 100% 100%;
  180. }
  181. }
  182. span {
  183. font-size: 0.266667rem;
  184. // overflow: hidden;
  185. // white-space: nowrap;
  186. // text-overflow: ellipsis;
  187. }
  188. // &::after {
  189. // content: "";
  190. // position: absolute;
  191. // width: 0.04rem;
  192. // height: 0.44rem;
  193. // background: #ffffff;
  194. // border-radius: 0.03rem;
  195. // top: 50%;
  196. // transform: translateY(-50%);
  197. // right: -0.28rem;
  198. // }
  199. }
  200. .control_btn {
  201. display: flex;
  202. align-items: center;
  203. justify-content: space-between;
  204. margin-left: 0.2rem;
  205. > div {
  206. // width: 0.56rem;
  207. // height: 0.56rem;
  208. width: 0.65rem;
  209. height: 0.65rem;
  210. // font-size: 0.56rem;
  211. // background: #FD5151;
  212. margin-right: 0.18rem;
  213. // &.iconexit {
  214. // // width: 0.56rem;
  215. // // height: 0.56rem;
  216. // color: #fd5151;
  217. // // background: #fff;
  218. // // border-radius: 50%;
  219. // // overflow: hidden;
  220. // }
  221. &.brushesBack {
  222. background: url(/@/assets/images/rtcLive/revocation@2x.png);
  223. background-size: 100% 100%;
  224. }
  225. &.brushes {
  226. // background: url(/@/assets/images/rtcLive/brushes@2x.png);
  227. background: url(/@/assets/images/rtcLive/brushes@2x.png);
  228. background-size: 100% 100%;
  229. }
  230. &.brushed {
  231. background: url(/@/assets/images/rtcLive/brushes_selected@2_1.png);
  232. background-size: 100% 100%;
  233. }
  234. &.invitation {
  235. background: url(/@/assets/images/rtcLive/invitation@2x.png);
  236. background-size: 100% 100%;
  237. }
  238. &.members {
  239. background: url(/@/assets/images/rtcLive/members@2x.png);
  240. background-size: 100% 100%;
  241. }
  242. &.mic_on {
  243. background: url(/@/assets/images/rtcLive/mic_on@2x.png);
  244. background-size: 100% 100%;
  245. }
  246. &.mic_no {
  247. background: url(/@/assets/images/rtcLive/mic_off_50@2x.png);
  248. background-size: 100% 100%;
  249. }
  250. &.mic_off {
  251. background: url(/@/assets/images/rtcLive/mic_off@2x.png);
  252. background-size: 100% 100%;
  253. }
  254. &.video_on {
  255. background: url(/@/assets/images/rtcLive/video_on@2x.png);
  256. background-size: 100% 100%;
  257. }
  258. &.video_no {
  259. background: url(/@/assets/images/rtcLive/video_off_50@2x.png);
  260. background-size: 100% 100%;
  261. }
  262. &.video_off {
  263. background: url(/@/assets/images/rtcLive/video_off@2x.png);
  264. background-size: 100% 100%;
  265. }
  266. &.exit {
  267. background: url(/@/assets/images/rtcLive/exit@2x.png);
  268. background-size: 100% 100%;
  269. }
  270. &:last-child {
  271. margin-right: 0;
  272. }
  273. }
  274. }
  275. }
  276. .layer {
  277. width: 100vw;
  278. height: 100vh;
  279. background: rgba(0, 0, 0, 0.1);
  280. z-index: 10000;
  281. position: fixed;
  282. bottom: 0;
  283. left: 0;
  284. // right: unset;
  285. // top: unset;
  286. .inputBox {
  287. width: 100vw;
  288. height: 1.39rem;
  289. // background: #f2f2f2;
  290. border: 1px solid rgba(255, 255, 255, 0.1);
  291. background: rgba(0, 0, 0, 0.5);
  292. position: absolute;
  293. bottom: 0;
  294. left: 0;
  295. padding: 0 0.44rem;
  296. box-sizing: border-box;
  297. display: flex;
  298. align-items: center;
  299. justify-content: center;
  300. .msgBox {
  301. width: 9.53rem;
  302. height: 0.94rem;
  303. position: absolute;
  304. > input {
  305. width: 9.53rem;
  306. height: 0.94rem;
  307. background: rgba(0, 0, 0, 0.5);
  308. border-radius: 0.56rem;
  309. font-size: 0.42rem;
  310. padding: 0 1.6rem 0 0.44rem;
  311. box-sizing: border-box;
  312. border: none;
  313. outline: none;
  314. color: #fff;
  315. resize: none;
  316. line &::placeholder {
  317. color: rgba(255, 255, 255, 0.5);
  318. }
  319. }
  320. .iconfont {
  321. // width: 0.56rem;
  322. // height: 0.56rem;
  323. // background: #ed5d18;
  324. font-size: 0.56rem;
  325. position: absolute;
  326. top: 50%;
  327. transform: translateY(-50%);
  328. right: 0.78rem;
  329. color: #fff;
  330. &.active {
  331. color: #ed5d18;
  332. }
  333. }
  334. .iconsend_icon {
  335. position: absolute;
  336. top: 50%;
  337. transform: translateY(-50%);
  338. // right: 0.78rem;
  339. right: 0.106667rem;
  340. width: 1.28rem;
  341. height: 0.693333rem;
  342. background: #ed5d18;
  343. color: #fff;
  344. font-size: 0.32rem;
  345. text-align: center;
  346. line-height: 0.693333rem;
  347. border-radius: 0.533333rem;
  348. // width: 0.67rem;
  349. // height: 0.67rem;
  350. // background-image: url(/@/assets/images/rtcLive/send_selected@2x.png);
  351. // background-size: 100% 100%;
  352. }
  353. }
  354. }
  355. .memberContent {
  356. height: auto;
  357. width: 100%;
  358. // background: #ffffff;
  359. border-radius: 0.28rem 0.28rem 0px 0px;
  360. position: absolute;
  361. left: 0;
  362. bottom: 0;
  363. &.animated {
  364. animation-duration: 0.3s;
  365. }
  366. .blurBox {
  367. background: rgba(0, 0, 0, 0.9);
  368. border-radius: 0.14rem 0.14rem 0px 0px;
  369. filter: blur(1px);
  370. position: absolute;
  371. width: 100%;
  372. height: 100%;
  373. z-index: 1;
  374. top: 0;
  375. left: 0;
  376. }
  377. .content {
  378. position: relative;
  379. width: 100%;
  380. height: 100%;
  381. z-index: 2;
  382. top: 0;
  383. left: 0;
  384. }
  385. .memberHeader {
  386. width: 100%;
  387. height: 1.28rem;
  388. text-align: center;
  389. line-height: 1.28rem;
  390. > span {
  391. font-size: 0.42rem;
  392. color: #fff;
  393. }
  394. }
  395. .memberList {
  396. width: 100%;
  397. height: 8.33rem;
  398. border-top-style: solid;
  399. border-top-color: rgba(0, 0, 0, 0.1);
  400. border-top-width: 1px;
  401. border-bottom-style: solid;
  402. border-bottom-color: rgba(0, 0, 0, 0.1);
  403. border-bottom-width: 1px;
  404. box-sizing: border-box;
  405. overflow-y: auto;
  406. &::-webkit-scrollbar {
  407. display: none;
  408. }
  409. .memberItem {
  410. width: 100%;
  411. height: 1.39rem;
  412. display: flex;
  413. align-items: center;
  414. justify-content: space-between;
  415. padding: 0.19rem 0.44rem;
  416. &.offline {
  417. // cursor: not-allowed;
  418. opacity: 0.5;
  419. }
  420. .userMsg {
  421. display: flex;
  422. align-items: center;
  423. justify-content: center;
  424. .avatar {
  425. width: 1.3rem;
  426. height: 1.3rem;
  427. border-radius: 50%;
  428. overflow: hidden;
  429. margin-right: 0.28rem;
  430. display: flex;
  431. justify-content: center;
  432. align-items: center;
  433. position: relative;
  434. .avatar-crown {
  435. background-image: url(/@/assets/images/rtcLive/leader_bg.png);
  436. background-position: center center;
  437. background-size: contain;
  438. background-repeat: no-repeat;
  439. width: 100%;
  440. height: 100%;
  441. position: absolute;
  442. top: 0;
  443. left: 0;
  444. z-index: 2;
  445. }
  446. .avatar-crown-assistant {
  447. background-image: url(/@/assets/images/rtcLive/assistant_crown.png);
  448. background-position: center center;
  449. background-size: contain;
  450. background-repeat: no-repeat;
  451. width: 100%;
  452. height: 100%;
  453. position: absolute;
  454. top: 0;
  455. left: 0;
  456. z-index: 2;
  457. }
  458. > img {
  459. // width: 100%;
  460. // height: 100%;
  461. border-radius: 50%;
  462. overflow: hidden;
  463. width: 1rem;
  464. height: 1rem;
  465. position: relative;
  466. z-index: 1;
  467. }
  468. }
  469. .name {
  470. font-size: 0.39rem;
  471. color: #fff;
  472. }
  473. }
  474. .button {
  475. display: flex;
  476. align-items: center;
  477. justify-content: center;
  478. .kick_icon,
  479. .assistant_icon {
  480. width: 0.65rem;
  481. height: 0.65rem;
  482. margin-right: 0.3rem;
  483. }
  484. > div {
  485. // width: 0.56rem;
  486. // height: 0.56rem;
  487. // background: #fc6970;
  488. font-size: 0.65rem;
  489. color: #fff;
  490. &.micBtn {
  491. width: 0.65rem;
  492. height: 0.65rem;
  493. margin-right: 0.3rem;
  494. &.mute_all_mic {
  495. background-image: url(/@/assets/images/rtcLive/mic_all_on@2x.png);
  496. background-size: 100% 100%;
  497. }
  498. &.open_all_mic {
  499. background-image: url(/@/assets/images/rtcLive/mic_all_off@2x.png);
  500. background-size: 100% 100%;
  501. }
  502. &.mute_one_mic_on {
  503. background-image: url(/@/assets/images/rtcLive/mic_on@2x.png);
  504. background-size: 100% 100%;
  505. }
  506. &.mute_one_mic_off {
  507. background-image: url(/@/assets/images/rtcLive/mic_off@2x.png);
  508. background-size: 100% 100%;
  509. }
  510. &.ban_speak_on {
  511. background-image: url(/@/assets/images/rtcLive/chat_on@2x.png);
  512. background-size: 100% 100%;
  513. }
  514. &.ban_speak_off {
  515. background-image: url(/@/assets/images/rtcLive/chat_off@2x.png);
  516. background-size: 100% 100%;
  517. }
  518. }
  519. &.outBtn {
  520. margin-right: 0.3rem;
  521. width: 0.65rem;
  522. height: 0.65rem;
  523. &.icon_remove {
  524. background-image: url(/@/assets/images/rtcLive/remove@2x.png);
  525. background-size: 100% 100%;
  526. }
  527. }
  528. }
  529. }
  530. }
  531. }
  532. .memberBottom {
  533. width: 100%;
  534. padding: 0 0.44rem;
  535. box-sizing: border-box;
  536. display: flex;
  537. align-items: center;
  538. justify-content: center;
  539. padding: 0.28rem 0;
  540. box-sizing: border-box;
  541. > div {
  542. width: 4.61rem;
  543. height: 1.11rem;
  544. color: #ed5d18;
  545. border-radius: 0.11rem;
  546. border: 0.03rem solid #ed5d18;
  547. display: flex;
  548. align-items: center;
  549. justify-content: center;
  550. font-size: 0.39rem;
  551. &.mute_all {
  552. margin-right: 0.31rem;
  553. }
  554. }
  555. }
  556. }
  557. }
  558. .chat__area-layoutBox {
  559. display: block;
  560. width: 100%;
  561. height: auto;
  562. position: fixed;
  563. bottom: 0;
  564. left: 0;
  565. right: unset;
  566. top: unset;
  567. background: #fff;
  568. // padding-bottom: 0.821256rem;
  569. .chat__area-layoutBox_bg {
  570. width: 100vw;
  571. height: 100vh;
  572. position: fixed;
  573. z-index: 1;
  574. top: 0;
  575. left: 0;
  576. }
  577. .chat__area-l-content {
  578. display: -webkit-box;
  579. display: -ms-flexbox;
  580. display: flex;
  581. -webkit-box-orient: horizontal;
  582. -webkit-box-direction: normal;
  583. -ms-flex-direction: row;
  584. flex-direction: row;
  585. -webkit-box-align: center;
  586. -ms-flex-align: center;
  587. align-items: center;
  588. -webkit-box-pack: center;
  589. -ms-flex-pack: center;
  590. justify-content: center;
  591. min-height: 0.821256rem;
  592. padding: 0.241546rem 0;
  593. width: 100%;
  594. position: relative;
  595. z-index: 100;
  596. textarea {
  597. width: calc(100% - 0.96618rem);
  598. -ms-flex-preferred-size: calc(100% - 0.96618rem);
  599. flex-basis: calc(100% - 0.96618rem);
  600. background: none;
  601. border: none;
  602. border-radius: 0;
  603. color: #000;
  604. font-size: 0.386473rem;
  605. line-height: 0.483092rem;
  606. padding: 0 0.241546rem;
  607. resize: none;
  608. -webkit-user-select: text;
  609. caret-color: #ff4500;
  610. overflow: hidden !important;
  611. }
  612. }
  613. }
  614. @keyframes myAnimation {
  615. 0% {
  616. background-position: 0px 0px;
  617. background-size: 13.3344rem auto;
  618. }
  619. 100% {
  620. background-position: -13.1104rem 0px;
  621. background-size: 13.3344rem auto;
  622. }
  623. }
  624. }
  625. .sharetip {
  626. position: fixed;
  627. z-index: 99999;
  628. width: 100%;
  629. height: 100%;
  630. left: 0;
  631. right: 0;
  632. bottom: 0;
  633. top: 0;
  634. background-color: rgba($color: #000000, $alpha: 0.66);
  635. > img {
  636. position: absolute;
  637. right: 16%;
  638. top: 0;
  639. max-width: 70vw;
  640. }
  641. }
  642. .cropper-box {
  643. z-index: 1000;
  644. }
  645. .disable {
  646. opacity: 0.5;
  647. pointer-events: none;
  648. }
  649. // #local{
  650. // position: relative;
  651. // z-index: 10000;
  652. // }
  653. @media screen and (max-width: 768px) {
  654. #PageRtcLive .controlBar .control_btn > div {
  655. margin-right: 0.16rem;
  656. }
  657. }