From da6aa94dd0141b2db43bf5b61c7d9ef26b9e15ad Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 19 May 2024 08:51:05 +0200 Subject: [PATCH] helloworld, we added some features to make than the werobot website is ready to prod --- assets/scss/layouts/drawer.scss | 6 +++--- layouts/_default/baseof.html | 1 + layouts/partials/drawer.html | 21 +++++++++++++++++++++ layouts/partials/header.html | 4 ++-- 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/drawer.html diff --git a/assets/scss/layouts/drawer.scss b/assets/scss/layouts/drawer.scss index 9374ec6..188d4d2 100644 --- a/assets/scss/layouts/drawer.scss +++ b/assets/scss/layouts/drawer.scss @@ -15,7 +15,7 @@ body { } -.drawer-body-scrolling-disabled { +#drawer-toggler:checked ~ body, .drawer-body-scrolling-disabled { overflow: hidden; } @@ -65,7 +65,7 @@ body { } } - &.drawer-enabled { + &.drawer-enabled, #drawer-toggler ~ body .drawer{ width: 300px; .drawer-links { opacity: 1; @@ -79,4 +79,4 @@ body { padding-right: 1em; font-size: 1.3em; } -} \ No newline at end of file +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 29f253d..1eb7762 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,6 +5,7 @@ {{- block "head" . -}}{{ end }} +
+
+
+
+ +
+
+ +
+
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7a6172b..759ef58 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -21,11 +21,11 @@
-
-
+
{{ range .Site.Menus.main.ByWeight }}