index.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. @use './webkit-scrollbar';
  2. @use './czr';
  3. * {
  4. outline: none; // dom元素选中带边框
  5. -webkit-user-drag: none;
  6. box-sizing: border-box;
  7. margin: 0;
  8. padding: 0;
  9. font-family: 'PingFang SC';
  10. }
  11. html,
  12. body,
  13. #app {
  14. margin: 0;
  15. padding: 0;
  16. border: 0;
  17. width: 100%;
  18. height: 100%;
  19. overflow: hidden;
  20. }
  21. .loader {
  22. width: 100%;
  23. height: 100vh;
  24. background-color: #ffffff;
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. .loader-content {
  29. width: 300px;
  30. height: 300px;
  31. position: relative;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. //--h: calc(var(--percent) / 100 * 360);
  36. //color: hsl(var(--h), 100%, 75%);
  37. color: #409EFF;
  38. animation: changeColor 5s linear infinite;
  39. > span {
  40. position: absolute;
  41. --diameter: calc(50px + (var(--n) - 1) * 30px);
  42. width: var(--diameter);
  43. height: var(--diameter);
  44. border-style: solid;
  45. border-color: currentColor transparent;
  46. border-width: 10px 10px 0 0;
  47. border-radius: 50%;
  48. animation: rotating 5s linear infinite;
  49. animation-duration: calc(5s / (9 - var(--n) + 1));
  50. &:nth-child(1) {
  51. --n: 1;
  52. }
  53. &:nth-child(2) {
  54. --n: 2;
  55. }
  56. &:nth-child(3) {
  57. --n: 3;
  58. }
  59. &:nth-child(4) {
  60. --n: 4;
  61. }
  62. &:nth-child(5) {
  63. --n: 5;
  64. }
  65. &:nth-child(6) {
  66. --n: 6;
  67. }
  68. &:nth-child(7) {
  69. --n: 7;
  70. }
  71. &:nth-child(8) {
  72. --n: 8;
  73. }
  74. &:nth-child(9) {
  75. --n: 9;
  76. }
  77. }
  78. }
  79. @keyframes rotating {
  80. to {
  81. transform: rotate(1turn);
  82. }
  83. }
  84. @keyframes changeColor {
  85. 0%,
  86. 100% {
  87. --percent: 0;
  88. }
  89. 10% {
  90. --percent: 10;
  91. }
  92. 20% {
  93. --percent: 20;
  94. }
  95. 30% {
  96. --percent: 30;
  97. }
  98. 40% {
  99. --percent: 40;
  100. }
  101. 50% {
  102. --percent: 50;
  103. }
  104. 60% {
  105. --percent: 60;
  106. }
  107. 70% {
  108. --percent: 70;
  109. }
  110. 80% {
  111. --percent: 80;
  112. }
  113. 90% {
  114. --percent: 90;
  115. }
  116. }
  117. }
  118. .tox-silver-sink {
  119. //z-index: 99999 !important;
  120. // 隐藏富文本APIkey提示
  121. .tox-notifications-container {
  122. width: 0;
  123. height: 0;
  124. overflow: hidden;
  125. }
  126. }