diff options
| author | bors <bors@rust-lang.org> | 2018-01-23 13:23:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-23 13:23:58 +0000 |
| commit | 3a39b2aa5a68dd07aacab2106db3927f666a485a (patch) | |
| tree | 20b5d74509612eb932733b3d7425f798a56d9921 /src/librustdoc/html/static/rustdoc.css | |
| parent | 48a7ea9c4095e3218df39832dfc51a456534ecc9 (diff) | |
| parent | 5b8504401c7590130eb01a34155b12c26881b0b1 (diff) | |
| download | rust-3a39b2aa5a68dd07aacab2106db3927f666a485a.tar.gz rust-3a39b2aa5a68dd07aacab2106db3927f666a485a.zip | |
Auto merge of #47620 - GuillaumeGomez:multiple-themes, r=QuietMisdreavus
Multiple themes for rustdoc r? @QuietMisdreavus
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 34b04de8673..c1ca86e3292 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -360,7 +360,8 @@ ul.item-list > li > .out-of-band { } h4 > code, h3 > code, .invisible > code { - position: inherit; + max-width: calc(100% - 41px); + display: block; } .in-band, code { @@ -376,6 +377,7 @@ h4 > code, h3 > code, .invisible > code { margin: 0px; padding: 0px; display: inline-block; + max-width: calc(100% - 43px); } .in-band > code { @@ -1140,3 +1142,37 @@ kbd { border-radius: 3px; box-shadow: inset 0 -1px 0; } + +#theme-picker { + position: absolute; + left: 211px; + top: 17px; + padding: 4px; + border: 1px solid; + border-radius: 3px; + cursor: pointer; +} + +#theme-choices { + display: none; + position: absolute; + left: -1px; + top: 30px; + border: 1px solid; + border-radius: 3px; + z-index: 1; +} + +#theme-choices > div { + border-top: 1px solid; + padding: 4px; + text-align: center; +} + +@media (max-width: 700px) { + #theme-picker { + left: 109px; + top: 7px; + z-index: 1; + } +} |
