chore(layout): minor search fixes

This commit is contained in:
ppoffice 2020-03-09 14:09:40 -04:00
parent e49b77d7f2
commit 23e2871917
3 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,8 @@ class Algolia extends Component {
<div class="searchbox-header">
<div class="searchbox-input-container" id="algolia-input">
</div>
<div class="is-flex" id="algolia-poweredby" style="align-items:center;line-height:0"></div>
<div class="is-flex" id="algolia-poweredby"
style="margin:0 .5em 0 1em;align-items:center;line-height:0"></div>
<a class="searchbox-close" href="javascript:;">&times;</a>
</div>
<div class="searchbox-body"></div>

View File

@ -23,7 +23,7 @@
"bulma-stylus": "0.8.0",
"deepmerge": "^4.2.2",
"hexo": "^4.2.0",
"hexo-component-inferno": "^0.1.2",
"hexo-component-inferno": "^0.1.3",
"hexo-log": "^1.0.0",
"hexo-pagination": "^1.0.0",
"hexo-renderer-inferno": "^0.1.3",

View File

@ -78,6 +78,7 @@ function loadAlgolia(config, translation) { // eslint-disable-line no-unused-var
$(document).on('click', '.navbar-main .search', () => {
$('.searchbox').toggleClass('show');
$('.searchbox-input').focus();
}).on('click', '.searchbox .searchbox-mask', () => {
$('.searchbox').removeClass('show');
}).on('click', '.searchbox-close', () => {