refactor style using scss
This commit is contained in:
parent
31ec816be5
commit
6b55bdedc6
17 changed files with 222 additions and 588 deletions
|
@ -8,7 +8,7 @@ themeSwitcher.innerHTML = localStorage.theme === LIGHT ? light : dark;
|
|||
themeSwitcher.addEventListener('click', function () {
|
||||
const currentTheme = localStorage.theme,
|
||||
newTheme = currentTheme === LIGHT ? DARK : LIGHT,
|
||||
{ classList } = document.querySelector('html'),
|
||||
{ classList } = document.documentElement,
|
||||
text = newTheme === LIGHT ? light : dark;
|
||||
classList.remove(currentTheme);
|
||||
classList.add(newTheme);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue