update borders

This commit is contained in:
mark committed 2026-10-22 23:48:03 -04:00
1 parent 531a32e394
commit c66f9a1e2a
12 files changed
+378 -9

No files matched your search

+14
View File
@@ -21,9 +21,23 @@
<body class="{% block body_class %}{% endblock %}"
hx-boost="true" hx-target="#content" hx-swap="innerHTML show:window:top">
{% include "sidebar.njk" %}
<main id="content" hx-history-elt>
{% block content %}{% endblock %}
</main>
<script>
// The sidebar, and on a phone its button, fade out once the page leaves the
// top, so they are out of the way while reading; the stylesheet brings the
// sidebar back under the pointer.
(function () {
var root = document.documentElement;
function update() { root.classList.toggle('scrolled', window.scrollY > 0); }
addEventListener('scroll', update, { passive: true });
update();
})();
</script>
</body>
</html>