index.module.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /*隐藏滚动条*/
  2. ::-webkit-scrollbar {
  3. display: none;
  4. }
  5. .detail {
  6. overflow: auto;
  7. margin-right: -17px;
  8. /*和滚动条宽度相等*/
  9. height: 100vh;
  10. }
  11. .skeleton {
  12. position: fixed;
  13. left: 0;
  14. top: 0;
  15. width: 100vw;
  16. height: 100vh;
  17. padding: 20px 30px;
  18. background-color: #fff;
  19. z-index: 10;
  20. --van-skeleton-paragraph-height: .8rem;
  21. }
  22. .detail {
  23. width: 100vw;
  24. min-height: 100vh;
  25. --header-height: 62px;
  26. // background: rgba(248, 242, 232, 1);
  27. .pageBg {
  28. position: absolute;
  29. left: 0;
  30. top: 0;
  31. width: 100%;
  32. height: 100%;
  33. object-fit: cover; /* 保持宽高比 */
  34. }
  35. :global {
  36. #cursorImg-0 {
  37. display: none !important;
  38. }
  39. #selectionBox {
  40. pointer-events: none;
  41. }
  42. }
  43. .headHeight {
  44. position: fixed;
  45. left: 0;
  46. top: 0;
  47. width: 100%;
  48. height: var(--header-height);
  49. transition: margin .3s;
  50. z-index: 10;
  51. &.headHide {
  52. margin-top: calc(0Px - var(--header-height));
  53. }
  54. }
  55. .container {
  56. position: relative;
  57. margin: 0 10px;
  58. border-radius: 10px;
  59. padding-top: calc(var(--header-height) + 54px);
  60. :global {
  61. #musicAndSelection {
  62. overflow: initial;
  63. height: initial;
  64. max-height: initial;
  65. // transform: translateY(-3%) !important;
  66. & > #osmdCanvasPage1 {
  67. top: 0.5rem;
  68. position: relative !important;
  69. }
  70. }
  71. }
  72. }
  73. }
  74. .musicName {
  75. font-size: 26px;
  76. font-weight: 400;
  77. color: #000;
  78. line-height: 37px;
  79. text-align: center;
  80. }
  81. .beam {
  82. path {
  83. // fill: #ADADAD !important;
  84. // stroke: #ADADAD;
  85. }
  86. }
  87. .right {
  88. path {
  89. fill: #65FFAE;
  90. stroke: #65FFAE;
  91. }
  92. }
  93. .inaccuracy {
  94. path {
  95. fill: #FF9200;
  96. stroke: #FF9200;
  97. }
  98. }
  99. .wrong {
  100. path {
  101. fill: #DA3736;
  102. stroke: #DA3736;
  103. }
  104. }
  105. .notPlay {
  106. path {
  107. fill: #FFFFFF;
  108. stroke: #FFFFFF;
  109. }
  110. }
  111. // 音准
  112. .intonation_wrong {
  113. path{
  114. fill: #FF9200;
  115. stroke: #FF9200;
  116. }
  117. }
  118. // 音准高
  119. .intonation_high {
  120. path{
  121. fill: #FF66A6;
  122. stroke: #FF66A6;
  123. }
  124. }
  125. // 音准低
  126. .intonation_low {
  127. path{
  128. fill: #FFB900;
  129. stroke: #FFB900;
  130. }
  131. }
  132. // 节奏
  133. .cadence_wrong {
  134. path{
  135. fill: #FF9200;
  136. stroke: #FF9200;
  137. }
  138. }
  139. // 节奏快
  140. .cadence_fast {
  141. path {
  142. fill: #B366FF;
  143. stroke: #B366FF;
  144. }
  145. }
  146. // 节奏慢
  147. .cadence_slow {
  148. path {
  149. fill: #FF7B00;
  150. stroke: #FF7B00;
  151. }
  152. }
  153. // 完成度
  154. .integrity_wrong {
  155. path {
  156. fill: #7AB2FF;
  157. stroke: #7AB2FF;
  158. }
  159. }
  160. .arrowSvg {
  161. opacity: 0;
  162. width: 1;
  163. height: 1;
  164. }
  165. .bg2Left {
  166. width: 52px;
  167. height: 125px;
  168. position: absolute;
  169. left: 0;
  170. top: 0;
  171. }
  172. .bg2Right {
  173. width: 52px;
  174. height: 125px;
  175. position: absolute;
  176. right: 0;
  177. top: 0;
  178. }