Skip to content

Commit

Permalink
SearchBarFix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Newman authored and Joseph Newman committed Apr 22, 2024
1 parent 551945b commit 7a0fd55
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
Binary file modified build/ui-bundle.zip
Binary file not shown.
25 changes: 25 additions & 0 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -965,3 +965,28 @@ h1.page + aside.toc.embedded {
display: block !important;
}
}

.tooltip {
position: relative;
cursor: pointer;
}

.tooltip::after {
content: attr(data-tooltip);
position: absolute;
white-space: nowrap;
background-color: #333;
color: white;
padding: 4px 8px;
border-radius: 4px;
opacity: 0;
transition: opacity 0.5s;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
}

.tooltip:hover::after {
opacity: 1;
}
6 changes: 5 additions & 1 deletion src/js/vendor/docsearch.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
activateSearch(require('docsearch.js/dist/cdn/docsearch.js'), document.getElementById('search-script').dataset)

function activateSearch (docsearch, config) {
//Setting "Latest" checkbox to "true" or "checked"
if (window.localStorage.getItem(SEARCH_FILTER_ACTIVE_KEY1) === null) {
window.localStorage.setItem(SEARCH_FILTER_ACTIVE_KEY1, 'true') // Set default as 'true'
}
appendStylesheet(config.stylesheet)
var baseAlgoliaOptions = {
hitsPerPage: parseInt(config.pageSize) || 20, // cannot exceed the hitsPerPage value defined on the index
Expand Down Expand Up @@ -128,7 +132,7 @@
window.localStorage.setItem(SEARCH_FILTER_ACTIVE_KEY, e.target.checked)
}
if (e.path[1].className === 'filter1 checkbox1') {
//window.localStorage.setItem(SEARCH_FILTER_ACTIVE_KEY1, e.target.checked)
window.localStorage.setItem(SEARCH_FILTER_ACTIVE_KEY1, e.target.checked)
}
isClosed(this) ? this.$input.focus() : requery.call(this)
}
Expand Down

0 comments on commit 7a0fd55

Please sign in to comment.