From 8a587e67afcd99e800eb0783a090f8b163cdfb10 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 4 Feb 2018 13:47:35 +0100 Subject: [PATCH] Improve big sidebar elements display --- src/librustdoc/html/static/rustdoc.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index fc5444b6b788..6d95123e63c6 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -1035,6 +1035,24 @@ h4 > .important-traits { .show-it { display: block; + width: 246px; + } + + .show-it > .block.items { + margin: 8px 0; + } + + .show-it > .block.items > ul { + margin: 0; + } + + .show-it > .block.items > ul > li { + text-align: center; + margin: 2px 0; + } + + .show-it > .block.items > ul > li > a { + font-size: 21px; } /* Because of ios, we need to actually have a full height sidebar title so the