index.module.less 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  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: 20px 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: 117px !important;
  54. height: 161px !important;
  55. img {
  56. width: 80px;
  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. border: 2px solid #fff;
  120. // width: 65px;
  121. // height: 86px;
  122. width: 60px;
  123. height: 72px;
  124. cursor: pointer;
  125. margin: 0 7px;
  126. border-radius: 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: 14px;
  146. border: 3px solid #fff;
  147. background: #FFFFFF;
  148. position: relative;
  149. &>div {
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. flex: 1;
  154. }
  155. :global {
  156. .sortable-chosen.sortable-ghost {
  157. display: none !important;
  158. }
  159. }
  160. .direction {
  161. position: absolute;
  162. left: 0;
  163. right: 0;
  164. bottom: 0;
  165. top: 0;
  166. display: flex;
  167. align-items: center;
  168. flex-direction: column;
  169. z-index: 9;
  170. &>div {
  171. width: 100%;
  172. flex: 1;
  173. }
  174. }
  175. &.active {
  176. border: 3px solid rgba(255, 167, 0, 1);
  177. }
  178. .imgSection {
  179. display: flex;
  180. align-items: center;
  181. justify-content: center;
  182. flex: 1;
  183. }
  184. img {
  185. width: 96px;
  186. }
  187. &.disabledChange {
  188. &::before,
  189. &::after {
  190. display: none;
  191. }
  192. }
  193. &::before,
  194. &::after {
  195. content: '';
  196. display: block;
  197. width: 30px;
  198. height: 7px;
  199. background: url('./images/icon-arrow.png') no-repeat center center / contain;
  200. margin: 0 auto;
  201. }
  202. &::before {
  203. margin-top: 3px;
  204. }
  205. &::after {
  206. margin-bottom: 3px;
  207. transform: rotate(180deg);
  208. }
  209. }
  210. :global {
  211. .onstart {
  212. .sortable-chosen.sortable-ghost {
  213. display: inherit !important;
  214. }
  215. }
  216. .sortable-drag {
  217. opacity: 0 !important;
  218. }
  219. }
  220. }
  221. .footer {
  222. padding: 12px 0 20px;
  223. display: flex;
  224. align-items: center;
  225. justify-content: center;
  226. &>div {
  227. margin: 0 9px;
  228. cursor: pointer;
  229. img {
  230. width: inherit;
  231. height: inherit;
  232. display: block;
  233. }
  234. }
  235. .play {
  236. width: 54px;
  237. height: 55px;
  238. }
  239. .playType {
  240. width: 175px;
  241. height: 39px;
  242. }
  243. .randomTempo {
  244. width: 90px;
  245. height: 39px;
  246. }
  247. .setting {
  248. width: 74px;
  249. height: 39px;
  250. }
  251. .speedChange {
  252. width: 110px;
  253. height: 39px;
  254. background: url('./images/btn-4.png') no-repeat center center / contain;
  255. display: flex;
  256. align-items: center;
  257. padding: 9px;
  258. display: flex;
  259. align-items: center;
  260. :global {
  261. .van-popover__wrapper {
  262. flex: 1;
  263. }
  264. }
  265. .speedNum {
  266. flex: 1;
  267. font-size: 16px;
  268. font-weight: 600;
  269. color: #6B3B19;
  270. display: flex;
  271. align-items: center;
  272. justify-content: center;
  273. &::after {
  274. content: '';
  275. display: inline-block;
  276. width: 8px;
  277. height: 5px;
  278. margin-left: 4px;
  279. background: url('./images/icon-arrow2.png') no-repeat center center / contain;
  280. }
  281. }
  282. }
  283. .speedPlus,
  284. .speedAdd {
  285. width: 21px;
  286. height: 21px;
  287. }
  288. }
  289. .settingPopup {
  290. background: transparent;
  291. overflow: visible;
  292. :global {
  293. .bom_drag {
  294. pointer-events: none;
  295. }
  296. .bom_drag_point {
  297. opacity: 0.3;
  298. }
  299. .bom_drag_point,
  300. .bom_drag_point_right {
  301. pointer-events: all;
  302. }
  303. }
  304. }
  305. .popupContainer {
  306. margin-top: -10px !important;
  307. --van-popover-action-height: 32px;
  308. --van-popover-action-font-size: 14px;
  309. --van-popover-radius: 12px;
  310. --van-popover-action-width: 85px;
  311. padding: 4Px 0;
  312. border-radius: 12px;
  313. background-color: #fff;
  314. box-shadow: 0 0.05333rem 0.32rem rgba(50, 50, 51, .12);
  315. border-radius: var(--van-popover-radius);
  316. overflow: hidden;
  317. :global {
  318. .van-popover__content {
  319. max-height: 200px;
  320. box-shadow: none;
  321. overflow-y: auto;
  322. &::-webkit-scrollbar {
  323. width: 4px;
  324. }
  325. &::-webkit-scrollbar-thumb {
  326. border-radius: 10px;
  327. background: rgba(0, 0, 0, 0.2);
  328. }
  329. &::-webkit-scrollbar-track {
  330. border-radius: 0;
  331. background: rgba(0, 0, 0, 0.1);
  332. }
  333. }
  334. .van-popover__action {
  335. padding: 0 9px;
  336. }
  337. }
  338. }
  339. :global {
  340. .settingBoxClass_drag .settingContainer_pc {
  341. border-radius: 16px;
  342. height: 60vh !important;
  343. }
  344. }
  345. .containerLeft {
  346. flex: 1;
  347. display: flex;
  348. flex-direction: column;
  349. &.leftShow {
  350. .beatSection {
  351. .beat {
  352. width: 80px;
  353. height: 100px;
  354. margin: 0 8px;
  355. img {
  356. width: 64px;
  357. }
  358. }
  359. &.small {
  360. &:nth-child(2n + 1) {
  361. justify-content: flex-end;
  362. padding-right: 4px;
  363. }
  364. &:nth-child(2n + 2) {
  365. justify-content: flex-start;
  366. padding-left: 4px;
  367. }
  368. .beat {
  369. width: 44px !important;
  370. height: 58px !important;
  371. margin: 0 3px;
  372. img {
  373. width: 28px;
  374. }
  375. }
  376. }
  377. }
  378. .footer {
  379. &>div {
  380. margin: 0 4px;
  381. }
  382. .play {
  383. width: 42px;
  384. height: 42px;
  385. }
  386. .playType {
  387. width: 147px;
  388. height: 33px;
  389. }
  390. .randomTempo {
  391. width: 75px;
  392. height: 33px;
  393. }
  394. .speedChange {
  395. width: 92px;
  396. height: 33px;
  397. .speedNum {
  398. font-size: 13px;
  399. }
  400. .speedPlus,
  401. .speedAdd {
  402. width: 18px;
  403. height: 18px;
  404. }
  405. }
  406. }
  407. }
  408. }
  409. .containerRight {
  410. width: 281px;
  411. transition: all .1s ease;
  412. &.rightHide {
  413. transform: translateX(100%);
  414. width: 0;
  415. transition: all .1s ease;
  416. .settingModalShow {
  417. display: none;
  418. }
  419. }
  420. }
  421. .settingModalShow {
  422. height: 100% !important;
  423. width: 281px !important;
  424. }
  425. @media all and (max-width: 720px) {
  426. .containerLeft {
  427. flex: 1;
  428. display: flex;
  429. flex-direction: column;
  430. &.leftShow {
  431. .beatSection {
  432. .beat {
  433. width: 70px;
  434. height: 90px;
  435. margin: 0 8px;
  436. img {
  437. width: 64px;
  438. }
  439. }
  440. &.small {
  441. &:nth-child(2n + 1) {
  442. justify-content: flex-end;
  443. padding-right: 4px;
  444. }
  445. &:nth-child(2n + 2) {
  446. justify-content: flex-start;
  447. padding-left: 4px;
  448. }
  449. .beat {
  450. width: 35px !important;
  451. height: 46px !important;
  452. margin: 0 3px;
  453. img {
  454. width: 28px;
  455. }
  456. }
  457. }
  458. }
  459. .footer {
  460. &>div {
  461. margin: 0 4px;
  462. }
  463. .play {
  464. width: 35px;
  465. height: 35px;
  466. }
  467. .playType {
  468. width: 129px;
  469. height: 29px;
  470. }
  471. .randomTempo {
  472. width: 67px;
  473. height: 29px;
  474. }
  475. .speedChange {
  476. width: 81px;
  477. height: 29px;
  478. .speedNum {
  479. font-size: 12px;
  480. }
  481. .speedPlus,
  482. .speedAdd {
  483. width: 16px;
  484. height: 16px;
  485. }
  486. }
  487. }
  488. }
  489. }
  490. .containerRight {
  491. width: 245px;
  492. transition: all 0.03s ease;
  493. }
  494. .settingModalShow {
  495. height: 100% !important;
  496. width: 245px !important;
  497. }
  498. .containerRight {
  499. width: 245px;
  500. transition: all 0.03s ease;
  501. &.rightHide {
  502. transform: translateX(100%);
  503. width: 0;
  504. transition: all 0.03s ease;
  505. }
  506. }
  507. }