diff options
| author | Adrien Tétar <adri-from-59@hotmail.fr> | 2013-12-07 17:15:12 +0100 |
|---|---|---|
| committer | Adrien Tétar <adri-from-59@hotmail.fr> | 2013-12-07 17:15:16 +0100 |
| commit | 89e1fb322321c05497caa01372ceb7d5b57fa680 (patch) | |
| tree | a9ad67eb47f392692b83ba558ac3480e989bf9cd | |
| parent | 67aca9c9af9be7d04317d3ed452b7b253059818d (diff) | |
rustdoc: fix the search-bar layout
Now with broader compatibility.
| -rw-r--r-- | src/librustdoc/html/layout.rs | 10 | ||||
| -rw-r--r-- | src/librustdoc/html/static/main.css | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index bfa6651fe0a..36d98755e02 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -58,11 +58,13 @@ pub fn render<T: fmt::Default, S: fmt::Default>( <nav class=\"sub\"> <form class=\"search-form js-only\"> - <input class=\"search-input\" name=\"search\" - autocomplete=\"off\" - placeholder=\"Search documentation...\" - type=\"search\" /> <button class=\"do-search\">Search</button> + <div class=\"search-container\"> + <input class=\"search-input\" name=\"search\" + autocomplete=\"off\" + placeholder=\"Search documentation...\" + type=\"search\" /> + </div> </form> </nav> diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index 80bdb0a9e4f..e0f4a9c167d 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -233,10 +233,14 @@ a { .content a.fn, .block a.current.fn { color: #8c6067; } .content .fnname { color: #8c6067; } +.search-container { + padding-right: 10px; + overflow: hidden; +} .search-input { border: 2px solid #e9e9e9; border-radius: 2px; - width: calc(100% - 66px); + width: 100%; } .do-search { float: right; |
