Fixed formatting

This commit is contained in:
gpkvt 2023-06-04 01:26:41 +02:00
parent 0158668d91
commit fcf66d85ba
4 changed files with 7 additions and 5 deletions

View File

@ -201,7 +201,8 @@ input[type="radio"] {
}
.toggle_label {
min-width: 100%;;
min-width: 100%;
;
}
}

View File

@ -46,4 +46,4 @@
--fg-que: rgb(248, 214, 41);
--bg-nxt: rgb(74, 91, 96);
--fg-nxt: rgb(205, 200, 194);
}
}

View File

@ -5,11 +5,11 @@ function initToggle() {
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark'); //add this
localStorage.setItem('theme', 'dark');
}
else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light'); //add this
localStorage.setItem('theme', 'light');
}
}
@ -31,4 +31,4 @@ function initToggle() {
document.querySelectorAll('.toggle').forEach(function (el) {
el.style.display = 'unset';
});
}
}

View File

@ -71,4 +71,5 @@
initToggle();
</script>
</body>
</html>