File size: 1,297 Bytes
b0074f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | @tailwind base;
@tailwind components;
@tailwind utilities;
body {
@apply bg-dark-950 text-gray-100;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* 自定义滚动条 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
@apply bg-dark-900;
}
::-webkit-scrollbar-thumb {
@apply bg-dark-600 rounded-full;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-dark-500;
}
/* 输入框聚焦样式 */
input:focus,
textarea:focus,
select:focus {
@apply outline-none ring-2 ring-purple-500/50;
}
/* 按钮基础样式 */
.btn {
@apply px-4 py-2 rounded-lg font-medium transition-all duration-200;
}
.btn-primary {
@apply bg-purple-600 hover:bg-purple-700 text-white;
}
.btn-secondary {
@apply bg-dark-700 hover:bg-dark-600 text-gray-200;
}
.btn-danger {
@apply bg-red-600 hover:bg-red-700 text-white;
}
/* 卡片样式 */
.card {
@apply bg-dark-900 border border-dark-700 rounded-xl p-6;
}
/* 表格样式 */
.table-container {
@apply overflow-x-auto rounded-lg border border-dark-700;
}
table {
@apply w-full;
}
th {
@apply bg-dark-800 px-4 py-3 text-left text-sm font-medium text-gray-400;
}
td {
@apply px-4 py-3 text-sm border-t border-dark-700;
}
tr:hover td {
@apply bg-dark-800/50;
}
|