From 2ab36516f4e6b32ca098addfd5bfe2c657da5765 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 27 Dec 2020 16:26:44 +0100 Subject: [PATCH] Fix search section position on small devices --- src/librustdoc/html/static/rustdoc.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 42e4fa05152..00045bf23d3 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -1570,7 +1570,10 @@ h4 > .notable-traits { height: 73px; } - #main { + /* This is to prevent the search bar from being underneath the
+ * element following it. + */ + #main, #search { margin-top: 100px; }