about summary refs log tree commit diff
path: root/src/librustdoc/html/static/rustdoc.css
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-10 04:05:55 +0000
committerbors <bors@rust-lang.org>2021-05-10 04:05:55 +0000
commit00f2bf40d6374ec3541a72edb5b481fb1370dbca (patch)
treee5725db87f80e983b2d091eb6f175856b19aca85 /src/librustdoc/html/static/rustdoc.css
parentd29289c509c60c52b16277b0cce5abfc5cf06985 (diff)
parent3837c1ce33f235949c454b576c41cc77736a7f87 (diff)
downloadrust-00f2bf40d6374ec3541a72edb5b481fb1370dbca.tar.gz
rust-00f2bf40d6374ec3541a72edb5b481fb1370dbca.zip
Auto merge of #85074 - GuillaumeGomez:end-toggle-migration, r=jsha
Migrate top doc and non-exhaustive toggles to details tag

Fixes #83332.

r? `@jsha`
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/rustdoc.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index d3fe59e8d0b..42a85fcce03 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1790,6 +1790,18 @@ details.rustdoc-toggle > summary::before {
 	cursor: pointer;
 }
 
+details.rustdoc-toggle.top-doc > summary,
+details.rustdoc-toggle.top-doc > summary::before,
+details.rustdoc-toggle.non-exhaustive > summary,
+details.rustdoc-toggle.non-exhaustive > summary::before {
+	font-family: 'Fira Sans';
+	font-size: 16px;
+}
+
+details.non-exhaustive {
+	margin-bottom: 8px;
+}
+
 details.rustdoc-toggle > summary.hideme::before {
 	position: relative;
 }