From a13cb0138e0548ab79896d7931e3a84ea6a9d64c Mon Sep 17 00:00:00 2001 From: Michael Gibson Date: Tue, 23 Jun 2020 13:17:27 -0700 Subject: [PATCH 1/3] force sidebar search to hide on desktop but show on mobile, when enabled --- assets/scss/_sidebar-tree.scss | 9 +++++++++ layouts/partials/sidebar-tree.html | 3 +++ 2 files changed, 12 insertions(+) diff --git a/assets/scss/_sidebar-tree.scss b/assets/scss/_sidebar-tree.scss index 3eef1c4b01..45c6043167 100644 --- a/assets/scss/_sidebar-tree.scss +++ b/assets/scss/_sidebar-tree.scss @@ -129,4 +129,13 @@ width: 100%; } } + + #content-desktop {display: block;} + #content-mobile {display: none;} + + @media screen and (max-width: 990px) { + + #content-desktop {display: none;} + #content-mobile {display: block;} + } } \ No newline at end of file diff --git a/layouts/partials/sidebar-tree.html b/layouts/partials/sidebar-tree.html index a3eeb2a45e..fab5060285 100644 --- a/layouts/partials/sidebar-tree.html +++ b/layouts/partials/sidebar-tree.html @@ -2,11 +2,14 @@ {{ $shouldDelayActive := ge (len .Site.Pages) 2000 }}
{{ if not .Site.Params.ui.sidebar_search_disable }} +
+
+
{{ end }}