index.module.less 11 KB

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