diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 957dba4d06..de7e940cad 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -108,40 +108,43 @@ {{if and .IsSection (or (and (not .Params.hidden) (ne .Title "")) $.showhidden )}} {{safeHTML .Params.head}} {{ $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }} -
  • +
  • {{ partial "menu-pre.html" . }}{{or .Params.menuTitle .LinkTitle .Title}}{{ partial "menu-post.html" . }} {{ if $showvisitedlinks}}{{end}} - {{ $numberOfPages := (add (len (where (where .Pages "Params.hidden" "ne" true ) "Title" "ne" "" )) (len (where (where .Sections "Params.hidden" "ne" true ) "Title" "ne" "" )) ) }} - {{ if ne $numberOfPages 0 }} -
  • {{else if and (not .Params.hidden) (ne .Title "") }} -
  • +
  • {{ partial "menu-pre.html" . }}{{or .Params.menuTitle .LinkTitle .Title}}{{ partial "menu-post.html" . }} {{ if $showvisitedlinks}}{{end}} diff --git a/static/css/theme.css b/static/css/theme.css index 4ff9e37e79..d4f030d2fb 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -212,12 +212,14 @@ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[typ } #sidebar ul.topics ul { display: none; +} +#sidebar ul.topics > li > ul > li:last-child { padding-bottom: 1rem; } #sidebar ul.topics ul ul { padding-bottom: 0; } -#sidebar ul.topics li.parent > ul, #sidebar ul.topics li.active > ul { +#sidebar ul.topics li.parent > ul, #sidebar ul.topics li.active > ul, #sidebar ul.topics li.alwaysopen > ul { display: block; } #sidebar ul.topics > li > a { @@ -231,7 +233,7 @@ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[typ #sidebar ul.topics > li > a .fa { margin-top: 9px; } -#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active { +#sidebar ul.topics > li.parent { background: #251f29; margin-left: -1rem; margin-right: -1rem;