Parity
This commit is contained in:
parent
9194c58444
commit
f2d27568a1
2 changed files with 7 additions and 1 deletions
|
@ -93,6 +93,10 @@ html,body
|
|||
max-width 100vw
|
||||
border-left solid var(--syntax-bpx) var(--syntax-ledg)
|
||||
display flex
|
||||
transition 0.2s border-color
|
||||
|
||||
&:hover
|
||||
border-color var(--syntax-ledgh)
|
||||
|
||||
li
|
||||
margin-top 0.5em
|
||||
|
|
|
@ -12,10 +12,12 @@ document.querySelectorAll(".theme-toggler").forEach((a) =>
|
|||
);
|
||||
|
||||
const initAlign = () => {
|
||||
console.log("initAlign")
|
||||
const cur = localStorage.getItem("align");
|
||||
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.add("align-" + cur);
|
||||
};
|
||||
|
||||
if (localStorage.getItem("align") === null) {
|
||||
|
|
Loading…
Reference in a new issue