Merge branch 'main' into feat/filter-feed
This commit is contained in:
@@ -47,10 +47,21 @@ $(".sort-dropdown-list li").on("click", function() {
|
||||
let root = document.querySelector(":root")
|
||||
|
||||
$(".logo").on("click", function() {
|
||||
if (root.style.getPropertyValue("--main-bg") === 'ghostwhite') {
|
||||
if (root.style.getPropertyValue("--main-bg") === 'snow') {
|
||||
console.log("IM here")
|
||||
root.style.setProperty('--main-medium-dark', '#1E1E1E');
|
||||
root.style.setProperty('--main-bg', '#292929');
|
||||
root.style.setProperty('--main-light', ' #ffffff' );
|
||||
root.style.setProperty('--main-dark', '#ffffff');
|
||||
root.style.setProperty('--tweet-color', '#000000')
|
||||
root.style.setProperty('--column-color', '#1E1E1E')
|
||||
} else {
|
||||
root.style.setProperty('--main-bg', 'ghostwhite');
|
||||
root.style.setProperty('--main-medium-dark', '#1D9BF0');
|
||||
root.style.setProperty('--main-bg', 'snow');
|
||||
root.style.setProperty('--main-light', '#000000');
|
||||
root.style.setProperty('--main-dark', ' #000000');
|
||||
root.style.setProperty('--tweet-color', 'whitesmoke');
|
||||
root.style.setProperty('--column-color', 'rgba(112, 128, 144, 0.388');
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user