index.module.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. width: 55%;
  35. display: flex;
  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. border-color: #99FFD0;
  79. animation: scaleBtn 1s ease-in-out;
  80. }
  81. }
  82. }
  83. .typeImg {
  84. padding: 6px;
  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. box-shadow: 2px 1Px 1px rgba(255, 255, 255, 1);
  99. filter: drop-shadow(1px 6px 6px rgba(0, 0, 0, 0.5));
  100. }
  101. }
  102. .center {
  103. flex: 1;
  104. position: relative;
  105. padding-right: 12px;
  106. height: 100%;
  107. :global {
  108. .van-search {
  109. padding: 6px 9px;
  110. width: 100%;
  111. z-index: 1;
  112. }
  113. }
  114. }
  115. .musicContent {
  116. width: 100%;
  117. height: calc(100% - var(--van-search-input-height) - 12px - 2Px);
  118. padding: 6px 12px 12px 12px;
  119. overflow-x: hidden;
  120. overflow-y: auto;
  121. &::-webkit-scrollbar {
  122. width: 0;
  123. display: none;
  124. }
  125. }
  126. .musicItem {
  127. position: relative;
  128. display: flex;
  129. align-items: center;
  130. border: 3px solid #fff;
  131. border-radius: 9px;
  132. margin-bottom: 6px;
  133. background-color: #fff;
  134. padding: 4px;
  135. transition: all .3s;
  136. &.disableNotic {
  137. :global {
  138. .van-notice-bar__content {
  139. transition-duration: 0s !important;
  140. transform: none !important;
  141. }
  142. }
  143. }
  144. &.musicActive {
  145. border-width: 3px;
  146. background: linear-gradient(180deg, #FFFFFF 0%, #BFE1FF 100%);
  147. transform: scale(1.05);
  148. box-shadow: 0px 2px 4px 0px rgba(73, 159, 228, 1);
  149. }
  150. .musicAvtor {
  151. display: block;
  152. width: 8.2vw;
  153. height: 8.2vw;
  154. border-radius: 8Px;
  155. object-fit: cover;
  156. flex-shrink: 0;
  157. margin-right: 1vw;
  158. }
  159. .musicInfo {
  160. flex: 1;
  161. .musicName {
  162. font-weight: 600;
  163. color: #333;
  164. margin-bottom: 3px;
  165. }
  166. .noticeBar {
  167. padding: 0;
  168. height: 28px;
  169. }
  170. .musicDes {
  171. width: 100%;
  172. display: flex;
  173. align-items: center;
  174. }
  175. .musicFavitor {
  176. border: 1px solid #FFC5C5;
  177. color: #FF6A6A;
  178. padding: 1px 3px 1px 14px;
  179. border-radius: 4px;
  180. background-color: #FFF8F7;
  181. background-image: url('./image/icon_hot.svg');
  182. background-repeat: no-repeat;
  183. background-size: auto 70%;
  184. background-position: 2px center;
  185. margin-right: 4px;
  186. }
  187. .musicAuthor {
  188. flex: 1;
  189. font-size: 12px;
  190. font-weight: 400;
  191. color: #777;
  192. line-height: 12px;
  193. max-width: 9vw;
  194. }
  195. }
  196. .musicIcon {
  197. flex-shrink: 0;
  198. margin-right: 4px;
  199. }
  200. }
  201. .right {
  202. position: relative;
  203. background: #fff;
  204. overflow: hidden;
  205. border: none;
  206. width: 45%;
  207. }
  208. .right-musicName {
  209. font-size: 15px;
  210. font-weight: 500;
  211. color: #131415;
  212. line-height: 20px;
  213. text-align: center;
  214. padding: 12px 0;
  215. }
  216. .staff {
  217. width: 100%;
  218. }
  219. .rightBtns {
  220. position: absolute;
  221. bottom: 0;
  222. left: 0;
  223. right: 0;
  224. padding: 0 8px 18px 8px;
  225. display: flex;
  226. align-items: flex-end;
  227. height: 78px;
  228. background: #fff;
  229. background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #C1EEFF 100%);
  230. &>img {
  231. margin: 0 4px;
  232. height: 30px;
  233. transition: .3s;
  234. &:active {
  235. transform: scale(0.6);
  236. }
  237. }
  238. &>img:last-child {
  239. margin-left: auto;
  240. animation: scaleBtn 1s ease-in-out infinite;
  241. }
  242. }
  243. @keyframes scaleBtn {
  244. 0% {
  245. transform: scale(1);
  246. }
  247. 50% {
  248. transform: scale(1.1);
  249. }
  250. 100% {
  251. transform: scale(1);
  252. }
  253. }
  254. @keyframes displayIcon {
  255. to {
  256. opacity: 1;
  257. }
  258. }