index.module.less 12 KB

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