mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
no results in search form accounted for
This commit is contained in:
parent
7e25a958a2
commit
489f2bc1fa
4 changed files with 13 additions and 6 deletions
|
@ -55,6 +55,7 @@ SimpleJekyllSearch.init({
|
||||||
searchInput: document.getElementById('search-input'),
|
searchInput: document.getElementById('search-input'),
|
||||||
resultsContainer: document.getElementById('search-results'),
|
resultsContainer: document.getElementById('search-results'),
|
||||||
searchResultTemplate: '<li><a href="{url}">{title}</a></li>',
|
searchResultTemplate: '<li><a href="{url}">{title}</a></li>',
|
||||||
|
noResultsText: '<li class="no-results">Sorry, there are no results for that search.</li>',
|
||||||
dataSource: '/search.json'
|
dataSource: '/search.json'
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
2
docs/assets/css/docs.min.css
vendored
2
docs/assets/css/docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -643,9 +643,9 @@ body {
|
||||||
|
|
||||||
.bs-docs-search {
|
.bs-docs-search {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: 1.25rem;
|
|
||||||
margin-right: 1.25rem;
|
margin-right: 1.25rem;
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
|
margin-left: 1.25rem;
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
height: 2.45rem;
|
height: 2.45rem;
|
||||||
|
@ -667,8 +667,8 @@ body {
|
||||||
right: 0;
|
right: 0;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: .9rem;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
font-size: .9rem;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
> li > a {
|
> li > a {
|
||||||
|
@ -676,8 +676,14 @@ body {
|
||||||
padding-right: .75rem;
|
padding-right: .75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
> li:first-child { padding-top: .25rem; }
|
> li:first-child { margin-top: .25rem; }
|
||||||
> li:last-child { padding-bottom: .25rem; }
|
> li:last-child { margin-bottom: .25rem; }
|
||||||
|
|
||||||
|
> .no-results {
|
||||||
|
padding: .75rem 1rem;
|
||||||
|
color: #7a7a7a;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue