index.module.less 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. .iconBack {
  6. width: 36px;
  7. height: 36px;
  8. }
  9. :global {
  10. .n-breadcrumb .n-breadcrumb-item {
  11. font-size: max(16px, 12Px) !important;
  12. }
  13. .n-breadcrumb>ul {
  14. display: flex;
  15. align-items: center;
  16. .n-breadcrumb-item {
  17. display: flex;
  18. align-items: center;
  19. }
  20. .n-breadcrumb-item__separator {
  21. display: none;
  22. }
  23. .n-breadcrumb-item__link {
  24. padding: 5px 18px;
  25. background: #FFFFFF;
  26. border-radius: 16px;
  27. color: #21225D;
  28. line-height: 20px;
  29. }
  30. }
  31. .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link {
  32. color: #fff;
  33. background: var(--product-color);
  34. }
  35. }
  36. &> :global(.n-space) {
  37. height: 36px;
  38. flex-shrink: 0;
  39. }
  40. .separator {
  41. width: 9px;
  42. height: 15px;
  43. margin: 0 16px;
  44. }
  45. }
  46. .wrap {
  47. padding-top: 15px;
  48. flex: 1;
  49. transition: padding .3s;
  50. overflow: hidden;
  51. &.wrapBottom {
  52. padding-bottom: 108px;
  53. }
  54. }
  55. .content {
  56. display: flex;
  57. flex-direction: column;
  58. height: 100%;
  59. background: #DDF2FF;
  60. border-radius: 20px;
  61. // max-height: 90vh;
  62. }
  63. .tools {
  64. padding: 20px;
  65. display: flex;
  66. align-items: center;
  67. flex-shrink: 0;
  68. :global {
  69. .n-input {
  70. margin-left: auto;
  71. width: 361px;
  72. }
  73. .n-input__input-el {
  74. height: 100%;
  75. line-height: 100%;
  76. }
  77. .n-button {
  78. --n-height: 37px !important;
  79. height: 37px;
  80. padding: 0 24px;
  81. font-size: max(18px, 13Px);
  82. &.n-button--primary-type {
  83. font-weight: bold !important;
  84. color: #fff;
  85. }
  86. }
  87. }
  88. }
  89. .contentWrap {
  90. flex: 1;
  91. display: flex;
  92. padding: 0 20px 20px;
  93. overflow: hidden;
  94. gap: 0 32px;
  95. }
  96. .musicList {
  97. // width: 512px;
  98. // display: flex;
  99. // // height: 100%;
  100. // overflow-x: hidden;
  101. // overflow-y: auto;
  102. // // min-width: 330px;
  103. // // max-height: 100vh;
  104. // min-height: 71vh;
  105. // margin-right: 32px;
  106. background-color: #fff;
  107. border-radius: 16px;
  108. width: 512px;
  109. min-width: 294px;
  110. height: 100%;
  111. overflow-x: hidden;
  112. overflow-y: auto;
  113. min-width: 330Px;
  114. // position: relative;
  115. // z-index: 1;
  116. // &::before {
  117. // content: ' ';
  118. // position: absolute;
  119. // z-index: 0;
  120. // left: 0;
  121. // top: 0;
  122. // width: 512px;
  123. // min-width: 294px;
  124. // height: var(--xiaoku-music-height);
  125. // background-color: #fff;
  126. // border-radius: 16px;
  127. // }
  128. &::-webkit-scrollbar {
  129. width: 0;
  130. display: none;
  131. }
  132. .wrapList {
  133. // display: flex;
  134. // flex-direction: column;
  135. // width: 100%;
  136. // position: relative;
  137. // z-index: 1;
  138. width: 512px;
  139. min-width: 294px;
  140. min-height: 100%;
  141. // background: #fff;
  142. border-radius: 16px;
  143. }
  144. .empty {
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. height: 50vh;
  149. // height: 100%;
  150. }
  151. }
  152. .searchSection {
  153. position: sticky;
  154. top: 0;
  155. left: 0;
  156. z-index: 9;
  157. padding: 24px;
  158. background-color: #fff;
  159. display: flex;
  160. align-items: center;
  161. :global {
  162. .TheSearch {
  163. background: #F5F6FA;
  164. --n-color-focus: #F5F6FA !important;
  165. }
  166. .nBaseCascaser {
  167. border-radius: 100px;
  168. width: 170px;
  169. background: #F5F6FA;
  170. margin-right: 16px;
  171. .n-base-selection__border {
  172. border-color: #F5F6FA;
  173. }
  174. }
  175. }
  176. }
  177. .itemContainer {
  178. width: 100%;
  179. border-radius: 16px;
  180. padding: 4px 8px;
  181. // background-color: #fff;
  182. &:first-child {
  183. padding-top: 8px;
  184. }
  185. &:last-child {
  186. // border-radius: 0 0 16px 16px;
  187. padding-bottom: 8px;
  188. }
  189. }
  190. .item {
  191. position: relative;
  192. display: flex;
  193. align-items: center;
  194. padding: 10px;
  195. border-radius: 12px;
  196. cursor: pointer;
  197. &:hover {
  198. background-color: rgba(0, 0, 0, .05);
  199. }
  200. &.active {
  201. background-color: #DDF2FF;
  202. .arrow {
  203. opacity: 1;
  204. }
  205. }
  206. .img {
  207. position: relative;
  208. width: 60px;
  209. height: 60px;
  210. border-radius: 8px;
  211. margin-right: 12px;
  212. // box-shadow: 0 0 10px 4px rgba(27, 35, 55, .1);
  213. overflow: hidden;
  214. flex-shrink: 0;
  215. :global {
  216. .n-image {
  217. width: 60px;
  218. height: 60px;
  219. }
  220. }
  221. img {
  222. transition: opacity .3s;
  223. opacity: 0;
  224. height: 100%;
  225. width: 100%;
  226. }
  227. img[data-loaded="true"] {
  228. opacity: 1;
  229. }
  230. }
  231. .title {
  232. flex: 1;
  233. overflow: hidden;
  234. display: flex;
  235. flex-direction: column;
  236. align-items: flex-start;
  237. .titleName {
  238. font-size: max(18px, 13Px);
  239. font-weight: 600;
  240. color: #131415;
  241. line-height: 28px;
  242. width: 100%;
  243. }
  244. .titleDes {
  245. font-size: max(14px, 11Px);
  246. font-weight: 400;
  247. color: #777777;
  248. line-height: 20px;
  249. max-width: 100%;
  250. white-space: nowrap;
  251. text-overflow: ellipsis;
  252. overflow: hidden;
  253. padding: 3px 0;
  254. }
  255. .iconType {
  256. background: #fff;
  257. border-radius: 3px;
  258. padding: 0px 3px;
  259. font-size: max(12px, 9Px);
  260. text-align: center;
  261. font-weight: 400;
  262. line-height: 1;
  263. border: 1px solid transparent;
  264. margin-right: 5px;
  265. }
  266. .iconPlay {
  267. border: 1px solid #15B2FD;
  268. color: #00ADFF;
  269. }
  270. .iconSing {
  271. border: 1px solid #CD8613;
  272. color: #CE8208;
  273. }
  274. }
  275. .btn {
  276. margin-left: auto;
  277. width: 84px;
  278. height: 36px;
  279. background: linear-gradient(to right, #44CAFF, #259DFE);
  280. border: none;
  281. padding: 0;
  282. font-weight: bold !important;
  283. flex-shrink: 0;
  284. min-width: 62px;
  285. min-height: 30px;
  286. font-size: max(18px, 12Px);
  287. :global {
  288. .n-button__content {
  289. &>img {
  290. margin-left: 10px;
  291. width: 9px;
  292. height: 12px;
  293. }
  294. }
  295. }
  296. }
  297. .arrow {
  298. position: absolute;
  299. top: 50%;
  300. right: 12px;
  301. transform: translate(124%, -50%);
  302. opacity: 0;
  303. }
  304. .showPlayLoading {
  305. opacity: 0;
  306. }
  307. }
  308. .loadingWrap {
  309. display: flex;
  310. justify-content: center;
  311. min-height: 80px;
  312. &.showLoading {
  313. height: 0;
  314. opacity: 0;
  315. min-height: 0;
  316. display: none;
  317. }
  318. }
  319. .musicStaff {
  320. display: flex;
  321. flex-direction: column;
  322. position: relative;
  323. left: -8px;
  324. flex: 1;
  325. background-color: #fff;
  326. border-radius: 16px;
  327. // height: 100%;
  328. z-index: 1;
  329. overflow: hidden;
  330. &::-webkit-scrollbar {
  331. width: 0;
  332. display: none;
  333. }
  334. .goBtn {
  335. position: absolute;
  336. left: 50%;
  337. bottom: 46px;
  338. transform: translateX(-50%);
  339. height: 70px;
  340. cursor: pointer;
  341. transition: all .2s ease-in;
  342. // &.goBtnBottom {
  343. // bottom: 154px;
  344. // }
  345. }
  346. .rightBtns {
  347. position: absolute;
  348. top: 20px;
  349. right: 24px;
  350. display: flex;
  351. align-items: center;
  352. .textBtn {
  353. margin-right: 24px;
  354. padding: 1px 16px !important;
  355. line-height: 37px !important;
  356. height: 37px !important;
  357. background: #F5F6FA;
  358. --n-border: #F5F6FA !important;
  359. }
  360. .transBtn {
  361. width: 45px;
  362. cursor: pointer;
  363. margin-right: 15px;
  364. }
  365. }
  366. .favitor {
  367. width: 48px;
  368. height: 48px;
  369. cursor: pointer;
  370. transition: all .3s;
  371. &:hover {
  372. transform: scale(1.1);
  373. }
  374. &>img {
  375. display: block;
  376. width: 100%;
  377. height: 100%;
  378. filter: drop-shadow(0 0 10px rgba(27, 35, 55, .1));
  379. }
  380. }
  381. }
  382. .musicName {
  383. padding-top: 30px;
  384. font-size: 26px;
  385. font-weight: 500;
  386. color: #333;
  387. line-height: 24px;
  388. text-align: center;
  389. }
  390. .staffImgs {
  391. flex: 1;
  392. overflow-y: auto;
  393. height: 100%;
  394. padding: 0 30px;
  395. &>img {
  396. width: 100%;
  397. }
  398. }
  399. :global {
  400. .van-fade-enter-active,
  401. .van-fade-leave-active {
  402. transition: all 0.3s;
  403. }
  404. .van-fade-enter-from,
  405. .van-fade-leave-to {
  406. opacity: 0;
  407. }
  408. }
  409. .previewWindow {
  410. width: 85%;
  411. height: 85vh;
  412. position: relative;
  413. .previewClose {
  414. position: absolute;
  415. left: 40px;
  416. top: 40px;
  417. width: 60px;
  418. height: 65px;
  419. }
  420. .previewIframe {
  421. width: 100%;
  422. height: 85vh;
  423. background-color: #fff;
  424. border-radius: 16px;
  425. }
  426. }
  427. .popSelect {
  428. font-size: 16px;
  429. width: 300px;
  430. max-height: 500px;
  431. overflow-y: scroll;
  432. box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.08);
  433. border-radius: 11px;
  434. --n-option-height: 34px;
  435. :global {
  436. .n-base-select-option__content {
  437. width: 80% !important;
  438. }
  439. }
  440. }
  441. .popSelect1 {
  442. font-size: 16px;
  443. width: 240px;
  444. // max-height: 500px;
  445. // overflow-y: scroll;
  446. box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.08);
  447. border-radius: 11px;
  448. --n-option-height: 34px;
  449. :global {
  450. .n-base-select-option__content {
  451. width: 80% !important;
  452. }
  453. }
  454. }
  455. .popTrans {
  456. font-size: 16px;
  457. width: 200px;
  458. overflow-y: scroll;
  459. box-shadow: 0px 2 16px 0px rgba(0, 0, 0, 0.08);
  460. border-radius: 11px;
  461. --n-option-height: 34px;
  462. :global {
  463. .n-base-select-option__content {
  464. width: 80% !important;
  465. }
  466. }
  467. }
  468. .textBtn {
  469. .iconArrow {
  470. display: inline-block;
  471. margin-left: 8px;
  472. margin-top: 2px;
  473. width: 8px;
  474. height: 5px;
  475. background: url('./images/icon-arrow.svg') no-repeat center center / contain;
  476. transform: rotate(180deg);
  477. color: #131415;
  478. fill: #131415;
  479. }
  480. &:hover,
  481. &.textBtnActive {
  482. background: #198CFE !important;
  483. font-weight: 500 !important;
  484. color: #fff !important;
  485. .iconArrow {
  486. transform: rotate(0deg);
  487. background: url('./images/icon-arrow2.svg') no-repeat center center / contain;
  488. color: #fff;
  489. fill: #fff;
  490. margin-top: 0;
  491. }
  492. }
  493. }