style.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. img {
  7. -webkit-touch-callout: none;
  8. -webkit-user-drag: none;
  9. -moz-user-drag: none;
  10. -ms-user-drag: none;
  11. user-drag: none;
  12. }
  13. body {
  14. -webkit-user-select: none; /* Safari */
  15. -moz-user-select: none; /* Firefox */
  16. -ms-user-select: none; /* Internet Explorer/Edge */
  17. user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera,禁用文本选择 */
  18. -webkit-touch-callout: none; /* iOS Safari,禁用长按行为 */
  19. }
  20. :root {
  21. --cursor-color: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABRJREFUCB1jZDy49T8DEDCBCBAAACTkAnq23WmtAAAAAElFTkSuQmCC);
  22. --container-background: #fff;
  23. --active-stave-box: rgba(1, 193, 181, 0.2);
  24. --corsor-opacity: 1;
  25. }
  26. .eyeProtection {
  27. --cursor-color: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABZJREFUCB1j/N8sv5UBCJhABMN/hv8AKQgEWNQffFMAAAAASUVORK5CYII=);
  28. --container-background: #fff4e1;
  29. --active-measur-backgorund: rgba(255, 98, 37, 0.18);
  30. }
  31. .hideCursor {
  32. --corsor-opacity: 0;
  33. }
  34. .selectionToast {
  35. top: 20vh;
  36. }
  37. .pop-center-enter-from,
  38. .pop-center-leave-to {
  39. transform: scale(0);
  40. }
  41. .pop-center-enter-active,
  42. .pop-center-leave-active {
  43. transition: all 0.25s;
  44. }
  45. /* vant 弹窗优化 */
  46. :root {
  47. --van-duration-base: 0.25s;
  48. }
  49. .van-overlay {
  50. transition: all 0.25s;
  51. }
  52. .popup-custom {
  53. transition: all 0.25s;
  54. background: transparent;
  55. overflow: initial;
  56. max-width: 100%;
  57. }
  58. .popup-custom.van-scale {
  59. transform-origin: center -25%;
  60. }
  61. /* 缩放动画 */
  62. .van-scale-enter-from,
  63. .van-scale-leave-to {
  64. opacity: 0;
  65. transform: scale(0.3);
  66. }
  67. .van-scale-enter-active,
  68. .van-scale-leave-active {
  69. transition: all 0.25s;
  70. }
  71. .custom-close-btn .van-popup__close-icon {
  72. top: 0;
  73. right: -30px;
  74. background-color: #fff;
  75. border-radius: 50%;
  76. padding: 4px;
  77. font-size: 16px;
  78. color: var(--van-primary-color);
  79. }
  80. .top_drag {
  81. position: absolute;
  82. left: 0;
  83. top: 0;
  84. width: 100%;
  85. height: 20px;
  86. z-index: 1;
  87. cursor: move;
  88. }
  89. /* 动画右滑进入 */
  90. .v-slide-right-enter-from,
  91. .v-slide-right-leave-to {
  92. transform: translateX(100%);
  93. }
  94. .v-slide-right-enter-active,
  95. .v-slide-right-leave-active {
  96. transition: all 0.3s;
  97. }
  98. /* 上滑进入 */
  99. .v-slide-up-enter-from,
  100. .v-slide-up-leave-to {
  101. transform: translateY(100%);
  102. }
  103. .v-slide-up-enter-active,
  104. .v-slide-up-leave-active {
  105. transition: all 0.3s;
  106. }
  107. .noSaveModal {
  108. transform: scale(0.8) translateY(-50%);
  109. }
  110. /* 引导动画 */
  111. @keyframes guideKeyframes {
  112. 0% {
  113. transform: scale(0.9);
  114. }
  115. 50% {
  116. transform: scale(1);
  117. }
  118. 100% {
  119. transform: scale(0.9);
  120. }
  121. }
  122. .guideAnimate {
  123. animation-duration: 1.5s;
  124. animation-name: guideKeyframes;
  125. animation-iteration-count: infinite;
  126. }
  127. @keyframes cnimate {
  128. 0% {
  129. opacity: 0;
  130. }
  131. 50% {
  132. opacity: 0.5;
  133. }
  134. 100% {
  135. opacity: 1;
  136. }
  137. }
  138. @keyframes noteAnimate {
  139. 0% {
  140. transform: scale(1);
  141. }
  142. 50% {
  143. transform: scale(1.2);
  144. }
  145. 100% {
  146. transform: scale(1);
  147. }
  148. }
  149. html {
  150. font-size: 64px;
  151. }
  152. @font-face {
  153. font-family: "DIN-Bold";
  154. src: url("./assets/DIN_Alternate_Bold.ttf");
  155. }