From 27e2ee173c09c1aeb72060f2f1eefada927cd394 Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Mon, 20 Jun 2022 15:00:01 +0200 Subject: [PATCH] ux: update on this page toggle --- assets/scss/layouts/_header.scss | 9 ++++++--- layouts/partials/sidebar/docs-toc.html | 14 ++++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/assets/scss/layouts/_header.scss b/assets/scss/layouts/_header.scss index f53d1bf..7bc7323 100644 --- a/assets/scss/layouts/_header.scss +++ b/assets/scss/layouts/_header.scss @@ -434,15 +434,18 @@ button#doks-versions { outline: 0; } -.doks-sidebar-toggle .doks-collapse { +.doks-sidebar-toggle .doks-collapse, +.doks-toc-toggle .doks-collapse { display: none; } -.doks-sidebar-toggle:not(.collapsed) .doks-expand { +.doks-sidebar-toggle:not(.collapsed) .doks-expand, +.doks-toc-toggle:not(.collapsed) .doks-expand { display: none; } -.doks-sidebar-toggle:not(.collapsed) .doks-collapse { +.doks-sidebar-toggle:not(.collapsed) .doks-collapse, +.doks-toc-toggle:not(.collapsed) .doks-collapse { display: inline-block; } diff --git a/layouts/partials/sidebar/docs-toc.html b/layouts/partials/sidebar/docs-toc.html index caae3f0..ba41c9a 100644 --- a/layouts/partials/sidebar/docs-toc.html +++ b/layouts/partials/sidebar/docs-toc.html @@ -1,12 +1,14 @@ {{ if and (ne .Params.toc false) (ne .TableOfContents "") -}}
-

- -

+
-
+