Skip to content

Commit 9d5ca39

Browse files
Improve search box display
1 parent d3cba9b commit 9d5ca39

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/doc/index.md

+20-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
nav {
55
display: none;
66
}
7+
#search-input {
8+
width: calc(100% - 58px);
9+
}
10+
#search-but {
11+
cursor: pointer;
12+
}
13+
#search-but, #search-input {
14+
padding: 4px;
15+
border: 1px solid #ccc;
16+
border-radius: 3px;
17+
outline: none;
18+
font-size: 0.7em;
19+
background-color: #fff;
20+
}
21+
#search-but:hover, #search-input:focus {
22+
border-color: #55a9ff;
23+
}
724
</style>
825

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

4663
<div>
4764
<form action="std/index.html" method="get">
48-
<input type="search" name="search"/>
49-
<button>Search</button>
65+
<input id="search-input" type="search" name="search"
66+
placeholder="Search through the standard library"/>
67+
<button id="search-but">Search</button>
5068
</form>
5169
</div>
5270

0 commit comments

Comments
 (0)