about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-01 11:29:45 +0200
committerGitHub <noreply@github.com>2021-06-01 11:29:45 +0200
commit82b84bfca4e09dec079ce573bb594c9ca42029f7 (patch)
treee149208ec92f97d1d700dbe39c3225611a0d4f56 /src
parentf4d3f32f4529adc9709ee11fd062b49332d36096 (diff)
parent2970479412783b39aab3792525cb926a609a2d3c (diff)
downloadrust-82b84bfca4e09dec079ce573bb594c9ca42029f7.tar.gz
rust-82b84bfca4e09dec079ce573bb594c9ca42029f7.zip
Rollup merge of #85860 - pickfire:patch-5, r=GuillaumeGomez
Fix details rustdoc toggle for blanket impl

In the meantime, allow all of the details to have the same top.

Before

![image](https://user-images.githubusercontent.com/4687791/120214139-a673ed00-c266-11eb-9154-3a8148199c8f.png)
![image](https://user-images.githubusercontent.com/4687791/120214232-c5727f00-c266-11eb-8bda-871e6e04819e.png)

After

![image](https://user-images.githubusercontent.com/4687791/120214121-9d831b80-c266-11eb-8c33-db1317c42375.png)
![image](https://user-images.githubusercontent.com/4687791/120214273-d4f1c800-c266-11eb-89ee-0f2b7c2e5bdb.png)

I stumbled across this while wanting to do a details button for the layout.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/rustdoc.css3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index f3866e211d9..2623ff27a25 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1468,13 +1468,12 @@ details.rustdoc-toggle > summary.hideme::before {
 details.rustdoc-toggle > summary:not(.hideme)::before {
 	position: absolute;
 	left: -23px;
-	top: initial;
+	top: 3px;
 }
 
 .impl-items > details.rustdoc-toggle > summary:not(.hideme)::before,
 .undocumented > details.rustdoc-toggle > summary:not(.hideme)::before {
 	position: absolute;
-	top: 3px;
 	left: -2px;
 }