summaryrefslogtreecommitdiffstats
path: root/docs/theme/NavMobile.jinja
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/theme/NavMobile.jinja18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/theme/NavMobile.jinja b/docs/theme/NavMobile.jinja
new file mode 100644
index 0000000..4126fb0
--- /dev/null
+++ b/docs/theme/NavMobile.jinja
@@ -0,0 +1,18 @@
+{% do attrs.set(id="navMobile", class="cd-nav-mobile", data_component="NavMobile") %}
+
+<Popover _attrs={{ attrs }}>
+ <header>
+ <Logo base_url={{ page.base_url }} class="logo" />
+ <nav class="cd-navbar nav-links">
+ <ThemeSwitch class="themeswitch" text={{ false }} />
+ </nav>
+ <PopButton
+ target="navMobile"
+ action="close"
+ title="Close menu"
+ class="cd-toggle-sidebar cd-text-button"
+ >Close</PopButton>
+ </header>
+
+ <Toc class="toc" toc={{ nav.toc }} page={{ page }} />
+</Popover>