]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #85256 - GuillaumeGomez:fix-implementors-display, r=notriddle
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 15 May 2021 11:29:53 +0000 (13:29 +0200)
committerGitHub <noreply@github.com>
Sat, 15 May 2021 11:29:53 +0000 (13:29 +0200)
Fix display for "implementors" section

Just saw this problem when going through docs:

![Screenshot from 2021-05-13 15-20-52](https://user-images.githubusercontent.com/3050060/118131978-766fc180-b3ff-11eb-86a8-7f6d22afa675.png)

This fix puts it back to normal:

![Screenshot from 2021-05-13 15-23-29](https://user-images.githubusercontent.com/3050060/118132006-7e2f6600-b3ff-11eb-9985-025a7b7c5216.png)

You can see it on the `TryFrom` page for example.

r? ```@Nemo157```

src/librustdoc/html/static/rustdoc.css

index 1b7eff4604f5f9f694a0e9d671bce9f541b33e56..073fc217f18ac13f75225481d2827b37b7ae20d0 100644 (file)
@@ -542,7 +542,7 @@ h4 > code, h3 > code, .invisible > code {
        font-size: 0.8em;
 }
 
-.content .methods > div:not(.notable-traits) {
+.content .methods > div:not(.notable-traits):not(.methods) {
        margin-left: 40px;
        margin-bottom: 15px;
 }