index.module.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .fingeringContainer{
  2. width: 100%;
  3. height: 100%;
  4. display: flex;
  5. justify-content: space-evenly;
  6. align-items: center;
  7. padding: 0 10px 6px 10px;
  8. }
  9. .vertical{
  10. padding: 10px 6px 10px 0;
  11. box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 10px;
  12. .imgs{
  13. width: 70%;
  14. }
  15. }
  16. .imgs{
  17. position: relative;
  18. width: 84%;
  19. height: 100%;
  20. & > img {
  21. position: absolute;
  22. left: 50%;
  23. top: 50%;
  24. transform: translate(-50%, -50%);
  25. display: block;
  26. max-width: 100%;
  27. max-height: 100%;
  28. }
  29. }
  30. .rightContent{
  31. display: flex;
  32. flex-direction: column;
  33. justify-content: space-between;
  34. align-items: center;
  35. height: 100%;
  36. }
  37. // 萨克斯
  38. :global(.saxophone){
  39. padding: 10px 0;
  40. .imgs{
  41. width: 100%;
  42. }
  43. .rightContent{
  44. position: absolute;
  45. right: 6px;
  46. height: 90%;
  47. }
  48. }
  49. //圆号
  50. :global(.horn){
  51. padding: 10px 4px;
  52. .imgs{
  53. width: 100%;
  54. }
  55. .rightContent{
  56. position: absolute;
  57. right: 10px;
  58. height: 100%;
  59. }
  60. }
  61. //上低音号
  62. :global(.up-bass-horn),
  63. :global(.tuba){
  64. padding: 10px 4px;
  65. .imgs{
  66. width: 100%;
  67. }
  68. .rightContent{
  69. position: absolute;
  70. right: 10px;
  71. height: 100%;
  72. }
  73. }
  74. .yidiao{
  75. width: 30px;
  76. color: var(--van-primary-color);
  77. font-size: 12Px;
  78. text-align: center;
  79. opacity: 0;
  80. }
  81. .tizhi{
  82. width: 30px;
  83. height: 30px;
  84. text-align: center;
  85. line-height: 30px;
  86. border-radius: 100%;
  87. background-color: var(--van-primary-color);
  88. color: #fff;
  89. box-shadow: 0 0 10px rgba(0, 0, 0, .05);
  90. font-size: 12Px;
  91. opacity: 0;
  92. pointer-events: none;
  93. &:active{
  94. opacity: .8;
  95. }
  96. }
  97. .canDisplay{
  98. opacity: 1;
  99. pointer-events: initial;
  100. }
  101. @keyframes activeopacity {
  102. 0% {transforopacitym: 0;}
  103. 100% {opacity: 1;}
  104. }
  105. @keyframes leftrotates {
  106. 0% {transform: rotate(0deg);}
  107. 50% {transform: rotate(-10deg);}
  108. 100% {transform: rotate(-10deg);}
  109. }
  110. @keyframes rightrotates {
  111. 0% {transform: rotate(0deg);}
  112. 50% {transform: rotate(5deg);}
  113. 100% {transform: rotate(5deg);}
  114. }
  115. :global{
  116. .small-drum{
  117. // transform: ;
  118. img[data-index="active"] :local {
  119. animation: activeopacity .2s;
  120. animation-delay: .3s;
  121. transform-origin: 0px 0px;
  122. }
  123. img[data-index="left"] :local {
  124. // transform: rotate(-10deg);
  125. animation: leftrotates .5s;
  126. transform-origin: 0px 0px;
  127. }
  128. img[data-index="right"] :local {
  129. // transform: rotate(5deg);
  130. animation: rightrotates .5s;
  131. transform-origin: 0px 0px;
  132. }
  133. }
  134. }
  135. :global{
  136. .piccolo{
  137. margin-top: 0;
  138. // padding: 0 10px;
  139. // padding-right: 40px;
  140. >.piccolo{
  141. // padding: 0!important;
  142. }
  143. }
  144. }