[DOCS] add search box (#20251)

This adds a search box (powered by DuckDuckGo site search) to the
navbar.
This commit is contained in:
Felix Lange
2019-11-07 15:25:36 +01:00
committed by GitHub
parent 9a755be67b
commit 76bc99158d
2 changed files with 16 additions and 2 deletions

View File

@ -35,6 +35,16 @@ common-js:
<li><a href="{{target |strip }}">{{ link.first }}</a></li> <li><a href="{{target |strip }}">{{ link.first }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
<form class="navbar-form pull-right" role="search" method="get" action="https://duckduckgo.com/">
<input type="hidden" name="sites" value="geth.ethereum.org">
<input type="hidden" name="kz" value="-1">
<div class="input-group navbar-input-group-fixup">
<input class="input-sm" type="text" name="q" placeholder="Search site...">
<span class="input-group-btn">
<button type="submit" class="btn btn-default btn-sm"><i class="fa fa-search" aria-hidden="true"></i></button>
</span>
</div>
</form>
</div> </div>
</div> </div>
</nav> </nav>

View File

@ -50,3 +50,7 @@ table thead tr th, table tbody tr td {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
padding: 4px; padding: 4px;
} }
.navbar-input-group-fixup {
margin-top: 5px;
}