Spaces:
Running
Running
File size: 6,572 Bytes
d0dd276 |
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
/* color palette from <https://github.com/vuejs/theme> */
:root {
--vt-c-white: #ffffff;
--vt-c-white-soft: #f8f8f8;
--vt-c-white-mute: #f2f2f2;
--vt-c-black: #181818;
--vt-c-black-soft: #222222;
--vt-c-black-mute: #282828;
--vt-c-indigo: #2c3e50;
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
--vt-c-text-light-1: var(--vt-c-indigo);
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}
/* semantic color variables for this project */
:root {
--color-background: var(--vt-c-white);
--color-background-soft: var(--vt-c-white-soft);
--color-background-mute: var(--vt-c-white-mute);
--color-border: var(--vt-c-divider-light-2);
--color-border-hover: var(--vt-c-divider-light-1);
--color-heading: var(--vt-c-text-light-1);
--color-text: var(--vt-c-text-light-1);
--section-gap: 160px;
/* 自定义颜色变量 - 浅色模式 */
--card-background: #ffffff;
--card-border: #e0e0e0;
--button-primary: #4f46e5;
--button-primary-hover: #4338ca;
--button-secondary: #f3f4f6;
--button-secondary-hover: #e5e7eb;
--button-secondary-text: #4b5563;
--button-text: #ffffff;
--stats-item-bg: #f8f9fa;
--log-entry-bg: #f8f9fa;
--log-entry-border: #e9ecef;
--toggle-bg: #ccc;
--toggle-active: #4f46e5;
/* 新增渐变色变量 */
--gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
--gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
--gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
--gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
--gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
--gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
/* 新增阴影效果 */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
/* 新增圆角变量 */
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
--radius-xl: 0.75rem;
--radius-2xl: 1rem;
--radius-full: 9999px;
/* 新增动画变量 */
--transition-fast: 150ms;
--transition-normal: 300ms;
--transition-slow: 500ms;
}
/* 夜间模式变量 */
.dark-mode {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: rgba(255, 255, 255, 0.85);
/* 自定义夜间模式颜色 */
--card-background: #1a1a1a;
--card-border: #2a2a2a;
--button-primary: #8b5cf6;
--button-primary-hover: #7c3aed;
--button-secondary: #2a2a2a;
--button-secondary-hover: #3a3a3a;
--button-secondary-text: #f1f5f9;
--button-text: #ffffff;
--stats-item-bg: #151515;
--log-entry-bg: #151515;
--log-entry-border: #2a2a2a;
--toggle-bg: #3a3a3a;
--toggle-active: #8b5cf6;
/* 深色模式渐变色 */
--gradient-primary: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
--gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
--gradient-success: linear-gradient(135deg, #10b981 0%, #047857 100%);
--gradient-warning: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
--gradient-danger: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
--gradient-info: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
/* 深色模式阴影 */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}
/* 保留系统偏好设置的支持 */
@media (prefers-color-scheme: dark) {
:root:not(.dark-mode):not(.light-mode) {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: rgba(255, 255, 255, 0.85);
/* 自定义夜间模式颜色 */
--card-background: #1a1a1a;
--card-border: #2a2a2a;
--button-primary: #8b5cf6;
--button-primary-hover: #7c3aed;
--button-secondary: #2a2a2a;
--button-secondary-hover: #3a3a3a;
--button-secondary-text: #f1f5f9;
--button-text: #ffffff;
--stats-item-bg: #151515;
--log-entry-bg: #151515;
--log-entry-border: #2a2a2a;
--toggle-bg: #3a3a3a;
--toggle-active: #8b5cf6;
/* 深色模式渐变色 */
--gradient-primary: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
--gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
--gradient-success: linear-gradient(135deg, #10b981 0%, #047857 100%);
--gradient-warning: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
--gradient-danger: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
--gradient-info: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
/* 深色模式阴影 */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font-weight: normal;
}
body {
min-height: 100vh;
color: var(--color-text);
background: var(--color-background);
transition:
color 0.5s,
background-color 0.5s;
line-height: 1.6;
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Oxygen,
Ubuntu,
Cantarell,
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
sans-serif;
font-size: 15px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
|