From d4612de8f4001932bb326c6c7e8488843d02ec74 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 30 Jul 2015 16:49:57 +0200 Subject: [PATCH] Add custom.css for docs --- custom.css | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 custom.css diff --git a/custom.css b/custom.css new file mode 100644 index 0000000..8e0b705 --- /dev/null +++ b/custom.css @@ -0,0 +1,25 @@ + +.docblock pre.rust { background: #eeeeff; } +pre.trait, pre.fn, pre.struct, pre.enum, pre.typedef { background: #fcfefc; } + +/* Small “example” label for doc examples */ +.docblock pre.rust::before { + content: "example"; + float: right; + font-style: italic; + font-size: 0.8em; + margin-top: -10px; + margin-right: -5px; +} + + +/* Fixup where display in trait listing */ +pre.trait .where::before { +content: '\a '; +} + +.docblock code { + background-color: inherit; + font-weight: bold; + padding: 0 0.1em; +}