hyperscript toggle for body

This commit is contained in:
gws 2024-11-08 13:10:54 +01:00
parent e28058040c
commit 587877a3fb
3 changed files with 146 additions and 143 deletions

View file

@ -40,6 +40,11 @@
src="/flag-for-united-kingdom-svgrepo-com.svg"></a>
{% endif %}
<button _="on click toggle .dark on the closest <body/>"> toggle </button>
</nav>

View file

@ -1,5 +1,5 @@
<style>
:not(.dark) {
:root {
/* Primary theme color */
--primary-color: #FED43F;
/* Primary theme text color */

View file

@ -29,9 +29,7 @@
<title>Software, Product Developement and IT consulting</title>
<meta charset="UTF-8">
{% endblock head %}
<body hx-boost="false" class="dark">
<script src="https://unpkg.com/hyperscript.org@0.9.13"></script>{% endblock head %}
{% block header %}
<header class="pos-absolute" style="background-color: transparent">