index.module.less 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. .tempoPractice {
  2. position: fixed;
  3. left: 0;
  4. top: 0;
  5. width: 100vw;
  6. height: 100vh;
  7. overflow: hidden;
  8. display: flex;
  9. // flex-direction: column;
  10. background: url("./images/bg.png") no-repeat center center / cover;
  11. .containerLeft {
  12. height: 100%;
  13. }
  14. &.modal {
  15. .head {
  16. padding: 0 23px 8px 23px;
  17. }
  18. .iconBack {
  19. opacity: 0;
  20. pointer-events: none;
  21. visibility: hidden;
  22. }
  23. .head {
  24. padding: 0 23px 8px 23px;
  25. }
  26. }
  27. &.courseware {
  28. .head {
  29. justify-content: center;
  30. }
  31. }
  32. }
  33. .conCon {
  34. flex: 1 auto;
  35. display: flex;
  36. align-items: center;
  37. }
  38. .pc {
  39. .container {
  40. max-width: 1200px;
  41. gap: 30px 0;
  42. }
  43. .beatSection {
  44. .beat {
  45. width: 206px;
  46. height: 284px;
  47. img {
  48. width: 140px;
  49. }
  50. }
  51. &.small {
  52. .beat {
  53. width: 139px !important;
  54. height: 191px !important;
  55. img {
  56. width: 108px;
  57. }
  58. }
  59. }
  60. }
  61. .footer {
  62. padding-bottom: 36px;
  63. }
  64. }
  65. .head {
  66. position: relative;
  67. display: flex;
  68. align-items: flex-start;
  69. justify-content: space-between;
  70. padding: 0 23px 8px 41px;
  71. transition: opacity 0.3s ease-in-out;
  72. .back {
  73. padding-top: 17px;
  74. width: 46px;
  75. height: 46px;
  76. img {
  77. width: 46px;
  78. height: 46px;
  79. display: block;
  80. }
  81. }
  82. .title {
  83. img {
  84. width: 173px;
  85. height: 75px;
  86. display: block;
  87. }
  88. }
  89. }
  90. .container {
  91. display: flex;
  92. align-items: center;
  93. justify-content: center;
  94. flex: 1 auto;
  95. flex-wrap: wrap;
  96. // gap: 15px 0;
  97. // margin-bottom: 15px;
  98. max-width: 900px;
  99. margin: 0 auto;
  100. }
  101. .beatSection {
  102. display: flex;
  103. align-items: center;
  104. justify-content: center;
  105. // margin-bottom: 15px;
  106. margin: 7px 0;
  107. &.small {
  108. width: 50%;
  109. // margin: 0 16px;
  110. &:nth-child(2n + 1) {
  111. justify-content: flex-end;
  112. padding-right: 12px;
  113. }
  114. &:nth-child(2n + 2) {
  115. justify-content: flex-start;
  116. padding-left: 12px;
  117. }
  118. .beat {
  119. transition: all .1s ease;
  120. border: 2px solid #fff;
  121. // width: 65px;
  122. // height: 86px;
  123. width: 60px;
  124. height: 72px;
  125. cursor: pointer;
  126. margin: 0 7px;
  127. &::before,
  128. &::after {
  129. width: 19px;
  130. height: 5px;
  131. }
  132. img {
  133. width: 48px;
  134. }
  135. }
  136. }
  137. .beat {
  138. display: flex;
  139. align-items: center;
  140. flex-direction: column;
  141. margin: 0 13px;
  142. width: 118px;
  143. height: 156px;
  144. box-shadow: 0px 2px 16px 0px #76C3D2;
  145. border-radius: 5px;
  146. border: 3px solid #fff;
  147. background: #FFFFFF;
  148. position: relative;
  149. transition: all .1s ease;
  150. .direction {
  151. position: absolute;
  152. left: 0;
  153. right: 0;
  154. bottom: 0;
  155. top: 0;
  156. display: flex;
  157. align-items: center;
  158. flex-direction: column;
  159. z-index: 9;
  160. &>div {
  161. width: 100%;
  162. flex: 1;
  163. }
  164. }
  165. &.active {
  166. border: 3px solid rgba(255, 167, 0, 1);
  167. }
  168. .imgSection {
  169. display: flex;
  170. align-items: center;
  171. justify-content: center;
  172. flex: 1;
  173. }
  174. img {
  175. width: 96px;
  176. }
  177. &.disabledChange {
  178. &::before,
  179. &::after {
  180. display: none;
  181. }
  182. }
  183. &::before,
  184. &::after {
  185. content: '';
  186. display: block;
  187. width: 30px;
  188. height: 7px;
  189. background: url('./images/icon-arrow.png') no-repeat center center / contain;
  190. margin: 0 auto;
  191. }
  192. &::before {
  193. margin-top: 3px;
  194. }
  195. &::after {
  196. margin-bottom: 3px;
  197. transform: rotate(180deg);
  198. }
  199. }
  200. }
  201. .footer {
  202. padding: 12px 0 20px;
  203. display: flex;
  204. align-items: center;
  205. justify-content: center;
  206. &>div {
  207. margin: 0 9px;
  208. cursor: pointer;
  209. img {
  210. width: inherit;
  211. height: inherit;
  212. display: block;
  213. }
  214. }
  215. .play {
  216. width: 54px;
  217. height: 55px;
  218. }
  219. .playType {
  220. width: 175px;
  221. height: 39px;
  222. }
  223. .randomTempo {
  224. width: 90px;
  225. height: 39px;
  226. }
  227. .setting {
  228. width: 74px;
  229. height: 39px;
  230. }
  231. .speedChange {
  232. width: 110px;
  233. height: 39px;
  234. background: url('./images/btn-4.png') no-repeat center center / contain;
  235. display: flex;
  236. align-items: center;
  237. padding: 9px;
  238. display: flex;
  239. align-items: center;
  240. :global {
  241. .van-popover__wrapper {
  242. flex: 1;
  243. }
  244. }
  245. .speedNum {
  246. flex: 1;
  247. font-size: 16px;
  248. font-weight: 600;
  249. color: #6B3B19;
  250. display: flex;
  251. align-items: center;
  252. justify-content: center;
  253. &::after {
  254. content: '';
  255. display: inline-block;
  256. width: 8px;
  257. height: 5px;
  258. margin-left: 4px;
  259. background: url('./images/icon-arrow2.png') no-repeat center center / contain;
  260. }
  261. }
  262. }
  263. .speedPlus,
  264. .speedAdd {
  265. width: 21px;
  266. height: 21px;
  267. }
  268. }
  269. .settingPopup {
  270. background: transparent;
  271. overflow: visible;
  272. }
  273. .popupContainer {
  274. margin-top: -10px !important;
  275. --van-popover-action-height: 32px;
  276. --van-popover-action-font-size: 14px;
  277. --van-popover-radius: 12px;
  278. --van-popover-action-width: 85px;
  279. padding: 4Px 0;
  280. border-radius: 12px;
  281. background-color: #fff;
  282. box-shadow: 0 0.05333rem 0.32rem rgba(50, 50, 51, .12);
  283. :global {
  284. .van-popover__content {
  285. max-height: 200px;
  286. box-shadow: none;
  287. overflow-y: auto;
  288. &::-webkit-scrollbar {
  289. width: 4px;
  290. }
  291. &::-webkit-scrollbar-thumb {
  292. border-radius: 10px;
  293. background: rgba(0, 0, 0, 0.2);
  294. }
  295. &::-webkit-scrollbar-track {
  296. border-radius: 0;
  297. background: rgba(0, 0, 0, 0.1);
  298. }
  299. }
  300. .van-popover__action {
  301. padding: 0 9px;
  302. }
  303. }
  304. }
  305. :global {
  306. .settingBoxClass_drag .settingContainer_pc {
  307. border-radius: 16px;
  308. height: 50vh !important;
  309. }
  310. }
  311. .containerLeft {
  312. flex: 1;
  313. display: flex;
  314. flex-direction: column;
  315. transition: all .2s ease;
  316. &.leftShow {
  317. .beatSection {
  318. .beat {
  319. width: 85px;
  320. height: 105px;
  321. transition: all .1s ease;
  322. img {
  323. width: 64px;
  324. }
  325. }
  326. &.small {
  327. &:nth-child(2n + 1) {
  328. justify-content: flex-end;
  329. padding-right: 4px;
  330. }
  331. &:nth-child(2n + 2) {
  332. justify-content: flex-start;
  333. padding-left: 4px;
  334. }
  335. .beat {
  336. width: 42px !important;
  337. height: 56px !important;
  338. transition: all .1s ease;
  339. img {
  340. width: 28px;
  341. }
  342. }
  343. }
  344. }
  345. .footer {
  346. &>div {
  347. margin: 0 7px;
  348. }
  349. .play {
  350. width: 42px;
  351. height: 42px;
  352. }
  353. .playType {
  354. width: 175px;
  355. height: 39px;
  356. }
  357. }
  358. }
  359. }
  360. .containerRight {
  361. width: 281px;
  362. transition: all .2s ease;
  363. &.rightHide {
  364. transform: translateX(100%);
  365. width: 0;
  366. transition: all .2s ease;
  367. }
  368. }
  369. .settingModalShow {
  370. height: 100% !important;
  371. width: 281px !important;
  372. }