aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/templates/-navbar.html.tmpl
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-02 00:24:54 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-02 00:24:54 +0200
commitdb7dc92fc8726a0a89b26fbac5480d9e3847a55f (patch)
treefe18d99059bff6d10800c9c1ce28ceee90662680 /src/templates/-navbar.html.tmpl
parentafe6a6c8b77a7f1ae99190ab782cdba1f5ee422d (diff)
Change how we do headers
Diffstat (limited to 'src/templates/-navbar.html.tmpl')
-rw-r--r--src/templates/-navbar.html.tmpl40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/templates/-navbar.html.tmpl b/src/templates/-navbar.html.tmpl
index 442de5b..33484b8 100644
--- a/src/templates/-navbar.html.tmpl
+++ b/src/templates/-navbar.html.tmpl
@@ -1,3 +1,43 @@
+{{ define "header-navbar" }}
+<style>
+ #nav-icon-lang {
+ a {
+ display: flex;
+ align-items: center;
+ gap: .5ch;
+ }
+
+ svg {
+ stroke: var(--color);
+ height: 1rem;
+ }
+ }
+
+ #nav-icon-theme {
+ button {
+ background-color: unset;
+ margin: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 1.5rem;
+ }
+
+ svg {
+ --size: 1.2rem;
+ stroke: var(--primary);
+ stroke-width: .1;
+ height: var(--size);
+ width: var(--size);
+ }
+ }
+
+ [data-theme="light"] #nav-icon-theme svg {
+ fill: var(--primary);
+ }
+</style>
+{{ end }}
+
{{ define "navbar" }}
<nav>
<menu>