index.module.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. .headerTop {
  2. display: flex;
  3. justify-content: space-between;
  4. align-items: center;
  5. width: 100%;
  6. height: 100%;
  7. flex-shrink: 0;
  8. padding: 10px 22px;
  9. background-color: rgba(6, 34, 87, 0.8);
  10. backdrop-filter: blur(3px);
  11. -webkit-backdrop-filter: blur(3px);
  12. position: relative;
  13. }
  14. .android {
  15. padding-top: 20px;
  16. }
  17. .back {
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. padding-right: 10px;
  22. height: 100%;
  23. img {
  24. display: block;
  25. width: 28px;
  26. height: 28px;
  27. }
  28. }
  29. .disabled {
  30. //opacity: 0;
  31. pointer-events: none;
  32. }
  33. .left {
  34. display: flex;
  35. align-items: center;
  36. .leftContent {
  37. .lcName {
  38. font-size: 18px;
  39. font-weight: 600;
  40. color: #fff;
  41. height: 20px;
  42. line-height: 20px;
  43. margin-bottom: 2px;
  44. padding: 0 !important;
  45. :global {
  46. .van-notice-bar {
  47. height: 20px;
  48. line-height: 20px;
  49. padding: 0 !important;
  50. }
  51. .van-notice-bar__content {
  52. color: #fff;
  53. }
  54. }
  55. }
  56. .lcScore {
  57. font-size: 12px;
  58. color: #fff;
  59. line-height: 18px;
  60. font-weight: normal;
  61. }
  62. }
  63. }
  64. .center {
  65. display: flex;
  66. align-items: center;
  67. margin: 0 auto;
  68. .cItem {
  69. text-align: center;
  70. padding: 0 12px;
  71. white-space: nowrap;
  72. &>div:first-child {
  73. font-size: 12px;
  74. color: #333333;
  75. line-height: 14px;
  76. margin-bottom: 6px;
  77. font-weight: bold;
  78. }
  79. &>div:last-child {
  80. font-size: 12px;
  81. color: #777777;
  82. line-height: 12px;
  83. padding: 4px 8px;
  84. border-radius: 14px;
  85. }
  86. }
  87. .cItem:not(:last-child) {
  88. border-right: 1px solid #EBDABF;
  89. }
  90. .active {
  91. &>div:first-child {
  92. color: var(--van-primary-color) !important;
  93. }
  94. &>div:last-child {
  95. background-color: #ECF9FF;
  96. color: var(--van-primary-color);
  97. }
  98. }
  99. }
  100. .middle {
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. width: 60%;
  105. position: absolute;
  106. left: 50%;
  107. top: 50%;
  108. transform: translate(-35%, -50%);
  109. .cItem {
  110. width: 64px;
  111. height: 50px;
  112. display: flex;
  113. flex-direction: column;
  114. align-items: center;
  115. justify-content: space-between;
  116. padding: 4px 0;
  117. margin: 0 6px;
  118. cursor: pointer;
  119. .mScore {
  120. font-size: 16px;
  121. line-height: 22px;
  122. color: #AAAAAA;
  123. }
  124. .mLabel {
  125. font-size: 12px;
  126. line-height: 18px;
  127. color: #AAAAAA;
  128. }
  129. }
  130. .active {
  131. background: linear-gradient(270deg, rgba(27, 210, 255, 0.36) 0%, rgba(26, 173, 255, 0.36) 100%);
  132. border-radius: 8px;
  133. .mScore,
  134. .mLabel {
  135. color: #fff;
  136. font-weight: normal;
  137. }
  138. }
  139. }
  140. .right {
  141. display: flex;
  142. align-items: center;
  143. .btn {
  144. position: relative;
  145. display: flex;
  146. flex-direction: column;
  147. justify-content: center;
  148. align-items: center;
  149. font-size: 10px;
  150. line-height: 14px;
  151. font-weight: 400;
  152. padding: 0 5px;
  153. color: #fff;
  154. cursor: pointer;
  155. &+.btn {
  156. margin-left: 10px;
  157. }
  158. .iconBtn {
  159. display: block;
  160. width: 33px;
  161. height: 33px;
  162. }
  163. span {
  164. margin-top: 2px;
  165. white-space: nowrap;
  166. transform: scale(0.9);
  167. }
  168. .btnWrap {
  169. position: relative;
  170. width: 25px;
  171. height: 25px;
  172. }
  173. }
  174. }
  175. .popup {
  176. --plyr-color-main: var(--van-primary-color);
  177. :global {
  178. .van-popup__close-icon {
  179. width: 32px;
  180. height: 32px;
  181. top: -3px;
  182. right: -48px;
  183. background: url("./image/closeImg.png") no-repeat;
  184. background-size: 100% 100%;
  185. &::before {
  186. display: none;
  187. }
  188. }
  189. }
  190. }
  191. .playerBox {
  192. width: 537px;
  193. height: 314px;
  194. background: #FFF8F8;
  195. box-shadow: inset 4px -3px 6px 0px #B2E8FF;
  196. border-radius: 20px;
  197. padding: 14px;
  198. :global {
  199. .plyr {
  200. border-radius: 16px;
  201. width: 100%;
  202. height: 100%;
  203. box-shadow: 4px -3px 6px 0px #B2E8FF;
  204. .plyr__control.plyr__control--overlaid {
  205. width: 48px;
  206. height: 48px;
  207. background: url("./image/midPlay.png") no-repeat;
  208. background-size: 100% 100%;
  209. .plyr__sr-only,
  210. svg {
  211. display: none;
  212. }
  213. }
  214. .plyr__controls {
  215. background: initial;
  216. padding: 0 20px 13px;
  217. opacity: 1 !important;
  218. transform: translateY(0) !important;
  219. pointer-events: initial !important;
  220. .plyr__controls__item.plyr__control {
  221. padding: 0;
  222. width: 18px;
  223. height: 18px;
  224. &:hover {
  225. background: initial;
  226. }
  227. .icon--pressed {
  228. width: 100%;
  229. height: 100%;
  230. background: url("./image//pause.png") no-repeat;
  231. background-size: 100% 100%;
  232. use {
  233. display: none;
  234. }
  235. }
  236. .icon--not-pressed {
  237. width: 100%;
  238. height: 100%;
  239. background: url("./image/play.png") no-repeat;
  240. background-size: 100% 100%;
  241. use {
  242. display: none;
  243. }
  244. }
  245. }
  246. .plyr__controls__item.plyr__progress__container {
  247. margin-left: 9px;
  248. input[type=range] {
  249. color: #73C1FF;
  250. height: 20px;
  251. }
  252. input[type="range"]::-webkit-slider-runnable-track {
  253. height: 4px;
  254. }
  255. input[type="range"]::-webkit-slider-thumb {
  256. width: 12px;
  257. height: 12px;
  258. margin-top: -4px;
  259. box-shadow: initial;
  260. }
  261. .plyr__progress__buffer {
  262. height: 4px;
  263. color: rgba(115, 193, 255, 0.8);
  264. background-color: #fff;
  265. margin-top: -2px;
  266. }
  267. }
  268. .plyr__controls__item.plyr__time {
  269. font-weight: 500;
  270. font-size: 14px;
  271. color: #FFFFFF;
  272. &.plyr__time--current {
  273. margin-left: 9px;
  274. }
  275. }
  276. }
  277. }
  278. }
  279. .videoBox {
  280. width: 100%;
  281. height: 100%;
  282. }
  283. .audioBox {
  284. width: 100%;
  285. height: 100%;
  286. background: url("./image/audioBg.png") no-repeat;
  287. background-size: 100% 100%;
  288. position: relative;
  289. border-radius: 16px;
  290. box-shadow: 4px -3px 6px 0px #B2E8FF;
  291. overflow: hidden;
  292. .audioBga {
  293. width: 100%;
  294. height: 88%;
  295. }
  296. .audioBga1 {
  297. position: absolute;
  298. left: 0;
  299. top: 8px;
  300. width: 146px;
  301. }
  302. .audioBga2 {
  303. width: 268px;
  304. position: absolute;
  305. right: -24px;
  306. top: -8px;
  307. }
  308. :global {
  309. .plyr {
  310. position: absolute;
  311. height: initial;
  312. left: 0;
  313. bottom: 0;
  314. box-shadow: initial;
  315. }
  316. }
  317. .audioVisualizer {
  318. position: absolute;
  319. top: 50%;
  320. left: 50%;
  321. transform: translate(-50%, -50%);
  322. width: 370px;
  323. height: 66px;
  324. }
  325. }
  326. }
  327. .demos {
  328. position: fixed;
  329. top: calc(var(--header-height) + 8px);
  330. right: 20px;
  331. display: flex;
  332. justify-content: flex-end;
  333. align-items: center;
  334. padding: 0 16px;
  335. height: 30px;
  336. border-radius: 18px;
  337. background-color: rgba(0, 38, 99, 1);
  338. z-index: 1;
  339. box-sizing: content-box;
  340. &>div {
  341. display: flex;
  342. align-items: center;
  343. margin-right: 16px;
  344. &:last-child {
  345. margin-right: 0;
  346. }
  347. &>span {
  348. margin-left: 4px;
  349. color: #fff;
  350. }
  351. &>i {
  352. width: 12px;
  353. height: 12px;
  354. margin-right: 2px;
  355. border-radius: 3px;
  356. display: inline-block;
  357. }
  358. }
  359. }
  360. .shiyiClose {
  361. width: 30px;
  362. height: 30px;
  363. position: absolute;
  364. right: -38px;
  365. top: -26px;
  366. cursor: pointer;
  367. }
  368. .shiyiPopup {
  369. background: #B0D8FF;
  370. border-radius: 20px;
  371. width: 80vw;
  372. max-width: 460px;
  373. padding: 10px;
  374. position: relative;
  375. &::before {
  376. content: "";
  377. position: absolute;
  378. left: 10px;
  379. top: 10px;
  380. width: calc(100% - 20px);
  381. height: calc(100% - 20px);
  382. background: #D5E8FF;
  383. border-radius: 14px;
  384. }
  385. .shiyiTop {
  386. position: absolute;
  387. width: 154px;
  388. left: 50%;
  389. top: -5px;
  390. transform: translateX(-50%);
  391. }
  392. }
  393. .shiyiTitle {
  394. font-size: 16px;
  395. color: #333;
  396. font-weight: 400;
  397. text-align: center;
  398. }
  399. .items {
  400. display: flex;
  401. flex-wrap: wrap;
  402. margin-top: 16px;
  403. position: relative;
  404. .item {
  405. width: 50%;
  406. display: flex;
  407. align-items: center;
  408. padding: 12px 0 12px 18px;
  409. span {
  410. margin-left: 12px;
  411. font-size: 12px;
  412. font-weight: 400;
  413. }
  414. svg {
  415. visibility: visible;
  416. }
  417. &:nth-child(2n) {
  418. transform: translateX(20px);
  419. }
  420. }
  421. .itemTone {
  422. width: 50%;
  423. display: flex;
  424. align-items: center;
  425. padding: 16px 0 16px 26px;
  426. position: relative;
  427. &:nth-child(2n) {
  428. transform: translateX(20px);
  429. }
  430. span {
  431. font-size: 12px;
  432. font-weight: 400;
  433. }
  434. &>i {
  435. width: 12px;
  436. height: 12px;
  437. margin-right: 12px;
  438. border-radius: 3px;
  439. display: inline-block;
  440. }
  441. }
  442. }