From 22e851dbe9f44652efcabe9c87d87fb10bf128b3 Mon Sep 17 00:00:00 2001 From: a Date: Sun, 11 Dec 2022 18:55:00 -0600 Subject: [PATCH] add styling for details docs-menu --- assets/styles/components/nav-docs.scss | 2 +- layouts/partials/nav-docs.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/styles/components/nav-docs.scss b/assets/styles/components/nav-docs.scss index f8d2e64..3a274f6 100644 --- a/assets/styles/components/nav-docs.scss +++ b/assets/styles/components/nav-docs.scss @@ -21,7 +21,7 @@ padding: 1em 0; .menu { margin-top: 1em; - > li { + > li, > details { margin-bottom: 1em; > a { display: block; diff --git a/layouts/partials/nav-docs.html b/layouts/partials/nav-docs.html index 817f525..4649903 100644 --- a/layouts/partials/nav-docs.html +++ b/layouts/partials/nav-docs.html @@ -10,10 +10,12 @@ {{ $currentPage := . }} {{ range .Site.Menus.docs }} {{ $active := or ($currentPage.IsMenuCurrent "docs" .) (eq $currentPage.Section .Identifier)}} -
+
{{ if .HasChildren }} - + + {{ .Pre }}{{ .Name }}{{ .Post }} +