diff options
| author | bors <bors@rust-lang.org> | 2017-08-02 08:49:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-02 08:49:02 +0000 |
| commit | 5c385bef7a2429db496f809f2e5042774fe7079b (patch) | |
| tree | 1934dc7dcb82a85ede4a50801031712a3a0b6bc5 | |
| parent | 0b5c0874b8bc35e5be57ca856994e311772ada1d (diff) | |
| parent | 5c4c2d9235c5de88a217f03768cf6bc950fe6890 (diff) | |
| download | rust-5c385bef7a2429db496f809f2e5042774fe7079b.tar.gz rust-5c385bef7a2429db496f809f2e5042774fe7079b.zip | |
Auto merge of #43602 - QuietMisdreavus:fantastic-shrinking-headings, r=GuillaumeGomez
rustdoc: shrink headings in non-top-level docblocks Headings in per-method docs are often bigger than the function names/signatures themselves, so this tones those down to accentuate the methods.  Fixes #17193
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 858ef3bf411..b6a342ea3b0 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -274,9 +274,13 @@ nav.sub { border-bottom: 1px solid; } -.docblock h1 { font-size: 1.3em; } -.docblock h2 { font-size: 1.15em; } -.docblock h3, .docblock h4, .docblock h5 { font-size: 1em; } +#main > .docblock h1 { font-size: 1.3em; } +#main > .docblock h2 { font-size: 1.15em; } +#main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; } + +.docblock h1 { font-size: 1em; } +.docblock h2 { font-size: 0.95em; } +.docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; } .docblock { margin-left: 24px; |
