index.module.less 9.3 KB

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