mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
styles improvements
This commit is contained in:
+2
-2
@@ -86,8 +86,8 @@ function loadTheme() {
|
||||
'--header-shadow',
|
||||
theme === 'light' ? 'var(--shadow)' : 'none'
|
||||
);
|
||||
root.style.setProperty('--text', theme === 'light' ? 'black' : 'white');
|
||||
root.style.setProperty('--color', theme === 'light' ? 'black' : 'white');
|
||||
root.style.setProperty('--text', theme === 'light' ? 'var(--black)' : 'var(--white)');
|
||||
root.style.setProperty('--color', theme === 'light' ? 'var(--black)' : 'var(--white)');
|
||||
|
||||
document.querySelector(
|
||||
theme === 'light' ? 'header .moon' : 'header .sun'
|
||||
|
||||
Reference in New Issue
Block a user