summary refs log tree commit diff
path: root/src/librustdoc/html/static/rustdoc.css
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-09-26 17:29:48 -0700
committerGitHub <noreply@github.com>2016-09-26 17:29:48 -0700
commitd6a7a4fb5704e69b63faaea21c9ff8f35aedfbdc (patch)
tree8429e78b9bcef83b6fd0ab355cd5d54e6bab0666 /src/librustdoc/html/static/rustdoc.css
parent5cc9fb9ed9a6d875ab63221ae8b0d7adec9e6677 (diff)
parente82d13ea4b4f0cb678fe733af9fd6c107a98609a (diff)
downloadrust-d6a7a4fb5704e69b63faaea21c9ff8f35aedfbdc.tar.gz
rust-d6a7a4fb5704e69b63faaea21c9ff8f35aedfbdc.zip
Rollup merge of #36676 - bluss:rustdoc-where-css, r=steveklabnik
rustdoc css: Put `where` in trait listings on a new line

This is about the gray area at the top of a trait's documentation page,
that lists all methods and their signatures. A big trait page like
Iterator is very crowded without this tweak.
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/rustdoc.css5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 9a6cded5b4c..cad5fae690f 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -378,6 +378,11 @@ h4 > code, h3 > code, .invisible > code {
     font-size: 90%;
 }
 
+/* Shift where in trait listing down a line */
+pre.trait .where::before {
+    content: '\a         ';
+}
+
 nav {
     border-bottom: 1px solid;
     padding-bottom: 10px;