index.module.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. .creationBg{
  2. position: fixed;
  3. z-index: -1;
  4. width: 100vw;
  5. height: var(--creationHeight, 100vh);
  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{
  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. overflow: hidden;
  38. &::after{
  39. position: absolute;
  40. content: "";
  41. width: 100%;
  42. height: 40px;
  43. bottom: -40px;
  44. left: 0;
  45. background: linear-gradient( 180deg, #355662 0%, rgba(57,90,95,0) 100%);
  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. }
  80. }
  81. }
  82. .videoBox{
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .audioBox{
  87. width: 100%;
  88. height: 100%;
  89. background: url("./images/audioBg.png") no-repeat;
  90. background-size: 100% 100%;
  91. position: relative;
  92. overflow: hidden;
  93. .audioBga {
  94. position: absolute;
  95. left: 0;
  96. top: 0;
  97. width: 100%;
  98. height: 82%;
  99. }
  100. .audioBga1 {
  101. position: absolute;
  102. left: 0;
  103. top: 16px;
  104. width: 94px;
  105. }
  106. .audioBga2 {
  107. width: 192px;
  108. position: absolute;
  109. right: -24px;
  110. top: 0;
  111. }
  112. :global {
  113. .plyr {
  114. position: absolute;
  115. height: initial;
  116. left: 0;
  117. bottom: 0;
  118. z-index: 2;
  119. }
  120. }
  121. .audioVisualizer{
  122. position: absolute;
  123. top: 50%;
  124. left: 50%;
  125. transform: translate(-50%,-50%);
  126. width: 308px;
  127. height: 55px;
  128. }
  129. }
  130. .playLarge{
  131. position: absolute;
  132. left: 50%;
  133. top: 50%;
  134. transform: translate(-50%, -50%);
  135. width: 48px;
  136. height: 48px;
  137. background: url("./images/midPlay.png") no-repeat;
  138. background-size: 100% 100%;
  139. z-index: 12;
  140. display: none;
  141. &.playIngShow{
  142. display: initial;
  143. }
  144. }
  145. .mediaTimeCon{
  146. display: none;
  147. position: absolute;
  148. top: 0;
  149. left: 0;
  150. width: 100%;
  151. height: 100%;
  152. background-color: rgba(0, 0, 0, .3);
  153. }
  154. &.mediaTimeShow{
  155. .mediaTimeCon{
  156. display: block;
  157. }
  158. }
  159. .mediaTime{
  160. position: absolute;
  161. left: 50%;
  162. transform: translateX(-50%);
  163. bottom: 95px;
  164. display: flex;
  165. font-weight: 500;
  166. font-size: 16px;
  167. color: #B8E8FF;
  168. line-height: 20px;
  169. z-index: 10;
  170. text-shadow: 0px 1px 1px rgba(0,0,0,0.5);
  171. & div:first-child{
  172. width: 50px;
  173. text-align: right;
  174. }
  175. .note{
  176. margin: 0 4px;
  177. }
  178. .duration{
  179. color: #fff;
  180. }
  181. }
  182. .landscapeScreen{
  183. width: 26px;
  184. height: 26px;
  185. position: absolute;
  186. background: url("./images/Landscape.png") no-repeat;
  187. background-size: 100% 100%;
  188. right: 10px;
  189. top: 10px;
  190. z-index: 15;
  191. }
  192. .staffBox{
  193. width: 100%;
  194. height: calc(var(--staffBoxHeight) + 12px);
  195. position: absolute;
  196. bottom: 0;
  197. padding-bottom: 12px;
  198. visibility: hidden;
  199. background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  200. z-index: 1;
  201. &.staffBoxShow{
  202. visibility: initial;
  203. }
  204. .staff{
  205. width: 100%;
  206. height: 100%;
  207. padding-left: 10px;
  208. }
  209. .mask{
  210. position: absolute;
  211. z-index: 6;
  212. width: 100%;
  213. height: 100%;
  214. }
  215. }
  216. }
  217. .musicSection {
  218. width: 100%;
  219. min-height: calc(100vh - var(--barheight) - 20px - 14vh - 210px - 55px - 80px);
  220. display: flex;
  221. flex-direction: column;
  222. justify-content: flex-end;
  223. padding: 10px 12px 0;
  224. .avatarInfoBox{
  225. display: flex;
  226. justify-content: space-between;
  227. align-items: center;
  228. .avatar{
  229. display: flex;
  230. align-items: center;
  231. .userLogo{
  232. width: 44px;
  233. height: 44px;
  234. border: 1px solid #FFFFFF;
  235. margin-right: 10px;
  236. border-radius: 50%;
  237. overflow: hidden;
  238. }
  239. .infoCon{
  240. .info{
  241. display: flex;
  242. align-items: center;
  243. .userName{
  244. font-weight: 500;
  245. font-size: 16px;
  246. color: #FFFFFF;
  247. line-height: 22px;
  248. overflow: hidden;
  249. white-space: nowrap;
  250. text-overflow: ellipsis;
  251. max-width: 160px;
  252. }
  253. .iconMember{
  254. margin-left: 6px;
  255. width: 14px;
  256. height: 14px;
  257. }
  258. }
  259. .sub{
  260. margin-top: 2px;
  261. font-weight: 400;
  262. font-size: 12px;
  263. color: #FFFFFF;
  264. line-height: 17px;
  265. }
  266. }
  267. }
  268. .linkes{
  269. display: flex;
  270. align-items: center;
  271. border-radius: 13px;
  272. padding: 4px 8px 3px;
  273. background-color: rgba(255,255,255,.12);
  274. font-weight: 400;
  275. font-size: 14px;
  276. color: #FFFFFF;
  277. .iconZan{
  278. width: 18px;
  279. height: 18px;
  280. margin-right: 2px;
  281. }
  282. }
  283. }
  284. .textEllipsis{
  285. margin-top: 10px;
  286. font-weight: 400;
  287. font-size: 14px;
  288. color: #FFFFFF;
  289. line-height: 20px;
  290. :global{
  291. .van-text-ellipsis__action{
  292. color: #FFFFFF;
  293. font-weight: 500;
  294. }
  295. }
  296. }
  297. }
  298. .likeSection {
  299. margin: 20px 12px;
  300. background: rgba(255,255,255,.09);
  301. border-radius: 10px;
  302. padding: 12px 12px 0 12px;
  303. overflow: hidden;
  304. .likeTitle {
  305. display: flex;
  306. align-items: center;
  307. font-size: 17px;
  308. font-weight: 600;
  309. color: #ffffff;
  310. line-height: 24px;
  311. &::before {
  312. display: inline-block;
  313. content: '';
  314. width: 4px;
  315. height: 14px;
  316. border-radius: 2px;
  317. background: linear-gradient(to bottom, #5BECFF, #259CFE);
  318. margin-right: 6px;
  319. }
  320. }
  321. .likeItem {
  322. padding: 13px 0 16px;
  323. background-color: initial;
  324. border-bottom: 1px solid rgba(242,242,242,0.12);
  325. &.likeItemLast{
  326. border-bottom: none;
  327. }
  328. .userLogo {
  329. border-radius: 50%;
  330. overflow: hidden;
  331. width: 42px;
  332. height: 42px;
  333. margin-right: 7px;
  334. }
  335. .userInfo {
  336. .name {
  337. font-size: 16px;
  338. font-weight: 500;
  339. color: #ffffff;
  340. line-height: 22px;
  341. }
  342. .sub {
  343. padding-top: 2px;
  344. font-size: 13px;
  345. color: #ffffff;
  346. line-height: 18px;
  347. }
  348. }
  349. .time {
  350. font-weight: 400;
  351. font-size: 13px;
  352. color: #FFFFFF;
  353. line-height: 18px;
  354. }
  355. }
  356. .mEmpty{
  357. padding: 0;
  358. }
  359. .btnImg{
  360. display: flex;
  361. justify-content: center;
  362. margin-top: 3px;
  363. margin-bottom: 12px;
  364. &>img{
  365. width: 88px;
  366. height: 31px;
  367. &:active{
  368. opacity: 0.8;
  369. }
  370. }
  371. }
  372. }
  373. .upward{
  374. padding-top: 12px;
  375. display: flex;
  376. justify-content: center;
  377. height: 55px;
  378. background: linear-gradient( 180deg, rgba(20,39,85,0) 0%, rgba(24,46,85,0.77) 44%, #1B3454 100%);
  379. > img{
  380. width: 19px;
  381. height: 15px;
  382. }
  383. }
  384. .bottomSection {
  385. display: flex;
  386. align-items: center;
  387. justify-content: space-between;
  388. padding: 0 12px 0 20px;
  389. width: 100%;
  390. height: 80px;
  391. background: #1F1F1F;
  392. box-shadow: 0px -1px 10px 0px rgba(0,0,0,0.05);
  393. .bottomShare {
  394. display: flex;
  395. align-items: center;
  396. p {
  397. display: flex;
  398. flex-direction: column;
  399. align-items: center;
  400. justify-content: center;
  401. margin-right: 28px;
  402. &:last-child{
  403. margin-right: 0;
  404. }
  405. }
  406. img {
  407. width: 18px;
  408. height: 18px;
  409. }
  410. span {
  411. margin-top: 8px;
  412. font-weight: 400;
  413. font-size: 12px;
  414. color: #ffffff;
  415. line-height: 17px;
  416. }
  417. }
  418. .btnEdit {
  419. width: 80px;
  420. height: 30px;
  421. }
  422. }
  423. .popupContainer {
  424. width: 287px;
  425. background: rgba(255,255,255,0.31);
  426. border-radius: 12px !important;
  427. border: 1px solid rgba(255,252,252,0.53);
  428. padding: 9px 8px;
  429. overflow: initial;
  430. .prompt{
  431. width: 151px;
  432. height: 32px;
  433. position: absolute;
  434. top: -7px;
  435. left: 50%;
  436. transform: translateX(-50%);
  437. }
  438. .deleteBox{
  439. background: linear-gradient( 224deg, #ECF5FF 0%, #D5E8FF 100%);
  440. border-radius: 12px;
  441. padding: 37px 0 15px;
  442. }
  443. .popupContent {
  444. text-align: center;
  445. font-weight: 400;
  446. font-size: 16px;
  447. color: #334A64;
  448. line-height: 26px;
  449. }
  450. .popupBtnGroup {
  451. margin-top: 18px;
  452. display: flex;
  453. align-items: center;
  454. justify-content: center;
  455. >img{
  456. width: 118px;
  457. height: 37px;
  458. & + img{
  459. margin-left: 11px;
  460. }
  461. }
  462. }
  463. }
  464. // 分享样式
  465. .playSection.notLoaded{
  466. :global{
  467. .plyr .plyr__controls {
  468. display: none;
  469. }
  470. }
  471. }
  472. .logoDownload{
  473. display: flex;
  474. justify-content: space-between;
  475. align-items: center;
  476. padding: 10px 13px;
  477. position: relative;
  478. &::after{
  479. content: "";
  480. position: absolute;
  481. bottom: 0;
  482. left: 13px;
  483. width: calc(100% - 26px);
  484. height: 1px;
  485. background-color: rgba(255, 255, 255, 0.5) ;
  486. }
  487. .logoImg{
  488. width: 159px;
  489. height: 29px;
  490. }
  491. .logTit{
  492. font-weight: 400;
  493. font-size: 14px;
  494. color: #FFFFFF;
  495. line-height: 20px;
  496. padding: 2px 10px;
  497. border-radius: 20px;
  498. border: 1px solid rgba(255, 255, 255, 0.5);
  499. }
  500. }
  501. .isShareScreenScroll{
  502. .logoDownload{
  503. background-color: #ffffff;
  504. .logTit{
  505. background: linear-gradient( 90deg, #44C9FF 0%, #259CFE 100%);
  506. border: none;
  507. padding: 3px 11px;
  508. }
  509. }
  510. }
  511. .singerBox{
  512. height: 20vh;
  513. display: flex;
  514. flex-direction: column;
  515. justify-content: end;
  516. .musicSheetName{
  517. text-align: center;
  518. font-weight: 600;
  519. font-size: 20px;
  520. color: #FFFFFF;
  521. line-height: 28px;
  522. margin-bottom: 10px;
  523. }
  524. .singerName{
  525. text-align: center;
  526. font-weight: 400;
  527. font-size: 14px;
  528. color: rgba(255,255,255,0.7);
  529. line-height: 20px;
  530. margin-bottom: 10px;
  531. }
  532. }
  533. .musicShareSection{
  534. min-height: calc(100vh - var(--barheight) - 20vh - 210px - 55px);
  535. }
  536. .likeShareItem{
  537. background-color: initial;
  538. padding: 0;
  539. margin-top: 25px;
  540. &:first-child{
  541. margin-top: 20px;
  542. }
  543. &.likeShareItemLast{
  544. padding-bottom: 20px;
  545. }
  546. .audioImgBox{
  547. position: relative;
  548. width: 51px;
  549. height: 51px;
  550. margin-right: 14px;
  551. .audioPan{
  552. position: absolute;
  553. width: 100%;
  554. height: 100%;
  555. right: -6px;
  556. top: 0;
  557. }
  558. .muploader{
  559. position: relative;
  560. z-index: 1;
  561. width: 100%;
  562. height: 100%;
  563. border-radius: 8px;
  564. }
  565. .imgLabel{
  566. position: absolute;
  567. right: 0;
  568. top: 0;
  569. width: 28px;
  570. height: 14px;
  571. z-index: 10;
  572. }
  573. }
  574. .userInfo{
  575. .musicSheetName{
  576. font-weight: 600;
  577. font-size: 16px;
  578. color: #FFFFFF;
  579. line-height: 22px;
  580. width: 200px;
  581. }
  582. .usernameCon{
  583. display: flex;
  584. align-items: center;
  585. margin-top: 6px;
  586. .likeNum{
  587. display: flex;
  588. align-items: center;
  589. border-radius: 3px;
  590. background-color: rgba(255,255,255,.22);
  591. padding: 1px 2px;
  592. img{
  593. width: 14px;
  594. height: 15px;
  595. }
  596. span{
  597. font-weight: 400;
  598. font-size: 10px;
  599. color: #FFFFFF;
  600. line-height: 1;
  601. margin-left: 2px;
  602. }
  603. }
  604. .username{
  605. max-width: 160px;
  606. margin-left: 4px;
  607. font-weight: 400;
  608. font-size: 13px;
  609. color: #DEDEDE;
  610. line-height: 13px;
  611. }
  612. }
  613. }
  614. :global{
  615. .van-cell__value{
  616. display: flex;
  617. align-items: center;
  618. justify-content: end;
  619. }
  620. }
  621. .playImg{
  622. width: 20px;
  623. height: 20px;
  624. }
  625. }
  626. .isEmpty{
  627. height: calc(100vh - var(--barheight));
  628. display: flex;
  629. align-items: center;
  630. }
  631. // 平板样式
  632. .creationTablet{
  633. }
  634. .loadingPop {
  635. position: fixed;
  636. left: 0;
  637. top: 0;
  638. right: 0;
  639. bottom: 0;
  640. width: 100vw;
  641. height: var(--creationHeight, 100vh);
  642. min-height: 100vh;
  643. display: flex;
  644. flex-direction: column;
  645. justify-content: center;
  646. align-items: center;
  647. z-index: 999;
  648. background: rgba(0, 0, 0, .5);
  649. .loadingBox{
  650. width: 98px;
  651. height: 98px;
  652. border-radius: 10px;
  653. background-color: #fff;
  654. display: flex;
  655. flex-direction: column;
  656. justify-content: center;
  657. align-items: center;
  658. .lottie{
  659. margin-top: -6px;
  660. width: 52px;
  661. }
  662. .loadingTip {
  663. margin-top: 4px;
  664. font-size: 12px;
  665. color: #333333;
  666. }
  667. }
  668. }