refactor: simplify global css
This commit is contained in:
parent
9411ec22c1
commit
f42d71a948
1 changed files with 2 additions and 11 deletions
|
@ -13,7 +13,7 @@
|
||||||
}
|
}
|
||||||
/* Light theme */
|
/* Light theme */
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
:root {
|
:root:not([data-theme="dark"]) {
|
||||||
--bg-color: #f3f4f6;
|
--bg-color: #f3f4f6;
|
||||||
--text-color: #374151;
|
--text-color: #374151;
|
||||||
--accent-color: #3b82f6;
|
--accent-color: #3b82f6;
|
||||||
|
@ -23,16 +23,6 @@
|
||||||
--terminal-yellow: #d97706;
|
--terminal-yellow: #d97706;
|
||||||
--terminal-red: #dc2626;
|
--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) */
|
/* Light theme override (for switch) */
|
||||||
:root[data-theme="light"] {
|
:root[data-theme="light"] {
|
||||||
|
@ -46,6 +36,7 @@
|
||||||
--terminal-red: #dc2626;
|
--terminal-red: #dc2626;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
*, *::before, *::after {
|
*, *::before, *::after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue