about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2021-05-18 22:36:13 -0400
committerGitHub <noreply@github.com>2021-05-18 22:36:13 -0400
commit9b5cf645dc1c70745d84c6a7e4a5e1adaee704f2 (patch)
tree3ec85a0480468d8f91e9a4f05c5cdbd954615e7d
parentf66b6c2e6cf4ad3084fe30ac4dea5e43b9ab7d84 (diff)
parent253cbabc3974c4d4763b11061d7e2dc840a017e3 (diff)
downloadrust-9b5cf645dc1c70745d84c6a7e4a5e1adaee704f2.tar.gz
rust-9b5cf645dc1c70745d84c6a7e4a5e1adaee704f2.zip
Rollup merge of #85396 - jsha:top-doc-font-sizes, r=GuillaumeGomez
rustdoc: restore header sizes

The `<details>` toggle work changed the relationship from #main to the top-doc docblock so it was no longer a parent relationship but a great-grandparent relationship. This updates the CSS rules that set the heading sizes so they still apply.

Fixes #85389

r? ``@camelid``
-rw-r--r--src/librustdoc/html/static/rustdoc.css10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 28fa867b95f..6d581108836 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -427,9 +427,13 @@ nav.sub {
 	border-bottom: 1px solid;
 }
 
-#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; }
+.top-doc .docblock h1 { font-size: 1.3em; }
+.top-doc .docblock h2 { font-size: 1.15em; }
+.top-doc .docblock h3,
+.top-doc .docblock h4,
+.top-doc .docblock h5 {
+	font-size: 1em;
+}
 
 .docblock h1 { font-size: 1em; }
 .docblock h2 { font-size: 0.95em; }