index.wxss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. /* pages/edit/index.wxss */
  2. .operate-panel-bg {
  3. background-color: var(--weui-BG-0);
  4. backdrop-filter: blur(5px);
  5. border-top-left-radius: 1em;
  6. border-top-right-radius: 1em;
  7. position: fixed;
  8. padding-top: 15px;
  9. bottom: 0;
  10. width: 100%;
  11. color: #000;
  12. font-size: 32rpx;
  13. z-index: 999;
  14. height: 80vh;
  15. }
  16. .show-panel-anim {
  17. animation: showpanel 0.3s 1;
  18. animation-timing-function: linear;
  19. animation-fill-mode: forwards;
  20. height: 100%;
  21. }
  22. .hide-panel-anim {
  23. animation: hidepanel 0.3s 1;
  24. animation-timing-function: linear;
  25. animation-fill-mode: forwards;
  26. }
  27. .operate-list-main {
  28. width: 100%;
  29. padding: 0 0 0 0;
  30. padding-bottom: constant(safe-area-inset-bottom);
  31. padding-bottom: env(safe-area-inset-bottom);
  32. position: relative;
  33. }
  34. .filter-main{
  35. padding-bottom: 30rpx;
  36. }
  37. .operate-list-main .item {
  38. display: inline-block;
  39. height: 100%;
  40. padding: 20rpx 20rpx;
  41. }
  42. .operate-list-main .item-selected .desc {
  43. color: #ff584c;
  44. }
  45. .operate-list-main .item-selected .desc .marquee {
  46. display: inline-block;
  47. animation: marquee 8s linear infinite;
  48. }
  49. @keyframes marquee {
  50. 0% {
  51. transform: translate(0, 0);
  52. }
  53. 50% {
  54. transform: translate(-100%, 0);
  55. }
  56. 50.001% {
  57. transform: translate(100%, 0);
  58. }
  59. 100% {
  60. transform: translate(0, 0);
  61. }
  62. }
  63. .operate-list-main .item-selected .icon {
  64. border: 2rpx solid #ff584c;
  65. }
  66. .operate-list-main .icon {
  67. vertical-align: middle;
  68. width: 100rpx;
  69. height: 100rpx;
  70. overflow: hidden;
  71. border-radius: 50%;
  72. }
  73. .operate-list-main .music-more {
  74. width: 100rpx;
  75. height: 100rpx;
  76. overflow: hidden;
  77. border-radius: 50%;
  78. background-color: rgba(255, 255, 255, 0.1);
  79. display: inline-block;
  80. }
  81. .operate-list-main .music-more .music-more-icon {
  82. width: 60rpx;
  83. height: 60rpx;
  84. margin: 20rpx 20rpx;
  85. text-align: center;
  86. }
  87. .operate-list-main .desc {
  88. text-align: center;
  89. color: #fff;
  90. font-size: 24rpx;
  91. width: 100rpx;
  92. overflow: hidden;
  93. }
  94. .operate-list-main .slider-container {
  95. width: 100%;
  96. height: 200rpx;
  97. padding-top:30rpx;
  98. }
  99. .operate-list-main .slider-container .slider-item .slider-desc {
  100. display: inline-block;
  101. width: 15%;
  102. text-align: center;
  103. }
  104. .operate-list-main .slider-container .slider-item .slider-oper-area {
  105. display: inline-block;
  106. width: 85%;
  107. }
  108. .music-tab {
  109. width: 100%;
  110. /* margin-top: 80px; */
  111. padding-left: 10px;
  112. padding-right: 10px;
  113. /* border-bottom: 2rpx solid rgba(255, 255, 255, .1); */
  114. }
  115. .music-main-container {
  116. width: 100%;
  117. height: calc(100% - env(safe-area-inset-bottom));
  118. position: fixed;
  119. z-index: 1111;
  120. top: 0;
  121. left: 0;
  122. background-color: #1c1c1e;
  123. overflow: hidden;
  124. }
  125. .music-main-container.enter {
  126. animation: enter 0.2s ease-in both;
  127. /* animation-fill-mode: forwards; */
  128. }
  129. .music-main-container.exit {
  130. animation: exit 0.2s ease-in both;
  131. }
  132. @keyframes enter {
  133. from {
  134. transform: translateY(100%); /*设置为正数则底部弹出来,负数则相反*/
  135. }
  136. to {
  137. transform: translateY(0%);
  138. }
  139. }
  140. @-webkit-keyframes enter {
  141. from {
  142. transform: translateY(100%); /*设置为正数则底部弹出来,负数则相反*/
  143. }
  144. to {
  145. transform: translateY(0%);
  146. }
  147. }
  148. @keyframes exit {
  149. from {
  150. transform: translateY(0%); /*设置为正数则底部弹出来,负数则相反*/
  151. }
  152. to {
  153. transform: translateY(100%);
  154. }
  155. }
  156. @-webkit-keyframes exit {
  157. from {
  158. transform: translateY(0%); /*设置为正数则底部弹出来,负数则相反*/
  159. }
  160. to {
  161. transform: translateY(100%);
  162. }
  163. }
  164. .music-tab .tab-item {
  165. color:rgba(255, 255, 255, 0.5);
  166. font-size: 32rpx;
  167. display: inline-block;
  168. padding: 24rpx;
  169. text-align: center;
  170. /* width: 15%; */
  171. }
  172. .music-tab .tab-item:last-child {
  173. margin-right: 30px;
  174. }
  175. .music-tab .tab-list .active {
  176. /* border-bottom: 4rpx solid #ff584c; */
  177. color: #ff584c;
  178. font-weight: bold;
  179. position: relative;
  180. }
  181. .weui-search-bar{
  182. background-color: rgba(0,0,0,.3);
  183. }
  184. .subtitle{
  185. font-size: 10px;
  186. text-align: center;
  187. }
  188. .music-tab .tab-list .active::after {
  189. content: "";
  190. width: 30rpx;
  191. height: 4rpx;
  192. position: absolute;
  193. left: 50%;
  194. bottom: 0;
  195. margin-left: -15rpx;
  196. background: #ff584c;
  197. }
  198. .music-list-wrap {
  199. height: 100%;
  200. color: rgba(140, 140, 140, 1);
  201. padding: 0 30rpx;
  202. }
  203. .music-list-wrap .tips-error {
  204. margin-top: 160px;
  205. text-align: center;
  206. }
  207. .music-list-wrap .item {
  208. margin-top: 40rpx;
  209. height: 100rpx;
  210. vertical-align: center;
  211. position: relative;
  212. color: #fff;
  213. }
  214. .music-list-wrap .item-selected {
  215. color: #ff584c;
  216. }
  217. .music-list-wrap .item .desc {
  218. padding-left: 120rpx;
  219. line-height: 100rpx;
  220. }
  221. .music-list-wrap .item .icon-wrap {
  222. height: 100rpx;
  223. width: 100rpx;
  224. position: absolute;
  225. left: 0;
  226. top: 0;
  227. }
  228. .music-list-wrap .icon-select-wrap {
  229. height: 100rpx;
  230. width: 100rpx;
  231. position: absolute;
  232. right: 0;
  233. top: 0;
  234. }
  235. .icon-select-wrap .icon-selected {
  236. height: 60rpx;
  237. width: 120rpx;
  238. position: absolute;
  239. right: 30rpx;
  240. top: 20rpx;
  241. /* background: #ff584c; */
  242. text-align: center;
  243. line-height: 60rpx;
  244. color: #fff;
  245. }
  246. .music-list-wrap .item .icon-unselected {
  247. height: 60rpx;
  248. width: 60rpx;
  249. position: absolute;
  250. right: 20rpx;
  251. top: 20rpx;
  252. border-radius: 50%;
  253. border: 1px solid #fff;
  254. }
  255. .music-list-wrap .item .icon-cover {
  256. height: 100rpx;
  257. width: 100rpx;
  258. border-radius: 50%;
  259. }
  260. .music-list-wrap .item .icon-play {
  261. height: 50rpx;
  262. width: 50rpx;
  263. position: absolute;
  264. top: 25rpx;
  265. left: 25rpx;
  266. }
  267. .music-fixed-footer {
  268. position: fixed;
  269. bottom: 60rpx;
  270. width: 100%;
  271. }
  272. .btn-add-local-music {
  273. color: #ff584c;
  274. width: 90%;
  275. height: 96rpx;
  276. line-height: 96rpx;
  277. text-align: center;
  278. border: 2rpx solid #ff584c;
  279. margin: 0 auto;
  280. border-radius: 200rpx 200rpx 200rpx 200rpx;
  281. }
  282. .music-oper-tab {
  283. width: 100%;
  284. height: 100rpx;
  285. }
  286. .music-oper-tab .tab-item {
  287. width: 50%;
  288. height: 100rpx;
  289. display: inline-block;
  290. text-align: center;
  291. line-height: 100rpx;
  292. font-size: 32rpx;
  293. font-weight: bold;
  294. }
  295. .music-oper-tab .item-selected {
  296. color: #ff584c;
  297. }
  298. .item-selected .icon-cover {
  299. animation: spin 4s linear infinite;
  300. }
  301. /* .item .icon-wrap .icon-cover {
  302. border-color: pink !important ;
  303. } */
  304. @keyframes spin {
  305. 100% {
  306. -webkit-transform: rotate(360deg);
  307. transform: rotate(360deg);
  308. }
  309. }
  310. /* .music-main-container {
  311. position: ;
  312. } */
  313. .music-main-container.enter {
  314. animation: enter 0.2s ease-in both;
  315. /* animation-fill-mode: forwards; */
  316. }
  317. .music-main-container.exit {
  318. animation: exit 0.2s ease-in both;
  319. }
  320. @keyframes enter {
  321. from {
  322. transform: translateY(100%); /*设置为正数则底部弹出来,负数则相反*/
  323. }
  324. to {
  325. transform: translateY(0%);
  326. }
  327. }
  328. @-webkit-keyframes enter {
  329. from {
  330. transform: translateY(100%); /*设置为正数则底部弹出来,负数则相反*/
  331. }
  332. to {
  333. transform: translateY(0%);
  334. }
  335. }
  336. @keyframes exit {
  337. from {
  338. transform: translateY(0%); /*设置为正数则底部弹出来,负数则相反*/
  339. }
  340. to {
  341. transform: translateY(100%);
  342. }
  343. }
  344. @-webkit-keyframes exit {
  345. from {
  346. transform: translateY(0%); /*设置为正数则底部弹出来,负数则相反*/
  347. }
  348. to {
  349. transform: translateY(100%);
  350. }
  351. }
  352. .scroll-wrap-list {
  353. padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
  354. }
  355. .music-top-wrap {
  356. /* margin-bottom: env(safe-area-inset-bottom); */
  357. background-color: red;
  358. z-index: 9999;
  359. /* height: 3000px;
  360. */
  361. background-color: #1c1c1e;
  362. position: absolute;
  363. top: 0;
  364. right: 0;
  365. left: 0;
  366. bottom: 0;
  367. }
  368. /* .scroll-change-bottom {
  369. padding-bottom: env(safe-area-inset-bottom);
  370. } */