diff --git a/css/area_sidebar-search.less b/css/area_sidebar-search.less index 48742e8..8c6f3f6 100755 --- a/css/area_sidebar-search.less +++ b/css/area_sidebar-search.less @@ -94,6 +94,12 @@ } } } + + #qsearch__out { + left: auto; + top: auto; + width: 100%; + } } .wide-content { .search.main-sidebar { diff --git a/js/sidebar.js b/js/sidebar.js index f31bb75..fd2c9b2 100644 --- a/js/sidebar.js +++ b/js/sidebar.js @@ -135,10 +135,23 @@ jQuery(function () { }); }; + /** + * Show sidebar when accessing the search + */ + const initSearchToggling = function () { + jQuery('.toggleSearch').find('a').click(function (e) { + setDefaultContent(); + e.preventDefault(); + jQuery('#qsearch__in').focus(); + }); + + }; + // main initContentNav(); initSidebarToggling(); initMenuHandling(); initContentMinHeight(); + initSearchToggling(); }); diff --git a/tpl/main-sidebar-search.php b/tpl/main-sidebar-search.php index a9e3a47..6f180cd 100755 --- a/tpl/main-sidebar-search.php +++ b/tpl/main-sidebar-search.php @@ -3,4 +3,4 @@ echo '