start work on sidenotes

This commit is contained in:
2026-03-05 21:39:22 -05:00
parent 13d0ac8de7
commit 7acf1f2c9f
13 changed files with 30 additions and 337 deletions

View File

@@ -0,0 +1,18 @@
---
const id = crypto.randomUUID();
SIDENOTE_COUNT += 1
---
<label for={id} class="counter anchor">{ SIDENOTE_COUNT }</label>
<input {id} type="checkbox" class="toggle" />
<div class="sidenote">
<div class="content">
<span class="counter floating">{ SIDENOTE_COUNT }</span>
<slot />
</div>
</div>
<style>
</style>