hyperscript toggle for body
This commit is contained in:
parent
e28058040c
commit
587877a3fb
|
@ -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>
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<style>
|
||||
:not(.dark) {
|
||||
:root {
|
||||
/* Primary theme color */
|
||||
--primary-color: #FED43F;
|
||||
/* Primary theme text color */
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue