rustdoc: fix the search-bar layout
Now with broader compatibility.
This commit is contained in:
parent
67aca9c9af
commit
89e1fb3223
2 changed files with 11 additions and 5 deletions
|
@ -58,11 +58,13 @@ pub fn render<T: fmt::Default, S: fmt::Default>(
|
||||||
|
|
||||||
<nav class=\"sub\">
|
<nav class=\"sub\">
|
||||||
<form class=\"search-form js-only\">
|
<form class=\"search-form js-only\">
|
||||||
|
<button class=\"do-search\">Search</button>
|
||||||
|
<div class=\"search-container\">
|
||||||
<input class=\"search-input\" name=\"search\"
|
<input class=\"search-input\" name=\"search\"
|
||||||
autocomplete=\"off\"
|
autocomplete=\"off\"
|
||||||
placeholder=\"Search documentation...\"
|
placeholder=\"Search documentation...\"
|
||||||
type=\"search\" />
|
type=\"search\" />
|
||||||
<button class=\"do-search\">Search</button>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
|
@ -233,10 +233,14 @@ a {
|
||||||
.content a.fn, .block a.current.fn { color: #8c6067; }
|
.content a.fn, .block a.current.fn { color: #8c6067; }
|
||||||
.content .fnname { color: #8c6067; }
|
.content .fnname { color: #8c6067; }
|
||||||
|
|
||||||
|
.search-container {
|
||||||
|
padding-right: 10px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.search-input {
|
.search-input {
|
||||||
border: 2px solid #e9e9e9;
|
border: 2px solid #e9e9e9;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
width: calc(100% - 66px);
|
width: 100%;
|
||||||
}
|
}
|
||||||
.do-search {
|
.do-search {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue