Skip to content

Commit 5c385be

Browse files
committed
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. ![screenshot of this change on Vec::swap_remove](https://user-images.githubusercontent.com/5217170/28849380-6116a830-76dc-11e7-8ce2-04433d09463a.png) Fixes #17193
2 parents 0b5c087 + 5c4c2d9 commit 5c385be

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,13 @@ nav.sub {
274274
border-bottom: 1px solid;
275275
}
276276

277-
.docblock h1 { font-size: 1.3em; }
278-
.docblock h2 { font-size: 1.15em; }
279-
.docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
277+
#main > .docblock h1 { font-size: 1.3em; }
278+
#main > .docblock h2 { font-size: 1.15em; }
279+
#main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; }
280+
281+
.docblock h1 { font-size: 1em; }
282+
.docblock h2 { font-size: 0.95em; }
283+
.docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
280284

281285
.docblock {
282286
margin-left: 24px;

0 commit comments

Comments
 (0)