index.module.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. .creationBg{
  2. position: fixed;
  3. z-index: -1;
  4. width: 100%;
  5. height: 100%;
  6. min-height: 100vh;
  7. top: 0;
  8. left: 0;
  9. background: url("./images/bg.png") no-repeat;
  10. background-size: cover;
  11. }
  12. .creation{
  13. :global{
  14. .van-nav-bar .van-icon{
  15. color: #ffffff;
  16. }
  17. }
  18. &.isScreenScroll,&.isShareScreenScroll{
  19. :global{
  20. .van-nav-bar .van-icon{
  21. color: #333333;
  22. }
  23. }
  24. }
  25. }
  26. .singer{
  27. text-align: center;
  28. font-weight: 400;
  29. font-size: 14px;
  30. color: rgba(255,255,255,0.7);
  31. line-height: 20px;
  32. margin-bottom: 14vh;
  33. }
  34. .playSection{
  35. height: 210px;
  36. position: relative;
  37. &::after{
  38. position: absolute;
  39. content: "";
  40. width: 100%;
  41. height: 40px;
  42. bottom: -40px;
  43. left: 0;
  44. background: linear-gradient( 180deg, #355662 0%, rgba(57,90,95,0) 100%);
  45. pointer-events: none;
  46. }
  47. :global {
  48. .plyr {
  49. width: 100%;
  50. height: 100%;
  51. z-index: initial;
  52. .plyr__controls{
  53. background: initial;
  54. padding: 0 12px 2px;
  55. opacity: 1 !important;
  56. transform: translateY(0) !important;
  57. pointer-events: initial !important;
  58. .plyr__controls__item.plyr__progress__container{
  59. input[type=range]{
  60. color: #73C1FF;
  61. height: 10px;
  62. }
  63. input[type="range"]::-webkit-slider-runnable-track {
  64. height: 2px;
  65. }
  66. input[type="range"]::-webkit-slider-thumb {
  67. width: 6px;
  68. height: 6px;
  69. margin-top: -2px;
  70. box-shadow: initial;
  71. }
  72. .plyr__progress__buffer{
  73. height: 2px;
  74. color: rgba(115,193,255,0.8);
  75. background-color: #fff;
  76. margin-top: -1px;
  77. }
  78. }
  79. .plyr__controls__item.plyr__time{
  80. display: none;
  81. }
  82. .plyr__controls__item.plyr__control{
  83. display: none;
  84. }
  85. }
  86. }
  87. }
  88. .videoBox{
  89. width: 100%;
  90. height: 100%;
  91. }
  92. .audioBox{
  93. width: 100%;
  94. height: 100%;
  95. background: url("./images/audioBg.png") no-repeat;
  96. background-size: 100% 100%;
  97. position: relative;
  98. overflow: hidden;
  99. .audioBga {
  100. position: absolute;
  101. left: 50%;
  102. top: 50%;
  103. transform: translate(-50%, -60%);
  104. width: 100%;
  105. height: 82%;
  106. }
  107. .audioBga1 {
  108. position: absolute;
  109. left: 0;
  110. top: 16px;
  111. width: 94px;
  112. }
  113. .audioBga2 {
  114. width: 192px;
  115. position: absolute;
  116. right: -24px;
  117. top: 0;
  118. }
  119. :global {
  120. .plyr {
  121. position: absolute;
  122. height: initial;
  123. left: 0;
  124. bottom: 0;
  125. z-index: 2;
  126. }
  127. }
  128. .audioVisualizer{
  129. position: absolute;
  130. top: 50%;
  131. left: 50%;
  132. transform: translate(-50%,-50%);
  133. width: 280px;
  134. height: 55px;
  135. }
  136. }
  137. .playLarge{
  138. position: absolute;
  139. left: 50%;
  140. top: 50%;
  141. transform: translate(-50%, -50%);
  142. width: 48px;
  143. height: 48px;
  144. background: url("./images/midPlay.png") no-repeat;
  145. background-size: 100% 100%;
  146. z-index: 12;
  147. display: none;
  148. &.playIngShow{
  149. display: initial;
  150. }
  151. }
  152. .mediaTimeCon{
  153. display: none;
  154. position: absolute;
  155. top: 0;
  156. left: 0;
  157. width: 100%;
  158. height: 100%;
  159. background-color: rgba(0, 0, 0, .3);
  160. }
  161. &.mediaTimeShow{
  162. .mediaTimeCon{
  163. display: block;
  164. }
  165. }
  166. .mediaTime{
  167. position: absolute;
  168. left: 50%;
  169. transform: translateX(-50%);
  170. bottom: 95px;
  171. display: flex;
  172. font-weight: 500;
  173. font-size: 16px;
  174. color: #B8E8FF;
  175. line-height: 20px;
  176. z-index: 10;
  177. text-shadow: 0px 1px 1px rgba(0,0,0,0.5);
  178. & div:first-child{
  179. width: 50px;
  180. text-align: right;
  181. }
  182. .note{
  183. margin: 0 4px;
  184. }
  185. .duration{
  186. color: #fff;
  187. }
  188. }
  189. .landscapeScreen{
  190. width: 26px;
  191. height: 26px;
  192. position: absolute;
  193. background: url("./images/Landscape.png") no-repeat;
  194. background-size: 100% 100%;
  195. right: 10px;
  196. top: 10px;
  197. z-index: 15;
  198. }
  199. .staffBoxCon{
  200. position: absolute;
  201. width: 100%;
  202. height: 100%;
  203. left: 0;
  204. top: 0;
  205. z-index: 1;
  206. overflow: hidden;
  207. visibility: hidden;
  208. &.staffBoxShow{
  209. visibility: initial;
  210. }
  211. }
  212. .staffBox{
  213. width: 100%;
  214. height: calc(var(--staffBoxHeight) + 12px);
  215. position: absolute;
  216. bottom: 0;
  217. padding-bottom: 12px;
  218. background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  219. .staff{
  220. width: 100%;
  221. height: 100%;
  222. padding-left: 10px;
  223. }
  224. .mask{
  225. position: absolute;
  226. z-index: 6;
  227. width: 100%;
  228. height: 100%;
  229. }
  230. }
  231. }
  232. .musicSection {
  233. width: 100%;
  234. min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20px - 14vh - 210px - 55px - 80px);
  235. display: flex;
  236. flex-direction: column;
  237. justify-content: flex-end;
  238. padding: 10px 12px 0;
  239. .avatarInfoBox{
  240. display: flex;
  241. justify-content: space-between;
  242. align-items: center;
  243. .avatar{
  244. display: flex;
  245. align-items: center;
  246. .userLogo{
  247. width: 44px;
  248. height: 44px;
  249. border: 1px solid #FFFFFF;
  250. margin-right: 10px;
  251. border-radius: 50%;
  252. overflow: hidden;
  253. }
  254. .infoCon{
  255. .info{
  256. display: flex;
  257. align-items: center;
  258. .userName{
  259. font-weight: 500;
  260. font-size: 16px;
  261. color: #FFFFFF;
  262. line-height: 22px;
  263. overflow: hidden;
  264. white-space: nowrap;
  265. text-overflow: ellipsis;
  266. max-width: 160px;
  267. }
  268. .iconMember{
  269. margin-left: 6px;
  270. width: 14px;
  271. height: 14px;
  272. }
  273. }
  274. .sub{
  275. margin-top: 2px;
  276. font-weight: 400;
  277. font-size: 12px;
  278. color: #FFFFFF;
  279. line-height: 17px;
  280. }
  281. }
  282. }
  283. .linkes{
  284. display: flex;
  285. align-items: center;
  286. border-radius: 13px;
  287. padding: 4px 8px 3px;
  288. background-color: rgba(255,255,255,.12);
  289. font-weight: 400;
  290. font-size: 14px;
  291. color: #FFFFFF;
  292. .iconZan{
  293. width: 18px;
  294. height: 18px;
  295. margin-right: 2px;
  296. }
  297. }
  298. }
  299. .textEllipsis{
  300. margin-top: 10px;
  301. font-weight: 400;
  302. font-size: 14px;
  303. color: #FFFFFF;
  304. line-height: 20px;
  305. :global{
  306. .van-text-ellipsis__action{
  307. color: #FFFFFF;
  308. font-weight: 500;
  309. }
  310. }
  311. }
  312. }
  313. .likeSection {
  314. margin: 20px 12px;
  315. background: rgba(255,255,255,.09);
  316. border-radius: 10px;
  317. padding: 12px 12px 0 12px;
  318. overflow: hidden;
  319. .likeTitle {
  320. display: flex;
  321. align-items: center;
  322. font-size: 17px;
  323. font-weight: 600;
  324. color: #ffffff;
  325. line-height: 24px;
  326. &::before {
  327. display: inline-block;
  328. content: '';
  329. width: 4px;
  330. height: 14px;
  331. border-radius: 2px;
  332. background: linear-gradient(to bottom, #5BECFF, #259CFE);
  333. margin-right: 6px;
  334. }
  335. }
  336. .likeItem {
  337. padding: 13px 0 16px;
  338. background-color: initial;
  339. border-bottom: 1px solid rgba(242,242,242,0.12);
  340. &.likeItemLast{
  341. border-bottom: none;
  342. }
  343. .userLogo {
  344. border-radius: 50%;
  345. overflow: hidden;
  346. width: 42px;
  347. height: 42px;
  348. margin-right: 7px;
  349. }
  350. .userInfo {
  351. .name {
  352. font-size: 16px;
  353. font-weight: 500;
  354. color: #ffffff;
  355. line-height: 22px;
  356. }
  357. .sub {
  358. padding-top: 2px;
  359. font-size: 13px;
  360. color: #ffffff;
  361. line-height: 18px;
  362. }
  363. }
  364. .time {
  365. font-weight: 400;
  366. font-size: 13px;
  367. color: #FFFFFF;
  368. line-height: 18px;
  369. }
  370. }
  371. .mEmpty{
  372. padding: 0;
  373. }
  374. .btnImg{
  375. display: flex;
  376. justify-content: center;
  377. margin-top: 3px;
  378. margin-bottom: 12px;
  379. &>img{
  380. width: 88px;
  381. height: 31px;
  382. &:active{
  383. opacity: 0.8;
  384. }
  385. }
  386. }
  387. }
  388. .upward{
  389. padding-top: 12px;
  390. display: flex;
  391. justify-content: center;
  392. height: 55px;
  393. background: linear-gradient( 180deg, rgba(20,39,85,0) 0%, rgba(24,46,85,0.77) 44%, #1B3454 100%);
  394. > img{
  395. width: 19px;
  396. height: 15px;
  397. }
  398. }
  399. .bottomSection {
  400. display: flex;
  401. align-items: center;
  402. justify-content: space-between;
  403. padding: 0 12px 0 20px;
  404. width: 100%;
  405. height: 80px;
  406. background: #1F1F1F;
  407. box-shadow: 0px -1px 10px 0px rgba(0,0,0,0.05);
  408. .bottomShare {
  409. display: flex;
  410. align-items: center;
  411. p {
  412. display: flex;
  413. flex-direction: column;
  414. align-items: center;
  415. justify-content: center;
  416. margin-right: 28px;
  417. &:last-child{
  418. margin-right: 0;
  419. }
  420. }
  421. img {
  422. width: 18px;
  423. height: 18px;
  424. }
  425. span {
  426. margin-top: 8px;
  427. font-weight: 400;
  428. font-size: 12px;
  429. color: #ffffff;
  430. line-height: 17px;
  431. }
  432. }
  433. .btnEdit {
  434. width: 80px;
  435. height: 30px;
  436. }
  437. }
  438. .popupContainer {
  439. width: 287px;
  440. background: rgba(255,255,255,0.31);
  441. border-radius: 12px !important;
  442. border: 1px solid rgba(255,252,252,0.53);
  443. padding: 9px 8px;
  444. overflow: initial;
  445. .prompt{
  446. width: 151px;
  447. height: 32px;
  448. position: absolute;
  449. top: -7px;
  450. left: 50%;
  451. transform: translateX(-50%);
  452. }
  453. .deleteBox{
  454. background: linear-gradient( 224deg, #ECF5FF 0%, #D5E8FF 100%);
  455. border-radius: 12px;
  456. padding: 37px 0 15px;
  457. }
  458. .popupContent {
  459. text-align: center;
  460. font-weight: 400;
  461. font-size: 16px;
  462. color: #334A64;
  463. line-height: 26px;
  464. }
  465. .popupBtnGroup {
  466. margin-top: 18px;
  467. display: flex;
  468. align-items: center;
  469. justify-content: center;
  470. >img{
  471. width: 118px;
  472. height: 37px;
  473. & + img{
  474. margin-left: 11px;
  475. }
  476. }
  477. }
  478. }
  479. // 分享样式
  480. .playSection.notLoaded{
  481. :global{
  482. .plyr .plyr__controls {
  483. display: none;
  484. }
  485. }
  486. }
  487. .logoDownload{
  488. display: flex;
  489. justify-content: space-between;
  490. align-items: center;
  491. padding: 10px 13px;
  492. position: relative;
  493. &::after{
  494. content: "";
  495. position: absolute;
  496. bottom: 0;
  497. left: 13px;
  498. width: calc(100% - 26px);
  499. height: 1px;
  500. background-color: rgba(255, 255, 255, 0.3) ;
  501. }
  502. .logoImg{
  503. width: 159px;
  504. height: 29px;
  505. }
  506. .logTit{
  507. font-weight: 400;
  508. font-size: 14px;
  509. color: #FFFFFF;
  510. line-height: 20px;
  511. padding: 2px 10px;
  512. border-radius: 20px;
  513. border: 1px solid rgba(255, 255, 255, 0.5);
  514. }
  515. }
  516. .isShareScreenScroll{
  517. .logoDownload{
  518. background-color: #ffffff;
  519. .logTit{
  520. background: linear-gradient( 90deg, #44C9FF 0%, #259CFE 100%);
  521. border: none;
  522. padding: 3px 11px;
  523. }
  524. }
  525. }
  526. .singerBox{
  527. height: 20vh;
  528. display: flex;
  529. flex-direction: column;
  530. justify-content: flex-end;
  531. .musicSheetName{
  532. width: 200px;
  533. margin: 0 auto 10px;
  534. :global{
  535. .van-notice-bar{
  536. padding: 0;
  537. height: 28px;
  538. font-weight: 600;
  539. font-size: 20px;
  540. color: #FFFFFF;
  541. line-height: 28px;
  542. .van-notice-bar__content{
  543. min-width: 100%;
  544. text-align: center;
  545. }
  546. }
  547. }
  548. }
  549. .singerName{
  550. text-align: center;
  551. font-weight: 400;
  552. font-size: 14px;
  553. color: rgba(255,255,255,0.7);
  554. line-height: 20px;
  555. margin-bottom: 10px;
  556. }
  557. }
  558. .musicShareSection{
  559. min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20vh - 210px - 55px);
  560. }
  561. .likeShareItem{
  562. background-color: initial;
  563. padding: 0;
  564. margin-top: 25px;
  565. &:first-child{
  566. margin-top: 20px;
  567. }
  568. &.likeShareItemLast{
  569. padding-bottom: 20px;
  570. }
  571. .audioImgBox{
  572. position: relative;
  573. width: 51px;
  574. height: 51px;
  575. margin-right: 14px;
  576. .audioPan{
  577. position: absolute;
  578. width: 100%;
  579. height: 100%;
  580. right: -6px;
  581. top: 0;
  582. }
  583. .muploader{
  584. position: relative;
  585. z-index: 1;
  586. width: 100%;
  587. height: 100%;
  588. border-radius: 8.5px;
  589. }
  590. .imgLabel{
  591. position: absolute;
  592. right: 0;
  593. top: 0;
  594. width: 28px;
  595. height: 14px;
  596. z-index: 10;
  597. }
  598. }
  599. .userInfo{
  600. .musicSheetName{
  601. font-weight: 600;
  602. font-size: 16px;
  603. color: #FFFFFF;
  604. line-height: 22px;
  605. width: 200px;
  606. }
  607. .usernameCon{
  608. display: flex;
  609. align-items: center;
  610. margin-top: 6px;
  611. .likeNum{
  612. display: flex;
  613. align-items: center;
  614. border-radius: 3px;
  615. background-color: rgba(255,255,255,.22);
  616. padding: 1px 2px;
  617. img{
  618. width: 14px;
  619. height: 15px;
  620. }
  621. span{
  622. font-weight: 400;
  623. font-size: 10px;
  624. color: #FFFFFF;
  625. line-height: 1;
  626. margin-left: 2px;
  627. }
  628. }
  629. .username{
  630. max-width: 160px;
  631. margin-left: 4px;
  632. font-weight: 400;
  633. font-size: 13px;
  634. color: #DEDEDE;
  635. line-height: 13px;
  636. }
  637. }
  638. }
  639. :global{
  640. .van-cell__value{
  641. display: flex;
  642. align-items: center;
  643. justify-content: flex-end;
  644. }
  645. }
  646. .playImg{
  647. width: 20px;
  648. height: 20px;
  649. }
  650. }
  651. .isEmpty{
  652. height: calc(var(--creationHeight, 100vh) - var(--barheight));
  653. display: flex;
  654. align-items: center;
  655. }
  656. // 平板样式
  657. .creation{
  658. &.creationTablet{
  659. .playSection{
  660. height: 340px;
  661. .audioBox {
  662. .audioBga{
  663. width: 80%;
  664. height: 62%;
  665. }
  666. }
  667. }
  668. .musicSection{
  669. min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20px - 14vh - 340px - 55px - 80px);
  670. }
  671. .musicShareSection{
  672. min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20vh - 340px - 55px);
  673. }
  674. }
  675. }
  676. .loadingPop {
  677. position: fixed;
  678. left: 0;
  679. top: 0;
  680. right: 0;
  681. bottom: 0;
  682. width: 100%;
  683. height: 100%;
  684. min-height: 100vh;
  685. display: flex;
  686. flex-direction: column;
  687. justify-content: center;
  688. align-items: center;
  689. z-index: 999;
  690. background: rgba(0, 0, 0, .5);
  691. .loadingBox{
  692. width: 98px;
  693. height: 98px;
  694. border-radius: 10px;
  695. background-color: #fff;
  696. display: flex;
  697. flex-direction: column;
  698. justify-content: center;
  699. align-items: center;
  700. .lottie{
  701. margin-top: -6px;
  702. width: 52px;
  703. }
  704. .loadingTip {
  705. margin-top: 4px;
  706. font-size: 12px;
  707. color: #333333;
  708. }
  709. }
  710. }
  711. .wxpopup {
  712. width: 100%;
  713. height: 100%;
  714. min-height: 100vh;
  715. position: fixed;
  716. top: 0;
  717. left: 0;
  718. background: rgba(0, 0, 0, 0.5);
  719. z-index: 9999;
  720. img {
  721. width: 88%;
  722. margin: 0 6%;
  723. }
  724. }
  725. // :global{
  726. // .dialogMusicClass.van-dialog{
  727. // width: 300px;
  728. // .van-dialog__message{
  729. // font-weight: 500;
  730. // line-height: 24px;
  731. // }
  732. // }
  733. // }
  734. // 横屏样式
  735. .creation.creationTablet{
  736. .playSection.isLandscapeScreen{
  737. .audioBox {
  738. .audioBga{
  739. width: 72%;
  740. height: 56%;
  741. }
  742. }
  743. }
  744. }
  745. .playSection.isLandscapeScreen{
  746. overflow: hidden;
  747. position: fixed;
  748. top: 0;
  749. left: 0;
  750. bottom: 0;
  751. right: 0;
  752. width: 100%;
  753. height: 100%;
  754. min-height: 100vh;
  755. z-index: 1000;
  756. .landscapeScreen{
  757. display: none;
  758. }
  759. :global {
  760. .plyr{
  761. .plyr__controls{
  762. padding: 0 20px 20px;
  763. .plyr__controls__item.plyr__control{
  764. display: block;
  765. padding: 0;
  766. width: 18px;
  767. height: 18px;
  768. &:hover{
  769. background: initial;
  770. }
  771. .icon--pressed{
  772. width: 100%;
  773. height: 100%;
  774. background: url("./images/pause1.png") no-repeat;
  775. background-size: 100% 100%;
  776. use{
  777. display: none;
  778. }
  779. }
  780. .icon--not-pressed{
  781. width: 100%;
  782. height: 100%;
  783. background: url("./images/play1.png") no-repeat;
  784. background-size: 100% 100%;
  785. use{
  786. display: none;
  787. }
  788. }
  789. }
  790. .plyr__controls__item.plyr__progress__container{
  791. margin-left: 9px;
  792. input[type=range]{
  793. color: #73C1FF;
  794. height: 20px;
  795. }
  796. input[type="range"]::-webkit-slider-runnable-track {
  797. height: 4px;
  798. }
  799. input[type="range"]::-webkit-slider-thumb {
  800. width: 12px;
  801. height: 12px;
  802. margin-top: -4px;
  803. box-shadow: initial;
  804. }
  805. .plyr__progress__buffer{
  806. height: 4px;
  807. color: rgba(115,193,255,0.8);
  808. background-color: #fff;
  809. margin-top: -2px;
  810. }
  811. }
  812. .plyr__controls__item.plyr__time{
  813. font-weight: 500;
  814. font-size: 14px;
  815. color: #FFFFFF;
  816. display: initial;
  817. &.plyr__time--current{
  818. margin-left: 9px;
  819. }
  820. }
  821. }
  822. }
  823. }
  824. .backBox{
  825. position: absolute;
  826. left: 30px;
  827. top: 20px;
  828. display: flex;
  829. z-index: 10;
  830. .backImg{
  831. width: 32px;
  832. height: 32px;
  833. }
  834. .musicDetail{
  835. margin-left: 20px;
  836. .musicSheetName{
  837. width: 300px;
  838. margin-top: 4px;
  839. :global{
  840. .van-notice-bar{
  841. padding: 0;
  842. height: 20px;
  843. font-weight: 600;
  844. font-size: 18px;
  845. color: #FFFFFF;
  846. line-height: 20px;
  847. }
  848. }
  849. }
  850. .username{
  851. margin-top: 2px;
  852. font-weight: 400;
  853. font-size: 12px;
  854. color: rgba(255, 255, 255, 0.7);
  855. line-height: 18px
  856. }
  857. }
  858. }
  859. .staffBox{
  860. height: calc(var(--staffBoxHeight) + 44px);
  861. padding-bottom: 44px;
  862. }
  863. }