Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Search button shows up on mobile (#832)
* ENH: Search button shows up on mobile * Remove crufty comments
- Loading branch information
Showing
6 changed files
with
117 additions
and
82 deletions.
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
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
14 changes: 2 additions & 12 deletions
14
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/search-button.html
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 |
---|---|---|
@@ -1,14 +1,4 @@ | ||
{# Search page has its own UI / UX for search #} | ||
<!-- A button that will trigger a search field to be displayed on click. --> | ||
{% set containerClass="search-button__search-container" %} | ||
|
||
<!-- An overlay that will expand in the background and cause the search to disappear when clicked --> | ||
<button class="btn btn-sm navbar-btn search-button" id="bd-search-button" title="{{ _('Search') }}"> | ||
{# A button that, when clicked, will trigger a search popup overlay #} | ||
<button class="btn btn-sm navbar-btn search-button search-button__button" title="{{ _('Search') }}"> | ||
<i class="fas fa-search"></i> | ||
</button> | ||
|
||
{#- This will be hidden by default until click -#} | ||
<div class="search-button__overlay"></div> | ||
<div class="{{ containerClass }}"> | ||
{% include "../components/search-field.html" %} | ||
</div> |
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
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