Skip to content

Commit 67029b2

Browse files
committed
Reduce search bar width, add template for No Results
1 parent 5e943a9 commit 67029b2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

_includes/algolia.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ <h2 class="post-card-title">${ title }</h2>
7777
instantsearch.widgets.hits({
7878
container: '#search-hits',
7979
templates: {
80-
item: hitTemplate
80+
item: hitTemplate,
81+
empty: function(data){
82+
return '';
83+
}
8184
}
8285
})
8386
);
@@ -93,11 +96,9 @@ <h2 class="post-card-title">${ title }</h2>
9396

9497
function expand(){
9598
if($('.ais-search-box--input').hasClass('open')){
96-
$('.site-nav-left').css('visibility', 'visible');
9799
$('#search-hits').hide();
98100
$('#posts').show();
99101
}else{
100-
$('.site-nav-left').css('visibility', 'hidden');
101102
$('#search-hits').show();
102103
$('#posts').hide();
103104
}

assets/built/screen.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ The knock-on effect of this is ugly browser-scroll bars at the bottom, so 80px o
304304
}
305305

306306
.ais-search-box .open {
307-
width: 712px;
307+
width: 100%;
308308
padding: 15px;
309309
color: #ffffff;
310310
cursor: auto;

0 commit comments

Comments
 (0)