Skip to content

Commit

Permalink
Add "Hide Search Matches" support
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jul 25, 2021
1 parent 26fe580 commit dfe43e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/furo/assets/styles/components/_sidebar.sass
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@
&::placeholder
font-size: var(--sidebar-search-input-font-size)

//
// Hide Search Matches link
//
#searchbox .highlight-link
padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal) 0
margin: 0
text-align: center

a
color: var(--color-sidebar-search-icon)
font-size: var(--font-size--small--2)

////////////////////////////////////////////////////////////////////////////////
// Structure/Skeleton of the navigation tree (left)
////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions src/furo/theme/furo/sidebar/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
<input type="hidden" name="check_keywords" value="yes">
<input type="hidden" name="area" value="default">
</form>
<div id="searchbox"></div>

0 comments on commit dfe43e8

Please sign in to comment.