index.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. :root {
  2. --text: #6b6375;
  3. --text-h: #08060d;
  4. --bg: #fff;
  5. --border: #e5e4e7;
  6. --code-bg: #f4f3ec;
  7. --accent: #aa3bff;
  8. --accent-bg: rgba(170, 59, 255, 0.1);
  9. --accent-border: rgba(170, 59, 255, 0.5);
  10. --social-bg: rgba(244, 243, 236, 0.5);
  11. --shadow: rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
  12. --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  13. --heading: system-ui, 'Segoe UI', Roboto, sans-serif;
  14. --mono: ui-monospace, Consolas, monospace;
  15. font: 18px/145% var(--sans);
  16. letter-spacing: 0.18px;
  17. color-scheme: light dark;
  18. color: var(--text);
  19. background: var(--bg);
  20. font-synthesis: none;
  21. text-rendering: optimizeLegibility;
  22. -webkit-font-smoothing: antialiased;
  23. -moz-osx-font-smoothing: grayscale;
  24. @media (max-width: 1024px) {
  25. font-size: 16px;
  26. }
  27. }
  28. @media (prefers-color-scheme: dark) {
  29. :root {
  30. --text: #9ca3af;
  31. --text-h: #f3f4f6;
  32. --bg: #16171d;
  33. --border: #2e303a;
  34. --code-bg: #1f2028;
  35. --accent: #c084fc;
  36. --accent-bg: rgba(192, 132, 252, 0.15);
  37. --accent-border: rgba(192, 132, 252, 0.5);
  38. --social-bg: rgba(47, 48, 58, 0.5);
  39. --shadow: rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  40. }
  41. #social .button-icon {
  42. filter: invert(1) brightness(2);
  43. }
  44. }
  45. #root {
  46. width: 100%;
  47. height: 100vh;
  48. margin: 0;
  49. padding: 0;
  50. min-height: 100vh;
  51. display: flex;
  52. flex-direction: column;
  53. box-sizing: border-box;
  54. overflow: hidden;
  55. }
  56. body {
  57. margin: 0;
  58. padding: 0;
  59. width: 100%;
  60. height: 100vh;
  61. overflow: hidden;
  62. }
  63. h1,
  64. h2 {
  65. font-family: var(--heading);
  66. font-weight: 500;
  67. color: var(--text-h);
  68. }
  69. h1 {
  70. font-size: 56px;
  71. letter-spacing: -1.68px;
  72. margin: 32px 0;
  73. @media (max-width: 1024px) {
  74. font-size: 36px;
  75. margin: 20px 0;
  76. }
  77. }
  78. h2 {
  79. font-size: 24px;
  80. line-height: 118%;
  81. letter-spacing: -0.24px;
  82. margin: 0 0 8px;
  83. @media (max-width: 1024px) {
  84. font-size: 20px;
  85. }
  86. }
  87. p {
  88. margin: 0;
  89. }
  90. code,
  91. .counter {
  92. font-family: var(--mono);
  93. display: inline-flex;
  94. border-radius: 4px;
  95. color: var(--text-h);
  96. }
  97. code {
  98. font-size: 15px;
  99. line-height: 135%;
  100. padding: 4px 8px;
  101. background: var(--code-bg);
  102. }
  103. /* Document viewer table styles */
  104. .document-table-row td {
  105. vertical-align: top !important;
  106. padding: 0 !important;
  107. }
  108. .document-table-row:hover td {
  109. background-color: #fafafa !important;
  110. }
  111. /* Ant Design table header styles for document viewer */
  112. .ant-table-thead > tr > th {
  113. background-color: #f0f0f0 !important;
  114. font-weight: 500 !important;
  115. color: #262626 !important;
  116. padding: 10px 12px !important;
  117. font-size: 13px !important;
  118. }
  119. /* Ant Design table border styles */
  120. .ant-table-bordered .ant-table-thead > tr > th,
  121. .ant-table-bordered .ant-table-tbody > tr > td {
  122. border-color: #d9d9d9 !important;
  123. }
  124. /* Document outline tree styles */
  125. .ant-tree .ant-tree-node-content-wrapper {
  126. padding: 0 !important;
  127. line-height: 1.5 !important;
  128. }
  129. .ant-tree .ant-tree-node-content-wrapper:hover {
  130. background-color: #f5f5f5 !important;
  131. }
  132. .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
  133. background-color: #e6f4ff !important;
  134. }
  135. .ant-tree .ant-tree-switcher {
  136. color: #8c8c8c !important;
  137. }
  138. .ant-tree-indent-unit {
  139. width: 16px !important;
  140. }