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>
|
src="/flag-for-united-kingdom-svgrepo-com.svg"></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<button _="on click toggle .dark on the closest <body/>"> toggle </button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<style>
|
<style>
|
||||||
:not(.dark) {
|
:root {
|
||||||
/* Primary theme color */
|
/* Primary theme color */
|
||||||
--primary-color: #FED43F;
|
--primary-color: #FED43F;
|
||||||
/* Primary theme text color */
|
/* Primary theme text color */
|
||||||
|
|
|
@ -29,9 +29,7 @@
|
||||||
<title>Software, Product Developement and IT consulting</title>
|
<title>Software, Product Developement and IT consulting</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
|
||||||
{% endblock head %}
|
<script src="https://unpkg.com/hyperscript.org@0.9.13"></script>{% endblock head %}
|
||||||
|
|
||||||
<body hx-boost="false" class="dark">
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
|
|
||||||
<header class="pos-absolute" style="background-color: transparent">
|
<header class="pos-absolute" style="background-color: transparent">
|
||||||
|
|
Loading…
Reference in a new issue