Skip to content

Commit

Permalink
add search header back to search page
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Nov 12, 2024
1 parent ec3bf5f commit b6f6215
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions sphinx_conestack_theme/conestack/scss/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
margin-right: 0!important;
}
}

#searchbox .highlight-link {
display: none;
}

#searchbox-search {
margin-left: auto;
}
}
[data-bs-theme="dark"] #header {
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 44%), inset 0 -1px 0 rgb(0 0 0);
Expand Down
2 changes: 1 addition & 1 deletion sphinx_conestack_theme/conestack/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
{% endblock %}

{% block searchbox %}
<div id="searchbox" class="nav-item me-3" role="search">
<div id="searchbox-search" class="nav-item me-3" role="search">
<form class="search input-group" action="" method="get">
<input type="text" class="form-control" name="q" aria-labelledby="search-documentation" value="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<button type="submit" class="bi bi-search input-group-text" />
Expand Down
6 changes: 6 additions & 0 deletions sphinx_conestack_theme/conestack/static/css/conestack.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ body {
margin-right: 0 !important;
}
}
#header #searchbox .highlight-link {
display: none;
}
#header #searchbox-search {
margin-left: auto;
}

[data-bs-theme=dark] #header {
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.44), inset 0 -1px 0 rgb(0, 0, 0);
Expand Down
Loading

0 comments on commit b6f6215

Please sign in to comment.