index.module.less 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. :global {
  6. .n-breadcrumb>ul {
  7. display: flex;
  8. align-items: center;
  9. .n-breadcrumb-item {
  10. display: flex;
  11. align-items: center;
  12. }
  13. .n-breadcrumb-item__separator {
  14. display: none;
  15. }
  16. .n-breadcrumb-item__link {
  17. padding: 5Px 18Px;
  18. background: #FFFFFF;
  19. border-radius: 16Px;
  20. color: #21225D;
  21. line-height: 20Px;
  22. }
  23. }
  24. .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link {
  25. color: #fff;
  26. background: var(--product-color);
  27. }
  28. }
  29. &> :global(.n-space) {
  30. height: 36Px;
  31. flex-shrink: 0;
  32. }
  33. .separator {
  34. height: 18Px;
  35. margin: 0 16Px;
  36. }
  37. }
  38. .wrap {
  39. padding-top: 20Px;
  40. flex: 1;
  41. transition: padding .3s;
  42. overflow: hidden;
  43. }
  44. .content {
  45. display: flex;
  46. flex-direction: column;
  47. height: 100%;
  48. background: #DDF2FF;
  49. border-radius: 20Px;
  50. }
  51. .tools {
  52. padding: 20Px;
  53. display: flex;
  54. align-items: center;
  55. flex-shrink: 0;
  56. :global {
  57. .n-input {
  58. margin-left: auto;
  59. width: 361Px;
  60. }
  61. }
  62. }
  63. .contentWrap {
  64. flex: 1;
  65. display: flex;
  66. padding: 0 20Px 20Px;
  67. overflow: hidden;
  68. }
  69. .musicList {
  70. width: 548px;
  71. height: 100%;
  72. overflow-x: hidden;
  73. overflow-y: auto;
  74. min-width: 330Px;
  75. // max-height: 100vh;
  76. &::-webkit-scrollbar {
  77. width: 0;
  78. display: none;
  79. }
  80. .wrapList {
  81. width: 512px;
  82. min-width: 294Px;
  83. min-height: 100%;
  84. background: #fff;
  85. border-radius: 16Px;
  86. }
  87. .empty {
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. height: 50vh;
  92. }
  93. }
  94. .itemContainer {
  95. border-radius: 16Px;
  96. padding: 4Px 8Px;
  97. &:first-child {
  98. padding-top: 8Px;
  99. }
  100. &:last-child {
  101. padding-bottom: 8Px;
  102. }
  103. }
  104. .item {
  105. position: relative;
  106. display: flex;
  107. align-items: center;
  108. padding: 10Px;
  109. border-radius: 12Px;
  110. cursor: pointer;
  111. &:hover {
  112. background-color: rgba(0, 0, 0, .05);
  113. }
  114. &.active {
  115. background-color: #DDF2FF;
  116. .arrow {
  117. opacity: 1;
  118. }
  119. }
  120. .img {
  121. position: relative;
  122. width: 60Px;
  123. height: 60Px;
  124. border-radius: 8Px;
  125. margin-right: 12Px;
  126. box-shadow: 0 0 10px 4px rgba(27, 35, 55, .1);
  127. overflow: hidden;
  128. flex-shrink: 0;
  129. :global {
  130. .n-image {
  131. width: 100%;
  132. height: 100%;
  133. }
  134. }
  135. img {
  136. transition: opacity .3s;
  137. opacity: 0;
  138. }
  139. img[data-loaded="true"] {
  140. opacity: 1;
  141. }
  142. }
  143. .title {
  144. flex: 1;
  145. overflow: hidden;
  146. display: flex;
  147. flex-direction: column;
  148. align-items: flex-start;
  149. .titleName {
  150. font-size: 16Px;
  151. font-weight: 600;
  152. color: #131415;
  153. line-height: 28Px;
  154. width: 100%;
  155. }
  156. .titleDes {
  157. font-size: 14Px;
  158. font-weight: 400;
  159. color: #777777;
  160. line-height: 20Px;
  161. max-width: 100%;
  162. white-space: nowrap;
  163. text-overflow: ellipsis;
  164. overflow: hidden;
  165. }
  166. }
  167. .btn {
  168. margin-left: auto;
  169. width: 84px;
  170. height: 40px;
  171. background: linear-gradient(to right, #44CAFF, #259DFE);
  172. border: none;
  173. padding: 0;
  174. font-weight: bold !important;
  175. flex-shrink: 0;
  176. min-width: 62Px;
  177. min-height: 30Px;
  178. :global {
  179. .n-button__content {
  180. &>img {
  181. margin-left: 10Px;
  182. }
  183. }
  184. }
  185. }
  186. .arrow {
  187. position: absolute;
  188. top: 50%;
  189. right: 0;
  190. transform: translate(124%, -50%);
  191. opacity: 0;
  192. }
  193. .showPlayLoading {
  194. opacity: 0;
  195. }
  196. }
  197. .loadingWrap {
  198. display: flex;
  199. justify-content: center;
  200. min-height: 80Px;
  201. }
  202. .musicStaff {
  203. display: flex;
  204. flex-direction: column;
  205. position: relative;
  206. left: -8Px;
  207. flex: 1;
  208. background-color: #fff;
  209. border-radius: 16Px;
  210. height: 100%;
  211. z-index: 1;
  212. overflow: hidden;
  213. &::-webkit-scrollbar {
  214. width: 0;
  215. display: none;
  216. }
  217. .goBtn {
  218. position: absolute;
  219. left: 50%;
  220. bottom: 46Px;
  221. transform: translateX(-50%);
  222. height: 70Px;
  223. cursor: pointer;
  224. }
  225. .favitor {
  226. position: absolute;
  227. top: 20px;
  228. right: 24px;
  229. width: 48px;
  230. height: 48px;
  231. cursor: pointer;
  232. transition: all .3s;
  233. &:hover {
  234. transform: scale(1.1);
  235. }
  236. &>img {
  237. display: block;
  238. width: 100%;
  239. height: 100%;
  240. filter: drop-shadow(0 0 10px rgba(27, 35, 55, .1));
  241. }
  242. }
  243. }
  244. .musicName {
  245. padding-top: 30Px;
  246. font-size: 24Px;
  247. font-weight: 500;
  248. color: #333;
  249. line-height: 24Px;
  250. text-align: center;
  251. }
  252. .staffImgs {
  253. flex: 1;
  254. overflow-y: auto;
  255. &>img {
  256. width: 100%;
  257. }
  258. }
  259. :global {
  260. .van-fade-enter-active,
  261. .van-fade-leave-active {
  262. transition: all 0.3s;
  263. }
  264. .van-fade-enter-from,
  265. .van-fade-leave-to {
  266. opacity: 0;
  267. }
  268. }