chore(layout): minor search fixes
This commit is contained in:
parent
e49b77d7f2
commit
23e2871917
|
@ -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:;">×</a>
|
||||
</div>
|
||||
<div class="searchbox-body"></div>
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue