style.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /* no use tailwind default css*/
  2. @tailwind base;
  3. @tailwind components;
  4. @tailwind utilities;
  5. :root {
  6. font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  7. line-height: 1.5;
  8. font-weight: 400;
  9. color-scheme: light dark;
  10. color: rgba(255, 255, 255, 0.87);
  11. /*background-color: #242424;*/
  12. font-synthesis: none;
  13. text-rendering: optimizeLegibility;
  14. --vt-c-white: #ffffff;
  15. --vt-c-white-soft: #f8f8f8;
  16. --vt-c-white-mute: #d3d3d3;
  17. --vt-c-black: #181818;
  18. --vt-c-black-soft: #222222;
  19. --vt-c-black-mute: #282828;
  20. --vt-c-indigo: #2c3e50;
  21. --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
  22. --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
  23. --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
  24. --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
  25. --vt-c-text-light-1: var(--vt-c-indigo);
  26. --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
  27. --vt-c-text-light-3: #56a7fb;
  28. --vt-c-text-dark-1: var(--vt-c-white);
  29. --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
  30. --vt-c-text-dark-3: #56a7fb;
  31. --vt-c-text-light-title: #fffff;
  32. --vt-c-text-red: #e74c3c;
  33. --vt-blue-500: #56a7fb;
  34. --vt-c-blue-500: #56a7fb;
  35. }
  36. :root {
  37. --color-background: var(--vt-c-white);
  38. --color-background-soft: var(--vt-c-white-soft);
  39. --color-background-mute: var(--vt-c-white-mute);
  40. --color-border: var(--vt-c-divider-light-2);
  41. --color-border-hover: var(--vt-c-divider-light-1);
  42. --color-heading: var(--vt-c-text-light-1);
  43. --color-text: var(--vt-c-text-light-1);
  44. --color-text-title: var(--vt-c-text-light-title);
  45. --color-text-show: var(--vt-c-text-light-3);
  46. --color-text-money: var(--vt-c-text-red);
  47. --color-btn-bg: var(--vt-c-indigo);
  48. --color-btn-text: var(--vt-c-white);
  49. --color-btn-bg-hover: var(--vt-c-text-light-1);
  50. --color-btn-text-hover: var(--vt-c-white);
  51. --color-btn-text-disabled: var(--vt-c-text-light-2);
  52. --color-btn-text-disabled-hover: var(--vt-c-text-light-2);
  53. --color-btn-bg-disabled: var(--vt-c-indigo);
  54. --color-btn-bg-disabled-hover: var(--vt-c-indigo);
  55. --color-btn-bg-active: var(--vt-c-indigo);
  56. --color-btn-text-active: var(--vt-c-white);
  57. --color-shadow: var(--vt-c-divider-light-2);
  58. --color-shadow-hover: var(--vt-c-divider-light-1);
  59. --section-gap: 160px;
  60. }
  61. @media (prefers-color-scheme: dark) {
  62. :root {
  63. --color-background: var(--vt-c-black);
  64. --color-background-soft: var(--vt-c-black-soft);
  65. --color-background-mute: var(--vt-c-black-mute);
  66. --color-border: var(--vt-c-divider-dark-2);
  67. --color-border-hover: var(--vt-c-divider-dark-1);
  68. --color-shadow: var(--vt-c-white-mute);
  69. --color-shadow-hover: var(--vt-c-white-soft);
  70. --color-heading: var(--vt-c-text-dark-1);
  71. /*--color-text-title: var(--vt-c-text-dark-title);*/
  72. --color-text-pirmary: var(--vt-c-text-dark-1);
  73. --color-text-subtitle: var(--vt-c-text-dark-2);
  74. --color-text-show: var(--vt-c-text-dark-3);
  75. --color-text-money: var(--vt-c-text-red);
  76. --color-btn-bg: var(--vt-c-indigo);
  77. --color-btn-bg-hover: var(--vt-c-indigo);
  78. --color-btn-text: var(--vt-c-white);
  79. --color-btn-text-hover: var(--vt-c-white);
  80. }
  81. }
  82. *{
  83. /*box-size: border-box;*/
  84. margin: 0;
  85. padding: 0;
  86. /* 禁止 拖拽元素 */
  87. -webkit-user-drag: none;
  88. user-select:none;
  89. }
  90. html , body{
  91. font-size: 16px;
  92. width: 100%;
  93. height: 100%;
  94. /* electron no frame */
  95. overflow: hidden;
  96. }
  97. #app {
  98. width: 100%;
  99. height: 100%;
  100. box-sizing: border-box;
  101. /*margin: 5px;*/
  102. }
  103. a {
  104. font-weight: 500;
  105. color: #646cff;
  106. text-decoration: inherit;
  107. }
  108. a:hover {
  109. color: #535bf2;
  110. }
  111. @media (prefers-color-scheme: light) {
  112. :root {
  113. color: #213547;
  114. /*background-color: #ffffff;*/
  115. }
  116. a:hover {
  117. color: #747bff;
  118. }
  119. button {
  120. background-color: #f9f9f9;
  121. }
  122. }
  123. .slide-left-enter-active,
  124. .slide-left-leave-active,
  125. .slide-right-enter-active,
  126. .slide-right-leave-active {
  127. transition: transform 0.3s;
  128. }
  129. .slide-right-enter-from {
  130. transform: translateX(0);
  131. }
  132. .slide-right-enter-to {
  133. transform: translateX(-100%);
  134. }
  135. .slide-right-leave-from {
  136. transform: translateX(0);
  137. }
  138. .slide-right-leave-to {
  139. transform: translateX(-100%);
  140. }
  141. .slide-left-enter-from {
  142. transform: translateX(-200%);
  143. }
  144. .slide-left-enter-to {
  145. transform: translateX(-100%);
  146. }
  147. .slide-left-leave-from {
  148. transform: translateX(0);
  149. }
  150. .slide-left-leave-to {
  151. transform: translateX(100%);
  152. }