index.module.less 14 KB

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