File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 4
4
nav {
5
5
display : none ;
6
6
}
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
+ }
7
24
</style >
8
25
9
26
Welcome to an overview of the documentation provided by the Rust project.
@@ -45,8 +62,9 @@ accomplishing various tasks.
45
62
46
63
<div >
47
64
<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>
50
68
</form >
51
69
</div >
52
70
You can’t perform that action at this time.
0 commit comments