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