index.module.less 5.5 KB

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