Skip to content

Commit

Permalink
Improve search box display
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 17, 2018
1 parent d3cba9b commit 9d5ca39
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@
nav {
display: none;
}
#search-input {
width: calc(100% - 58px);
}
#search-but {
cursor: pointer;
}
#search-but, #search-input {
padding: 4px;
border: 1px solid #ccc;
border-radius: 3px;
outline: none;
font-size: 0.7em;
background-color: #fff;
}
#search-but:hover, #search-input:focus {
border-color: #55a9ff;
}
</style>

Welcome to an overview of the documentation provided by the Rust project.
Expand Down Expand Up @@ -45,8 +62,9 @@ accomplishing various tasks.

<div>
<form action="std/index.html" method="get">
<input type="search" name="search"/>
<button>Search</button>
<input id="search-input" type="search" name="search"
placeholder="Search through the standard library"/>
<button id="search-but">Search</button>
</form>
</div>

Expand Down

0 comments on commit 9d5ca39

Please sign in to comment.