about summary refs log tree commit diff
path: root/src/librustdoc/html/static/rustdoc.css
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-11-13 13:03:14 +0800
committerkennytm <kennytm@gmail.com>2018-11-13 19:20:37 +0800
commit828dd17a913112e92a2dcfc43011fc7e07b0e871 (patch)
tree501c3010848efa94c39976c981d92e10e7c67621 /src/librustdoc/html/static/rustdoc.css
parent196db96d8b4cc33dbaddb579f7118ce517adbe77 (diff)
parent0edc9e8395e3178e93e058e642abb51193a6dde8 (diff)
downloadrust-828dd17a913112e92a2dcfc43011fc7e07b0e871.tar.gz
rust-828dd17a913112e92a2dcfc43011fc7e07b0e871.zip
Rollup merge of #55858 - GuillaumeGomez:fixes-rustdoc-codeblocks, r=QuietMisdreavus
Small fixes on code blocks in rustdoc

It currently has a little margin issue with the `i` and there were js errors.

r? @QuietMisdreavus
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 1ae3b0b88c6..0f9104f91b4 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -284,6 +284,7 @@ nav.sub {
 
 body:not(.source) .example-wrap {
 	display: inline-flex;
+	margin-bottom: 10px;
 }
 
 .example-wrap {
@@ -303,6 +304,10 @@ body:not(.source) .example-wrap > pre.rust {
 	width: 100%;
 }
 
+body:not(.source) .example-wrap > pre {
+	margin: 0;
+}
+
 #search {
 	margin-left: 230px;
 	position: relative;