about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-14 14:36:34 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-14 15:16:29 +0200
commit766de3a5e24bf436d74a69af652bd08f2f5a9755 (patch)
tree950e39d6d329393c29054b42473b241cac2ed6dc
parent69b352ef7749825abde2d8f8e31c05f681e61a10 (diff)
downloadrust-766de3a5e24bf436d74a69af652bd08f2f5a9755.tar.gz
rust-766de3a5e24bf436d74a69af652bd08f2f5a9755.zip
Fix toggle position on mobile
-rw-r--r--src/librustdoc/html/static/rustdoc.css9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 1b7eff4604f..1d5ba618e5d 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1586,6 +1586,10 @@ h4 > .notable-traits {
 	.docblock {
 		margin-left: 12px;
 	}
+
+	details.rustdoc-toggle > summary.hideme::before {
+		left: -11px;
+	}
 }
 
 h3.notable {
@@ -1697,6 +1701,9 @@ details.rustdoc-toggle > summary.hideme {
 	cursor: pointer;
 }
 
+details.rustdoc-toggle > summary, details.undocumented > summary {
+	list-style: none;
+}
 details.rustdoc-toggle > summary::-webkit-details-marker,
 details.rustdoc-toggle > summary::marker,
 details.undocumented > summary::-webkit-details-marker,
@@ -1763,7 +1770,7 @@ details.rustdoc-toggle[open] > summary.hideme > span {
 }
 
 details.rustdoc-toggle[open] > summary::before {
-	content: "[−]";
+	content: "[-]";
 	display: inline;
 }