index.module.less 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. display: flex;
  12. &.modal {
  13. .iconBack {
  14. opacity: 0;
  15. pointer-events: none;
  16. visibility: hidden;
  17. }
  18. }
  19. &.courseware {
  20. .head {
  21. justify-content: center;
  22. }
  23. }
  24. }
  25. .conCon {
  26. flex: 1 auto;
  27. display: flex;
  28. align-items: center;
  29. }
  30. .pc {
  31. .container {
  32. max-width: 1200px;
  33. gap: 30px 0;
  34. }
  35. .beatSection {
  36. .beat {
  37. width: 206px;
  38. height: 284px;
  39. img {
  40. width: 140px;
  41. }
  42. }
  43. &.small {
  44. .beat {
  45. width: 139px !important;
  46. height: 191px !important;
  47. // width: 65px;
  48. // height: 86px;
  49. img {
  50. width: 108px;
  51. }
  52. }
  53. }
  54. }
  55. .footer {
  56. padding-bottom: 36px;
  57. }
  58. }
  59. .head {
  60. position: relative;
  61. display: flex;
  62. align-items: flex-start;
  63. justify-content: space-between;
  64. padding: 0 23px 8px 41px;
  65. transition: opacity 0.3s ease-in-out;
  66. .back {
  67. padding-top: 17px;
  68. img {
  69. width: 46px;
  70. height: 46px;
  71. display: block;
  72. }
  73. }
  74. .title {
  75. img {
  76. width: 173px;
  77. height: 75px;
  78. display: block;
  79. }
  80. }
  81. }
  82. .container {
  83. display: flex;
  84. align-items: center;
  85. justify-content: center;
  86. flex: 1 auto;
  87. flex-wrap: wrap;
  88. gap: 15px 0;
  89. // margin-bottom: 15px;
  90. max-width: 900px;
  91. margin: 0 auto;
  92. }
  93. .beatSection {
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. // margin-bottom: 15px;
  98. &.small {
  99. width: 50%;
  100. // margin: 0 16px;
  101. &:nth-child(2n + 1) {
  102. justify-content: flex-end;
  103. padding-right: 12px;
  104. }
  105. &:nth-child(2n + 2) {
  106. justify-content: flex-start;
  107. padding-left: 12px;
  108. }
  109. .beat {
  110. border: 2px solid #fff;
  111. width: 65px;
  112. height: 86px;
  113. cursor: pointer;
  114. margin: 0 7px;
  115. &::before,
  116. &::after {
  117. width: 19px;
  118. height: 5px;
  119. }
  120. img {
  121. width: 48px;
  122. }
  123. }
  124. }
  125. .beat {
  126. display: flex;
  127. align-items: center;
  128. flex-direction: column;
  129. margin: 0 13px;
  130. width: 118px;
  131. height: 156px;
  132. box-shadow: 0px 2px 16px 0px #76C3D2;
  133. border-radius: 14px;
  134. border: 3px solid #fff;
  135. background: #FFFFFF;
  136. position: relative;
  137. .direction {
  138. position: absolute;
  139. left: 0;
  140. right: 0;
  141. bottom: 0;
  142. top: 0;
  143. display: flex;
  144. align-items: center;
  145. flex-direction: column;
  146. z-index: 9;
  147. &>div {
  148. width: 100%;
  149. flex: 1;
  150. }
  151. }
  152. &.active {
  153. border: 3px solid rgba(255, 167, 0, 1);
  154. }
  155. .imgSection {
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. flex: 1;
  160. }
  161. img {
  162. width: 96px;
  163. }
  164. &::before,
  165. &::after {
  166. content: '';
  167. display: block;
  168. width: 30px;
  169. height: 7px;
  170. background: url('./images/icon-arrow.png') no-repeat center center / contain;
  171. margin: 0 auto;
  172. }
  173. &::before {
  174. margin-top: 3px;
  175. }
  176. &::after {
  177. margin-bottom: 3px;
  178. transform: rotate(180deg);
  179. }
  180. }
  181. }
  182. .footer {
  183. padding: 12px 0 20px;
  184. display: flex;
  185. align-items: center;
  186. justify-content: center;
  187. &>div {
  188. margin: 0 9px;
  189. cursor: pointer;
  190. img {
  191. width: inherit;
  192. height: inherit;
  193. display: block;
  194. }
  195. }
  196. .play {
  197. width: 54px;
  198. height: 55px;
  199. }
  200. .playType {
  201. width: 175px;
  202. height: 39px;
  203. }
  204. .randomTempo {
  205. width: 90px;
  206. height: 39px;
  207. }
  208. .speedChange {
  209. width: 110px;
  210. height: 39px;
  211. background: url('./images/btn-4.png') no-repeat center center / contain;
  212. display: flex;
  213. align-items: center;
  214. padding: 9px;
  215. display: flex;
  216. align-items: center;
  217. :global {
  218. .van-popover__wrapper {
  219. flex: 1;
  220. }
  221. }
  222. .speedNum {
  223. flex: 1;
  224. font-size: 16px;
  225. font-weight: 600;
  226. color: #6B3B19;
  227. display: flex;
  228. align-items: center;
  229. justify-content: center;
  230. &::after {
  231. content: '';
  232. display: inline-block;
  233. width: 8px;
  234. height: 5px;
  235. margin-left: 4px;
  236. background: url('./images/icon-arrow2.png') no-repeat center center / contain;
  237. }
  238. }
  239. }
  240. .speedPlus,
  241. .speedAdd {
  242. width: 21px;
  243. height: 21px;
  244. }
  245. }
  246. .settingPopup {
  247. background: transparent;
  248. overflow: visible;
  249. }
  250. .popupContainer {
  251. margin-top: -10px !important;
  252. --van-popover-action-height: 32px;
  253. --van-popover-action-font-size: 14px;
  254. --van-popover-radius: 12px;
  255. --van-popover-action-width: 85px;
  256. padding: 4Px 0;
  257. border-radius: 12px;
  258. background-color: #fff;
  259. box-shadow: 0 0.05333rem 0.32rem rgba(50, 50, 51, .12);
  260. :global {
  261. .van-popover__content {
  262. max-height: 200px;
  263. box-shadow: none;
  264. overflow-y: auto;
  265. &::-webkit-scrollbar {
  266. width: 4px;
  267. }
  268. &::-webkit-scrollbar-thumb {
  269. border-radius: 10px;
  270. background: rgba(0, 0, 0, 0.2);
  271. }
  272. &::-webkit-scrollbar-track {
  273. border-radius: 0;
  274. background: rgba(0, 0, 0, 0.1);
  275. }
  276. }
  277. .van-popover__action {
  278. padding: 0 9px;
  279. }
  280. }
  281. }