chatroom.scss 17 KB

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