This commit is contained in:
Daniel Flanagan 2024-05-26 10:05:00 -05:00
parent 9194c58444
commit f2d27568a1
2 changed files with 7 additions and 1 deletions

View file

@ -93,6 +93,10 @@ html,body
max-width 100vw max-width 100vw
border-left solid var(--syntax-bpx) var(--syntax-ledg) border-left solid var(--syntax-bpx) var(--syntax-ledg)
display flex display flex
transition 0.2s border-color
&:hover
border-color var(--syntax-ledgh)
li li
margin-top 0.5em margin-top 0.5em

View file

@ -12,10 +12,12 @@ document.querySelectorAll(".theme-toggler").forEach((a) =>
); );
const initAlign = () => { const initAlign = () => {
console.log("initAlign")
const cur = localStorage.getItem("align"); const cur = localStorage.getItem("align");
const prev = cur == "center" ? "left" : "center"; const prev = cur == "center" ? "left" : "center";
document.body.classList.add("align-" + cur); console.log({ cur, prev })
document.body.classList.remove("align-" + prev); document.body.classList.remove("align-" + prev);
document.body.classList.add("align-" + cur);
}; };
if (localStorage.getItem("align") === null) { if (localStorage.getItem("align") === null) {