This commit is contained in:
Junyi Hou 2024-03-04 19:44:29 +08:00
parent 0f2fc30529
commit e9269aadb8
2 changed files with 14 additions and 12 deletions

View File

@ -76,7 +76,7 @@ main {
/* Table of Contents */
.toc {
/* cursor: zoom-in; */
cursor: zoom-in;
display: block;
margin-top: 1em;
@ -90,10 +90,10 @@ main {
font-size: 14px;
font-weight: bold;
}
/*
.toc.expanded {
cursor: zoom-out;
} */
}
.toc .inner {
margin: 0px;

View File

@ -5,8 +5,9 @@
</details>
{{ end }}
<!-- <script>
<script>
document.querySelector(".toc").addEventListener("click", function () {
if (event.target.tagName !== "A") {
event.preventDefault();
if (this.open) {
this.open = false;
@ -15,5 +16,6 @@
this.open = true;
this.classList.add("expanded");
}
}
});
</script> -->
</script>