index.module.less 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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. .itemContainer {
  153. width: 100%;
  154. border-radius: 16px;
  155. padding: 4px 8px;
  156. // background-color: #fff;
  157. &:first-child {
  158. padding-top: 8px;
  159. }
  160. &:last-child {
  161. // border-radius: 0 0 16px 16px;
  162. padding-bottom: 8px;
  163. }
  164. }
  165. .item {
  166. position: relative;
  167. display: flex;
  168. align-items: center;
  169. padding: 10px;
  170. border-radius: 12px;
  171. cursor: pointer;
  172. &:hover {
  173. background-color: rgba(0, 0, 0, .05);
  174. }
  175. &.active {
  176. background-color: #DDF2FF;
  177. .arrow {
  178. opacity: 1;
  179. }
  180. }
  181. .img {
  182. position: relative;
  183. width: 60px;
  184. height: 60px;
  185. border-radius: 8px;
  186. margin-right: 12px;
  187. // box-shadow: 0 0 10px 4px rgba(27, 35, 55, .1);
  188. overflow: hidden;
  189. flex-shrink: 0;
  190. :global {
  191. .n-image {
  192. width: 60px;
  193. height: 60px;
  194. }
  195. }
  196. img {
  197. transition: opacity .3s;
  198. opacity: 0;
  199. height: 100%;
  200. width: 100%;
  201. }
  202. img[data-loaded="true"] {
  203. opacity: 1;
  204. }
  205. }
  206. .title {
  207. flex: 1;
  208. overflow: hidden;
  209. display: flex;
  210. flex-direction: column;
  211. align-items: flex-start;
  212. .titleName {
  213. font-size: max(18px, 13Px);
  214. font-weight: 600;
  215. color: #131415;
  216. line-height: 28px;
  217. width: 100%;
  218. }
  219. .titleDes {
  220. font-size: max(14px, 11Px);
  221. font-weight: 400;
  222. color: #777777;
  223. line-height: 20px;
  224. max-width: 100%;
  225. white-space: nowrap;
  226. text-overflow: ellipsis;
  227. overflow: hidden;
  228. }
  229. }
  230. .btn {
  231. margin-left: auto;
  232. width: 84px;
  233. height: 36px;
  234. background: linear-gradient(to right, #44CAFF, #259DFE);
  235. border: none;
  236. padding: 0;
  237. font-weight: bold !important;
  238. flex-shrink: 0;
  239. min-width: 62px;
  240. min-height: 30px;
  241. font-size: max(18px, 12Px);
  242. :global {
  243. .n-button__content {
  244. &>img {
  245. margin-left: 10px;
  246. width: 9px;
  247. height: 12px;
  248. }
  249. }
  250. }
  251. }
  252. .arrow {
  253. position: absolute;
  254. top: 50%;
  255. right: 12px;
  256. transform: translate(124%, -50%);
  257. opacity: 0;
  258. }
  259. .showPlayLoading {
  260. opacity: 0;
  261. }
  262. }
  263. .loadingWrap {
  264. display: flex;
  265. justify-content: center;
  266. min-height: 80px;
  267. }
  268. .musicStaff {
  269. display: flex;
  270. flex-direction: column;
  271. position: relative;
  272. left: -8px;
  273. flex: 1;
  274. background-color: #fff;
  275. border-radius: 16px;
  276. // height: 100%;
  277. z-index: 1;
  278. overflow: hidden;
  279. &::-webkit-scrollbar {
  280. width: 0;
  281. display: none;
  282. }
  283. .goBtn {
  284. position: absolute;
  285. left: 50%;
  286. bottom: 46px;
  287. transform: translateX(-50%);
  288. height: 70px;
  289. cursor: pointer;
  290. transition: all .2s ease-in;
  291. // &.goBtnBottom {
  292. // bottom: 154px;
  293. // }
  294. }
  295. .favitor {
  296. position: absolute;
  297. top: 20px;
  298. right: 24px;
  299. width: 48px;
  300. height: 48px;
  301. cursor: pointer;
  302. transition: all .3s;
  303. &:hover {
  304. transform: scale(1.1);
  305. }
  306. &>img {
  307. display: block;
  308. width: 100%;
  309. height: 100%;
  310. filter: drop-shadow(0 0 10px rgba(27, 35, 55, .1));
  311. }
  312. }
  313. }
  314. .musicName {
  315. padding-top: 30px;
  316. font-size: 24px;
  317. font-weight: 500;
  318. color: #333;
  319. line-height: 24px;
  320. text-align: center;
  321. }
  322. .staffImgs {
  323. flex: 1;
  324. overflow-y: auto;
  325. height: 100%;
  326. padding: 0 30px;
  327. &>img {
  328. width: 100%;
  329. }
  330. }
  331. :global {
  332. .van-fade-enter-active,
  333. .van-fade-leave-active {
  334. transition: all 0.3s;
  335. }
  336. .van-fade-enter-from,
  337. .van-fade-leave-to {
  338. opacity: 0;
  339. }
  340. }
  341. .previewWindow {
  342. width: 85%;
  343. height: 85vh;
  344. position: relative;
  345. .previewClose {
  346. position: absolute;
  347. left: 40px;
  348. top: 40px;
  349. width: 60px;
  350. height: 65px;
  351. }
  352. .previewIframe {
  353. width: 100%;
  354. height: 85vh;
  355. background-color: #fff;
  356. border-radius: 16px;
  357. }
  358. }