From 9d5ca397c73325a32801b3d4b619368ac7c54b94 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 16 Sep 2018 21:22:32 +0200 Subject: [PATCH] Improve search box display --- src/doc/index.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/doc/index.md b/src/doc/index.md index b1788d8c32f02..33ee76739c5b2 100644 --- a/src/doc/index.md +++ b/src/doc/index.md @@ -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; +} Welcome to an overview of the documentation provided by the Rust project. @@ -45,8 +62,9 @@ accomplishing various tasks.
- - + +