index.module.less 9.0 KB

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