refactor: simplify global css

This commit is contained in:
grassblock 2025-05-04 11:43:06 +08:00
parent 9411ec22c1
commit f42d71a948

View file

@ -13,7 +13,7 @@
}
/* Light theme */
@media (prefers-color-scheme: light) {
:root {
:root:not([data-theme="dark"]) {
--bg-color: #f3f4f6;
--text-color: #374151;
--accent-color: #3b82f6;
@ -23,16 +23,6 @@
--terminal-yellow: #d97706;
--terminal-red: #dc2626;
}
:root:not([data-theme="light"]) {
--bg-color: #1f2937;
--text-color: #a5b4cf;
--accent-color: #64a0ff;
--border-color: #3b4351;
--header-color: #83a2ce;
--terminal-green: #4ade80;
--terminal-yellow: #fbbf24;
--terminal-red: #ef4444;
}
}
/* Light theme override (for switch) */
:root[data-theme="light"] {
@ -46,6 +36,7 @@
--terminal-red: #dc2626;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;