about summary refs log tree commit diff
path: root/src/librustdoc/html/static
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-11 10:20:33 +0200
committerGitHub <noreply@github.com>2017-08-11 10:20:33 +0200
commit742bba0ebfa26f65d9aca239edaf5b0aad8fa9e2 (patch)
tree4981b87f93ff01eec33a39d46451c6e9374543a6 /src/librustdoc/html/static
parent77904aad52aa0fdf452dd8ea56f78b0284b0a6f5 (diff)
parentb6172008bf3165dcc28973e64ef3ff346be9f23a (diff)
downloadrust-742bba0ebfa26f65d9aca239edaf5b0aad8fa9e2.tar.gz
rust-742bba0ebfa26f65d9aca239edaf5b0aad8fa9e2.zip
Rollup merge of #43795 - GuillaumeGomez:improve-variants-doc-style, r=QuietMisdreavus
Improve enum variants display

r? @rust-lang/docs

Before:

<img width="1440" alt="screen shot 2017-08-11 at 00 22 54" src="https://user-images.githubusercontent.com/3050060/29194776-728ce0e2-7e2b-11e7-8299-8300cc0c168b.png">

After:

<img width="1440" alt="screen shot 2017-08-11 at 00 22 57" src="https://user-images.githubusercontent.com/3050060/29194783-78867558-7e2b-11e7-9226-1327fd20163a.png">

(The doc of the variant is more aligned with the "[-]" now).
Diffstat (limited to 'src/librustdoc/html/static')
-rw-r--r--src/librustdoc/html/static/rustdoc.css4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 3a3063d7c7d..ee94f0baeb9 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -687,6 +687,10 @@ span.since {
 	left: 0;
 }
 
+.variant + .toggle-wrapper + .docblock > p {
+	margin-top: 5px;
+}
+
 .variant + .toggle-wrapper > a {
 	margin-top: 5px;
 }