aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/templates/-navbar.html.tmpl
diff options
context:
space:
mode:
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>