From 9da9c3be624e24e4ab989e811d614b7c1ad8b025 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 12 Oct 2017 20:00:34 +0200 Subject: Small improvement for the sidebar on mobile devices --- src/librustdoc/html/static/rustdoc.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/librustdoc/html/static/rustdoc.css') diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 27574e67bc8..813531c0954 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -764,17 +764,19 @@ span.since { } .sidebar { - height: 40px; + height: 45px; min-height: 40px; - width: 100%; - margin: 0px; - padding: 0px; + width: calc(100% + 30px); + margin: 0; + margin-left: -15px; + padding: 0 15px; position: static; } .sidebar .location { float: right; margin: 0px; + margin-top: 2px; padding: 3px 10px 1px 10px; min-height: 39px; background: inherit; @@ -789,7 +791,7 @@ span.since { .sidebar img { width: 35px; margin-top: 5px; - margin-bottom: 0px; + margin-bottom: 5px; float: left; } -- cgit 1.4.1-3-g733a5 From 16ec7b949fb62db3956687fbf8660fc8524c9cf4 Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Thu, 12 Oct 2017 22:57:51 +0200 Subject: Increase padding between consecutive impls --- src/librustdoc/html/static/rustdoc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustdoc/html/static/rustdoc.css') diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 27574e67bc8..e03a9201b6a 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -385,7 +385,7 @@ h4 > code, h3 > code, .invisible > code { padding: 0; } -.content .item-list li { margin-bottom: 3px; } +.content .item-list li { margin-bottom: 1em; } .content .multi-column { -moz-column-count: 5; -- cgit 1.4.1-3-g733a5