Moved all of the styles in to Flex from my website

This commit is contained in:
Sumner Evans 2020-04-15 00:31:15 -06:00
parent 0d56e19d6a
commit 9b3495da5d
No known key found for this signature in database
GPG key ID: 8904527AB50022FD
4 changed files with 160 additions and 6 deletions

View file

@ -33,12 +33,13 @@
}
});
const htmlElement = document.getElementsByTagName('html')[0];
if (theme === 'dark') {
document.body.classList.add('dark-theme');
document.body.classList.remove('light-theme');
htmlElement.classList.add('dark-theme');
htmlElement.classList.remove('light-theme');
} else {
document.body.classList.add('light-theme');
document.body.classList.remove('dark-theme');
htmlElement.classList.add('light-theme');
htmlElement.classList.remove('dark-theme');
}
}