index.module.less 3.0 KB

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