1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-18 19:31:35 +02:00

fix footer to use new dropdown markup

This commit is contained in:
Mark Otto
2015-08-18 19:51:21 -07:00
parent 1ee84d4a1c
commit 7de3b3eced
4 changed files with 9 additions and 9 deletions

View File

@@ -35,8 +35,8 @@
SimpleJekyllSearch.init({ 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: '<a class="dropdown-item" href="{url}">{title}</a>',
noResultsText: '<li class="no-results">Sorry, there are no results for that search.</li>', noResultsText: '<div class="dropdown-item no-results">Sorry, there are no results for that search.</div>',
dataSource: '/search.json' dataSource: '/search.json'
}) })

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -35,15 +35,15 @@
display: none; display: none;
} }
> li > a { .dropdown-item {
padding-left: .75rem; padding-left: .75rem;
padding-right: .75rem; padding-right: .75rem;
&:first-child { margin-top: .25rem; }
&:last-child { margin-bottom: .25rem; }
} }
> li:first-child { margin-top: .25rem; } .no-results {
> li:last-child { margin-bottom: .25rem; }
> .no-results {
padding: .75rem 1rem; padding: .75rem 1rem;
color: #7a7a7a; color: #7a7a7a;
text-align: center; text-align: center;