| 1 | @tailwind base; |
| 2 | @tailwind components; |
| 3 | @tailwind utilities; |
| 4 | |
| 5 | body { |
| 6 | background: #fff; |
| 7 | color: #222; |
| 8 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, |
| 9 | 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', |
| 10 | 'Noto Color Emoji'; |
| 11 | } |
| 12 | |
| 13 | .ant-tabs-dropdown { |
| 14 | z-index: 10000000; |
| 15 | } |
| 16 | |
| 17 | /* 确保根元素和 body 占满整个视口高度 */ |
| 18 | html, body, #root { |
| 19 | @apply h-full w-full m-0 p-0; |
| 20 | } |
| 21 | |
| 22 | /* 添加一些全局的布局类 */ |
| 23 | @layer components { |
| 24 | .page-container { |
| 25 | @apply w-full h-full p-4 overflow-auto; |
| 26 | } |
| 27 | |
| 28 | .content-wrapper { |
| 29 | @apply max-w-7xl mx-auto w-full h-full; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | .ant-drawer-header { |
| 34 | -webkit-app-region: no-drag; |
| 35 | } |
| 36 | |
| 37 | .ant-image-preview-close { |
| 38 | top: 60px; |
| 39 | } |
| 40 | |
| 41 | :root { |
| 42 | font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; |
| 43 | line-height: 1.5; |
| 44 | font-weight: 400; |
| 45 | |
| 46 | color-scheme: light dark; |
| 47 | color: rgba(255, 255, 255, 0.87); |
| 48 | background-color: #242424; |
| 49 | |
| 50 | font-synthesis: none; |
| 51 | text-rendering: optimizeLegibility; |
| 52 | -webkit-font-smoothing: antialiased; |
| 53 | -moz-osx-font-smoothing: grayscale; |
| 54 | -webkit-text-size-adjust: 100%; |
| 55 | } |
| 56 | |
| 57 | a { |
| 58 | font-weight: 500; |
| 59 | color: #646cff; |
| 60 | text-decoration: inherit; |
| 61 | } |
| 62 | a:hover { |
| 63 | color: #535bf2; |
| 64 | } |
| 65 | |
| 66 | body { |
| 67 | margin: 0; |
| 68 | display: flex; |
| 69 | min-width: 320px; |
| 70 | min-height: 100vh; |
| 71 | } |
| 72 | |
| 73 | h1 { |
| 74 | font-size: 3.2em; |
| 75 | line-height: 1.1; |
| 76 | } |
| 77 | |
| 78 | code { |
| 79 | background-color: #1a1a1a; |
| 80 | padding: 2px 4px; |
| 81 | margin: 0 4px; |
| 82 | border-radius: 4px; |
| 83 | } |
| 84 | |
| 85 | .card { |
| 86 | padding: 2em; |
| 87 | } |
| 88 | |
| 89 | #app { |
| 90 | max-width: 1280px; |
| 91 | margin: 0 auto; |
| 92 | padding: 2rem; |
| 93 | text-align: center; |
| 94 | } |
| 95 | |
| 96 | @media (prefers-color-scheme: light) { |
| 97 | :root { |
| 98 | color: #213547; |
| 99 | background-color: var(--whiteColor1); |
| 100 | } |
| 101 | a:hover { |
| 102 | color: #747bff; |
| 103 | } |
| 104 | button { |
| 105 | background-color: #f9f9f9; |
| 106 | } |
| 107 | code { |
| 108 | background-color: #f9f9f9; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | /* 去掉列表项的点 */ |
| 113 | * { |
| 114 | margin: 0; |
| 115 | padding: 0; |
| 116 | } |
| 117 | ul { |
| 118 | list-style: none; |
| 119 | padding: 0; |
| 120 | margin: 0; |
| 121 | } |
| 122 | |
| 123 | /* 全局自定义滚动条样式 */ |
| 124 | .ant-table-body { |
| 125 | scrollbar-width: auto; |
| 126 | scrollbar-color: auto; |
| 127 | } |
| 128 | *::-webkit-scrollbar { |
| 129 | width: 10px; |
| 130 | height: 10px; |
| 131 | } |
| 132 | |
| 133 | *::-webkit-scrollbar-track { |
| 134 | background: transparent; |
| 135 | border-radius: 6px; |
| 136 | } |
| 137 | |
| 138 | *::-webkit-scrollbar-thumb { |
| 139 | background: #cccccc; |
| 140 | border-radius: 6px; |
| 141 | border: 2px solid #f0f0f0; |
| 142 | } |
| 143 | |
| 144 | *::-webkit-scrollbar-thumb:hover { |
| 145 | background: #a2a2a2; |
| 146 | } |
| 147 |