-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jquery: Add search suggestions based on Algolia's DocSearch
This commit adds DocSearch to the documentation website. It allows a user to have a learn-as-you-type experience by displaying results thanks to a dropdown in a live way. If there is no result, pressing enter will enable the legacy search. Fixes jquery/api.jquery.com#1104 Closes #416
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Custom DocSeach CSS to adapt the generic one * See https://community.algolia.com/docsearch/styling.html for more info */ | ||
nav#main .searchform { | ||
text-shadow: none; | ||
} | ||
|
||
.searchform label { | ||
width: 100%; | ||
display: block; | ||
} | ||
|
||
.algolia-autocomplete { | ||
width: 99%; | ||
} | ||
|
||
@media only screen and (max-width: 480px) { | ||
.ds-dropdown-menu { | ||
min-width: 100% !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters