index.module.less 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. .fingerBox {
  2. position: relative;
  3. display: flex;
  4. flex-direction: column;
  5. width: 100vw;
  6. height: 100vh;
  7. background-color: antiquewhite;
  8. }
  9. .head {
  10. position: relative;
  11. width: 100%;
  12. .backBtn {
  13. width: 22px;
  14. height: 22px;
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. border: none;
  19. background: none;
  20. img {
  21. width: 100%;
  22. height: 100%;
  23. }
  24. &::after {
  25. content: '';
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. width: 100%;
  31. height: 140%;
  32. z-index: 10;
  33. }
  34. &.backRight{
  35. &::after{
  36. right: 85px;
  37. width: auto;
  38. }
  39. }
  40. }
  41. .left {
  42. position: absolute;
  43. top: 0;
  44. left: 0;
  45. padding-left: 33px;
  46. padding-top: 25px;
  47. display: flex;
  48. align-items: center;
  49. button {
  50. margin-right: 30px;
  51. }
  52. }
  53. .baseBtn {
  54. width: 85px;
  55. height: 33px;
  56. background: linear-gradient(180deg, #FEF0AF 0%, #F7D656 100%);
  57. box-shadow: 0px 2px 1px 0px rgba(168, 121, 0, 0.24), inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5), inset 0px -2px 1px 0px rgba(255, 255, 255, 0.5);
  58. border-radius: 9px;
  59. font-size: 13px;
  60. font-weight: 600;
  61. color: #A14927;
  62. line-height: 33px;
  63. text-align: center;
  64. &:active {
  65. transform: translateY(2px);
  66. }
  67. }
  68. .rightBtn {
  69. position: absolute;
  70. right: 23px;
  71. top: 20px;
  72. display: flex;
  73. align-items: center;
  74. justify-content: space-evenly;
  75. width: 100px;
  76. height: 44px;
  77. background: linear-gradient(180deg, #FEF0AF 0%, #F7D656 100%);
  78. box-shadow: 0px 2px 1px 0px rgba(168, 121, 0, 0.24), inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5), inset 0px -2px 1px 0px rgba(255, 255, 255, 0.5);
  79. border-radius: 11px;
  80. font-weight: 600;
  81. color: #A14927;
  82. .item {
  83. flex: 1;
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: center;
  87. align-items: center;
  88. &:first-child {
  89. border-right: 1Px solid #a149275e;
  90. }
  91. img {
  92. width: 13px;
  93. height: 13px;
  94. }
  95. }
  96. }
  97. }
  98. .fingerContent {
  99. flex: 1;
  100. overflow: hidden;
  101. }
  102. .notes {
  103. display: flex;
  104. justify-content: center;
  105. align-items: flex-start;
  106. height: 65px;
  107. .noteBox {
  108. max-width: calc(100% - 92px);
  109. display: flex;
  110. background: rgba(255, 255, 255, 0.53);
  111. border-radius: 25px;
  112. border: 1px solid rgba(255, 255, 255, 0.81);
  113. overflow-y: hidden;
  114. overflow-x: auto;
  115. }
  116. .note {
  117. position: relative;
  118. margin: 0 2.5Px;
  119. width: 42px;
  120. height: 42px;
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. flex-shrink: 0;
  125. padding: 6px;
  126. img {
  127. position: absolute;
  128. left: 0;
  129. top: 0;
  130. width: 100%;
  131. height: 100%;
  132. }
  133. .noteKey {
  134. position: relative;
  135. display: flex;
  136. flex-direction: column;
  137. justify-content: space-evenly;
  138. align-items: center;
  139. z-index: 1;
  140. font-size: 16px;
  141. font-family: GJJSZJW--GB1-0, GJJSZJW--GB1;
  142. font-weight: normal;
  143. color: #FFFFFF;
  144. text-shadow: 0px 1px 3px #1EADF1;
  145. line-height: 1;
  146. height: 100%;
  147. .dot {
  148. width: 3px;
  149. height: 3px;
  150. border-radius: 50%;
  151. background-color: #fff;
  152. }
  153. }
  154. }
  155. }
  156. .fingeringContainer {
  157. width: 100%;
  158. height: 100%;
  159. display: flex;
  160. justify-content: space-evenly;
  161. align-items: center;
  162. padding: 0 10px 6px 10px;
  163. }
  164. .imgs {
  165. position: relative;
  166. width: 84%;
  167. height: 100%;
  168. &>img {
  169. position: absolute;
  170. left: 50%;
  171. top: 50%;
  172. transform: translate(-50%, -50%);
  173. display: block;
  174. max-width: 100%;
  175. max-height: 100%;
  176. }
  177. }
  178. .tizhi {
  179. position: absolute;
  180. width: 30px;
  181. height: 30px;
  182. text-align: center;
  183. line-height: 30px;
  184. border-radius: 100%;
  185. background-color: var(--van-primary-color);
  186. color: #fff;
  187. box-shadow: 0 0 10px rgba(0, 0, 0, .05);
  188. font-size: 12Px;
  189. opacity: 0;
  190. pointer-events: none;
  191. &:active {
  192. opacity: .8;
  193. }
  194. }
  195. .canDisplay {
  196. opacity: 1;
  197. pointer-events: auto;
  198. }
  199. .disabled{
  200. opacity: .5;
  201. pointer-events: none;
  202. }