chatroom.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  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.23rem;
  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. .userMsg {
  386. display: flex;
  387. align-items: center;
  388. justify-content: center;
  389. .avatar {
  390. width: 1.3rem;
  391. height: 1.3rem;
  392. border-radius: 50%;
  393. overflow: hidden;
  394. margin-right: 0.28rem;
  395. display: flex;
  396. justify-content: center;
  397. align-items: center;
  398. position: relative;
  399. .avatar-crown {
  400. background-image: url(/@/assets/images/rtcLive/leader_bg.png);
  401. background-position: center center;
  402. background-size: contain;
  403. background-repeat: no-repeat;
  404. width: 100%;
  405. height: 100%;
  406. position: absolute;
  407. top: 0;
  408. left: 0;
  409. z-index: 2;
  410. }
  411. > img {
  412. // width: 100%;
  413. // height: 100%;
  414. border-radius: 50%;
  415. overflow: hidden;
  416. width: 1rem;
  417. height: 1rem;
  418. position: relative;
  419. z-index: 1;
  420. }
  421. }
  422. .name {
  423. font-size: 0.39rem;
  424. color: #fff;
  425. }
  426. }
  427. .button {
  428. display: flex;
  429. align-items: center;
  430. justify-content: center;
  431. > div {
  432. // width: 0.56rem;
  433. // height: 0.56rem;
  434. // background: #fc6970;
  435. font-size: 0.65rem;
  436. color: #fff;
  437. &.micBtn {
  438. width: 0.65rem;
  439. height: 0.65rem;
  440. margin-right: 0.3rem;
  441. &.mute_all_mic {
  442. background-image: url(/@/assets/images/rtcLive/mic_all_on@2x.png);
  443. background-size: 100% 100%;
  444. }
  445. &.open_all_mic {
  446. background-image: url(/@/assets/images/rtcLive/mic_all_off@2x.png);
  447. background-size: 100% 100%;
  448. }
  449. &.mute_one_mic_on {
  450. background-image: url(/@/assets/images/rtcLive/mic_on@2x.png);
  451. background-size: 100% 100%;
  452. }
  453. &.mute_one_mic_off {
  454. background-image: url(/@/assets/images/rtcLive/mic_off@2x.png);
  455. background-size: 100% 100%;
  456. }
  457. &.ban_speak_on {
  458. background-image: url(/@/assets/images/rtcLive/chat_on@2x.png);
  459. background-size: 100% 100%;
  460. }
  461. &.ban_speak_off {
  462. background-image: url(/@/assets/images/rtcLive/chat_off@2x.png);
  463. background-size: 100% 100%;
  464. }
  465. }
  466. &.outBtn {
  467. margin-right: 0.3rem;
  468. width: 0.65rem;
  469. height: 0.65rem;
  470. &.icon_remove {
  471. background-image: url(/@/assets/images/rtcLive/remove@2x.png);
  472. background-size: 100% 100%;
  473. }
  474. }
  475. }
  476. }
  477. }
  478. }
  479. .memberBottom {
  480. width: 100%;
  481. padding: 0 0.44rem;
  482. box-sizing: border-box;
  483. display: flex;
  484. align-items: center;
  485. justify-content: center;
  486. padding: 0.28rem 0;
  487. box-sizing: border-box;
  488. > div {
  489. width: 4.61rem;
  490. height: 1.11rem;
  491. color: #ed5d18;
  492. border-radius: 0.11rem;
  493. border: 0.03rem solid #ed5d18;
  494. display: flex;
  495. align-items: center;
  496. justify-content: center;
  497. font-size: 0.39rem;
  498. &.mute_all {
  499. margin-right: 0.31rem;
  500. }
  501. }
  502. }
  503. }
  504. }
  505. .chat__area-layoutBox {
  506. display: block;
  507. width: 100%;
  508. height: auto;
  509. position: fixed;
  510. bottom: 0;
  511. left: 0;
  512. right: unset;
  513. top: unset;
  514. background: #fff;
  515. // padding-bottom: 0.821256rem;
  516. .chat__area-layoutBox_bg {
  517. width: 100vw;
  518. height: 100vh;
  519. position: fixed;
  520. z-index: 1;
  521. top: 0;
  522. left: 0;
  523. }
  524. .chat__area-l-content {
  525. display: -webkit-box;
  526. display: -ms-flexbox;
  527. display: flex;
  528. -webkit-box-orient: horizontal;
  529. -webkit-box-direction: normal;
  530. -ms-flex-direction: row;
  531. flex-direction: row;
  532. -webkit-box-align: center;
  533. -ms-flex-align: center;
  534. align-items: center;
  535. -webkit-box-pack: center;
  536. -ms-flex-pack: center;
  537. justify-content: center;
  538. min-height: 0.821256rem;
  539. padding: 0.241546rem 0;
  540. width: 100%;
  541. position: relative;
  542. z-index: 100;
  543. textarea {
  544. width: calc(100% - 0.96618rem);
  545. -ms-flex-preferred-size: calc(100% - 0.96618rem);
  546. flex-basis: calc(100% - 0.96618rem);
  547. background: none;
  548. border: none;
  549. border-radius: 0;
  550. color: #000;
  551. font-size: 0.386473rem;
  552. line-height: 0.483092rem;
  553. padding: 0 0.241546rem;
  554. resize: none;
  555. -webkit-user-select: text;
  556. caret-color: #ff4500;
  557. overflow: hidden !important;
  558. }
  559. }
  560. }
  561. @keyframes myAnimation {
  562. 0% {
  563. background-position: 0px 0px;
  564. background-size: 13.3344rem auto;
  565. }
  566. 100% {
  567. background-position: -13.1104rem 0px;
  568. background-size: 13.3344rem auto;
  569. }
  570. }
  571. }
  572. .sharetip {
  573. position: fixed;
  574. z-index: 99999;
  575. width: 100%;
  576. height: 100%;
  577. left: 0;
  578. right: 0;
  579. bottom: 0;
  580. top: 0;
  581. background-color: rgba($color: #000000, $alpha: 0.66);
  582. > img {
  583. position: absolute;
  584. right: 16%;
  585. top: 0;
  586. max-width: 70vw;
  587. }
  588. }
  589. .cropper-box {
  590. z-index: 1000;
  591. }
  592. .disable {
  593. opacity: 0.5;
  594. pointer-events: none;
  595. }
  596. // #local{
  597. // position: relative;
  598. // z-index: 10000;
  599. // }
  600. @media screen and (max-width: 768px) {
  601. #PageRtcLive .controlBar .control_btn > div{
  602. margin-right: 0.16rem;
  603. }
  604. }