index.module.less 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. .back {
  2. position: fixed;
  3. left: 15px;
  4. top: 17px;
  5. width: 31px;
  6. height: 31px;
  7. &>img {
  8. width: 100%;
  9. height: 100%;
  10. object-fit: cover;
  11. }
  12. &:active {
  13. opacity: .8;
  14. }
  15. }
  16. .container {
  17. background: url('../../common/images/icon_bg.png') no-repeat center center / cover;
  18. padding: 47px 12px 20px 54px;
  19. height: 100vh;
  20. overflow: hidden;
  21. }
  22. .content {
  23. display: flex;
  24. height: calc(100vh - 67px);
  25. overflow: hidden;
  26. }
  27. .opacityBg {
  28. background: linear-gradient(134deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.34) 100%);
  29. border-radius: 18px;
  30. border: 2px solid #fff;
  31. }
  32. .leftContent {
  33. position: relative;
  34. display: flex;
  35. width: 45%;
  36. }
  37. .leftBg {
  38. position: absolute;
  39. left: 0;
  40. top: 0;
  41. width: 95px;
  42. height: 100%;
  43. background: linear-gradient(48deg, #43B2FF 0%, #159AF7 100%);
  44. border: 2Px solid #fff;
  45. border-radius: 18px 9px 0 18px;
  46. z-index: 1;
  47. }
  48. .leftBg2 {
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. width: calc(100% - 12px);
  53. height: 100%;
  54. background: linear-gradient(134deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.34) 100%);
  55. border-radius: 18px;
  56. border: 2Px solid #fff;
  57. }
  58. .types {
  59. position: relative;
  60. top: 2Px;
  61. width: 95px;
  62. height: calc(100% - 4Px);
  63. padding: 4px 0;
  64. overflow-x: hidden;
  65. overflow-y: auto;
  66. border-radius: 18px;
  67. z-index: 1;
  68. flex-shrink: 0;
  69. &::-webkit-scrollbar {
  70. width: 0;
  71. display: none;
  72. }
  73. .type {
  74. position: relative;
  75. padding: 4px 12px;
  76. &.typeActive {
  77. .typeImg {
  78. padding: 6px;
  79. border-color: #99FFD0;
  80. animation: scaleBtn 1s ease-in-out;
  81. }
  82. }
  83. }
  84. .typeImg {
  85. border: 2px solid transparent;
  86. border-radius: 6px;
  87. height: 95px;
  88. transition: .3s;
  89. &:active {
  90. transform: scale(0.8);
  91. }
  92. }
  93. .typeIcon {
  94. display: block;
  95. width: 100%;
  96. height: 100%;
  97. object-fit: cover;
  98. opacity: 0;
  99. transition: opacity .3s;
  100. }
  101. .typeIcon[loaded="true"] {
  102. opacity: 1;
  103. }
  104. }
  105. .center {
  106. flex: 1;
  107. position: relative;
  108. padding-right: 12px;
  109. height: 100%;
  110. overflow: hidden;
  111. :global {
  112. .van-search {
  113. padding: 6px 9px;
  114. width: 100%;
  115. z-index: 1;
  116. }
  117. }
  118. }
  119. .musicContent {
  120. width: 100%;
  121. height: calc(100% - var(--van-search-input-height) - 12px - 2Px);
  122. padding: 6px 12px 12px 12px;
  123. overflow-x: hidden;
  124. overflow-y: auto;
  125. &::-webkit-scrollbar {
  126. width: 0;
  127. display: none;
  128. }
  129. }
  130. .searchNotice{
  131. position: fixed;
  132. padding: 0;
  133. pointer-events: none;
  134. :global{
  135. .van-notice-bar{
  136. padding: 0;
  137. height: 100%;
  138. }
  139. }
  140. }
  141. .searchNoticeShow{
  142. :global{
  143. .van-field__control{
  144. opacity: 0;
  145. }
  146. }
  147. }
  148. .musicItem {
  149. position: relative;
  150. display: flex;
  151. align-items: center;
  152. border: 3px solid #fff;
  153. border-radius: 9px;
  154. margin-bottom: 6px;
  155. background-color: #fff;
  156. padding: 4px;
  157. transition: all .3s;
  158. overflow: hidden;
  159. --van-notice-bar-text-color: #333;
  160. &.disableNotic {
  161. :global {
  162. .van-notice-bar__content {
  163. transition-duration: 0s !important;
  164. transform: none !important;
  165. }
  166. }
  167. }
  168. &.musicActive {
  169. border-width: 3px;
  170. background: linear-gradient(180deg, #FFFFFF 0%, #BFE1FF 100%);
  171. transform: scale(1.05);
  172. box-shadow: 0px 2px 4px 0px rgba(73, 159, 228, 1);
  173. --van-notice-bar-text-color: rgba(73, 159, 228, 1);
  174. :global {
  175. .van-notice-bar__content {
  176. transition-property: transform;
  177. }
  178. }
  179. }
  180. .musicAvtor {
  181. display: block;
  182. width: 7.2vw;
  183. height: 7.2vw;
  184. border-radius: 10Px;
  185. object-fit: cover;
  186. flex-shrink: 0;
  187. margin-right: 1vw;
  188. opacity: 0;
  189. transition: opacity .3s;
  190. }
  191. .musicAvtor[loaded="true"] {
  192. opacity: 1;
  193. }
  194. .musicInfo {
  195. flex: 1;
  196. .musicName {
  197. font-weight: 600;
  198. color: #333;
  199. margin-bottom: 3px;
  200. }
  201. .noticeBar {
  202. padding: 0;
  203. height: 28px;
  204. }
  205. .musicDes {
  206. width: 100%;
  207. display: flex;
  208. align-items: center;
  209. }
  210. .musicFavitor {
  211. border: 1px solid #FFC5C5;
  212. color: #FF6A6A;
  213. padding: 1px 3px 1px 14px;
  214. border-radius: 4px;
  215. background-color: #FFF8F7;
  216. background-image: url('./image/icon_hot.svg');
  217. background-repeat: no-repeat;
  218. background-size: auto 70%;
  219. background-position: 2px center;
  220. margin-right: 4px;
  221. }
  222. .musicAuthor {
  223. flex: 1;
  224. font-size: 12px;
  225. font-weight: 400;
  226. color: #777;
  227. line-height: 12px;
  228. max-width: 9vw;
  229. }
  230. }
  231. .musicIcon {
  232. flex-shrink: 0;
  233. margin-right: 4px;
  234. }
  235. }
  236. .right {
  237. position: relative;
  238. background: #fff;
  239. overflow: hidden;
  240. border: none;
  241. width: 55%;
  242. }
  243. .right-musicName {
  244. font-size: 15px;
  245. font-weight: 500;
  246. color: #131415;
  247. line-height: 20px;
  248. text-align: center;
  249. padding: 12px 0;
  250. }
  251. .staff {
  252. width: 100%;
  253. }
  254. .rightBtns {
  255. position: absolute;
  256. bottom: 0;
  257. left: 0;
  258. right: 0;
  259. padding: 0 8px 18px 8px;
  260. display: flex;
  261. align-items: flex-end;
  262. height: 78px;
  263. background: #fff;
  264. background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #C1EEFF 100%);
  265. border-radius: 0 0 18px 18px;
  266. &>img {
  267. margin: 0 4px;
  268. height: 30px;
  269. transition: .3s;
  270. &:active {
  271. transform: scale(0.6);
  272. }
  273. }
  274. &>img:last-child {
  275. margin-left: auto;
  276. animation: scaleBtn 1s ease-in-out infinite;
  277. }
  278. }
  279. @keyframes scaleBtn {
  280. 0% {
  281. transform: scale(1);
  282. }
  283. 50% {
  284. transform: scale(1.1);
  285. }
  286. 100% {
  287. transform: scale(1);
  288. }
  289. }
  290. @keyframes displayIcon {
  291. to {
  292. opacity: 1;
  293. }
  294. }
  295. .loadingWrap {
  296. display: flex;
  297. justify-content: center;
  298. min-height: 80Px;
  299. }
  300. .empty {
  301. :global {
  302. .van-empty__image {
  303. width: 50%;
  304. height: initial;
  305. }
  306. .van-empty__description {
  307. color: #fff;
  308. }
  309. }
  310. }