index.module.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. .headerTop {
  2. display: flex;
  3. align-items: center;
  4. width: 100%;
  5. height: 100%;
  6. flex-shrink: 0;
  7. padding: 0 30px;
  8. background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
  9. }
  10. .headTopLeftBox{
  11. position: fixed;
  12. top: 20px;
  13. left: 30px;
  14. display: flex;
  15. align-items: center;
  16. .img{
  17. width: 32px;
  18. height: 32px;
  19. &:first-child{
  20. margin-right: 10px;
  21. }
  22. }
  23. .title{
  24. width: 216px;
  25. &.isMusicList{
  26. :global{
  27. .van-notice-bar .van-notice-bar__content::after{
  28. position: absolute;
  29. top: 50%;
  30. right: 0;
  31. transform: translateY(-50%);
  32. content: "";
  33. width: 11px;
  34. height: 6px;
  35. background: url("./image/sj.png") no-repeat;
  36. background-size: 100% 100%;
  37. }
  38. }
  39. }
  40. :global{
  41. .van-notice-bar{
  42. height: 30px;
  43. line-height: 30px;
  44. padding: 0;
  45. font-weight: 600;
  46. font-size: 18px;
  47. color: #FFFFFF;
  48. .van-notice-bar__content{
  49. position: relative;
  50. padding-right: 16px;
  51. }
  52. }
  53. }
  54. }
  55. .hidenBack {
  56. opacity: 0;
  57. pointer-events: none;
  58. }
  59. }
  60. .modeChangeBox{
  61. position: fixed;
  62. top: 20px;
  63. right: 30px;
  64. height: 32px;
  65. background: rgba(0, 0, 0, .4);
  66. border-radius: 16px;
  67. display: flex;
  68. align-items: center;
  69. padding: 0 10px;
  70. .img{
  71. width: 18px;
  72. height: 18px;
  73. }
  74. .title{
  75. margin-left: 6px;
  76. font-weight: 500;
  77. font-size: 14px;
  78. color: #FFFFFF;
  79. }
  80. }
  81. .headRight {
  82. display: flex;
  83. align-items: center;
  84. height: 100%;
  85. .btn {
  86. position: relative;
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. cursor: pointer;
  91. margin-right: 30px;
  92. &:last-child{
  93. margin-right: 0;
  94. }
  95. .iconBtn {
  96. width: 24px;
  97. height: 24px;
  98. }
  99. span {
  100. margin-top: 3px;
  101. font-weight: 500;
  102. font-size: 12px;
  103. color: #FFFFFF;
  104. line-height: 17px;
  105. }
  106. }
  107. .metronomeBtn{
  108. position: relative;
  109. .speedCon{
  110. transform: scale(0.83);
  111. transform-origin: left bottom;
  112. padding: 2px;
  113. position: absolute;
  114. left: 14px;
  115. top: -9px;
  116. display: flex;
  117. align-items: center;
  118. background: #FFC121;
  119. border-radius: 120px 120px 120px 1px;
  120. border: 1px solid #FFFFFF;
  121. >img{
  122. width: 15px;
  123. height: 11px;
  124. }
  125. >div{
  126. margin-left: 1px;
  127. font-weight: 600;
  128. font-size: 12px;
  129. color: #673207;
  130. line-height: 1;
  131. }
  132. }
  133. }
  134. }
  135. .disabled {
  136. pointer-events: none;
  137. opacity: .5;
  138. }
  139. .playBtn {
  140. position: fixed;
  141. right: 30px;
  142. bottom: 12px;
  143. transition: bottom .2s ease;
  144. .btnWrap {
  145. width: 50px;
  146. height: 50px;
  147. .iconBtn {
  148. display: block;
  149. width: 100%;
  150. height: 100%;
  151. }
  152. }
  153. &.playLeftButton {
  154. left: 46px !important;
  155. right: auto !important;
  156. bottom: 12px !important;
  157. }
  158. &.playRightButton {
  159. right: 46px !important;
  160. left: auto !important;
  161. bottom: 12px !important;
  162. }
  163. .progress {
  164. position: absolute;
  165. left: 50%;
  166. top: 50%;
  167. transform: translate(-50%, -50%);
  168. width: 85%;
  169. height: 85%;
  170. }
  171. }
  172. .resetBtn {
  173. position: fixed;
  174. right: 100px;
  175. bottom: 12px;
  176. transition: bottom .2s ease;
  177. .iconBtn {
  178. display: block;
  179. width: 50px;
  180. height: 50px;
  181. }
  182. &.pauseLeftButton {
  183. left: 88px !important;
  184. right: auto !important;
  185. bottom: 12px !important;
  186. }
  187. &.pauseRightButton {
  188. right: 88px !important;
  189. left: auto !important;
  190. bottom: 12px !important;
  191. }
  192. }
  193. :global {
  194. .var-popup {
  195. overflow: hidden;
  196. pointer-events: none;
  197. .var-popup__overlay,
  198. .var-popup__content {
  199. pointer-events: auto;
  200. }
  201. }
  202. }
  203. .pcTransPop {
  204. z-index: 999 !important;
  205. }
  206. .modeView {
  207. position: fixed;
  208. z-index: 10000;
  209. top: 0;
  210. left: 0;
  211. width: 100vw;
  212. height: 100vh;
  213. background: url(./image/bg.png) no-repeat;
  214. background-size: 100% 100%;
  215. transition: all .3s;
  216. &.hidden{
  217. opacity: 0;
  218. transform: translateY(100%);
  219. pointer-events: none;
  220. }
  221. .back {
  222. position: absolute;
  223. width: 38px;
  224. height: 38px;
  225. left: 27px;
  226. top: 17px;
  227. cursor: pointer;
  228. }
  229. .name {
  230. position: absolute;
  231. left: 50%;
  232. top: 23px;
  233. transform: translateX(-50%);
  234. width: 87px;
  235. height: 21px;
  236. }
  237. .modeBox {
  238. width: 100%;
  239. margin-top: 90px;
  240. display: flex;
  241. justify-content: space-between;
  242. padding: 0 36px;
  243. &.twoModeBox{
  244. justify-content: center;
  245. > img + img{
  246. margin-left: 150px;
  247. }
  248. }
  249. > img {
  250. width: calc((100% - 2*40px)/3);
  251. max-width: 220px;
  252. }
  253. }
  254. }