From 4e2c59a970695b2809a0f68f2ffe415ebdb04913 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 18 Oct 2020 21:54:59 +0200 Subject: [PATCH] Greatly improve display for small mobile devices screens --- src/librustdoc/html/static/rustdoc.css | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 8c8a00d47bc..0ab97ab3f63 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -1560,6 +1560,41 @@ h4 > .notable-traits { #titles, #titles > div { height: 73px; } + + #main > table:not(.table-display) td { + word-break: break-word; + min-width: 10%; + } + + .search-container > div { + display: block; + width: calc(100% - 37px); + } + + #crate-search { + width: 100%; + border-radius: 4px; + border: 0; + } + + #crate-search + .search-input { + width: calc(100% + 71px); + margin-left: -36px; + } + + #theme-picker, #settings-menu { + padding: 5px; + width: 31px; + height: 31px; + } + + #theme-picker { + margin-top: -2px; + } + + #settings-menu { + top: 7px; + } } h3.notable { -- 2.44.0