Merge branch 'sidebar' into live
* sidebar: simplistic qsearch support reveal sidebar when clicking the search icon
This commit is contained in:
commit
d8b607a333
3 changed files with 20 additions and 1 deletions
|
@ -94,6 +94,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#qsearch__out {
|
||||||
|
left: auto;
|
||||||
|
top: auto;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.wide-content {
|
.wide-content {
|
||||||
.search.main-sidebar {
|
.search.main-sidebar {
|
||||||
|
|
|
@ -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
|
// main
|
||||||
initContentNav();
|
initContentNav();
|
||||||
initSidebarToggling();
|
initSidebarToggling();
|
||||||
initMenuHandling();
|
initMenuHandling();
|
||||||
initContentMinHeight();
|
initContentMinHeight();
|
||||||
|
initSearchToggling();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
|
|
||||||
echo '<h6 class="sr-only" role="heading" aria-level="2">'.tpl_getLang('head_quick_search').'</h6>'; ?>
|
echo '<h6 class="sr-only" role="heading" aria-level="2">'.tpl_getLang('head_quick_search').'</h6>'; ?>
|
||||||
<p class="toggleSearch"><a href="#qsearch__out"><span class="prefix">Zur Suche springen</span></a></p>
|
<p class="toggleSearch"><a href="#qsearch__out"><span class="prefix">Zur Suche springen</span></a></p>
|
||||||
<?php tpl_searchform(); ?>
|
<?php tpl_searchform(true, false); ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue