diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-17 23:44:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-17 23:44:27 +0100 |
| commit | 2835b668d90216e41a7f59fbf95ef17b61c3325b (patch) | |
| tree | 6b08c055d1cc2412234f86e7063e85042c374268 | |
| parent | c6be9a705ffac50b87166bc2ab95647fba34da04 (diff) | |
| parent | f309934b5ee074a74229546d859252dd7e946b2d (diff) | |
| download | rust-2835b668d90216e41a7f59fbf95ef17b61c3325b.tar.gz rust-2835b668d90216e41a7f59fbf95ef17b61c3325b.zip | |
Rollup merge of #105789 - notriddle:notriddle/examples-margin, r=GuillaumeGomez
rustdoc: clean up margin CSS for scraped examples * This stops applying a margin to the additional example links. Because these links are `display: inline`, it doesn't actually do anything. * This switches from using a margin-bottom with a special exception for the examples themselves, plus an additional margin on the hide button, to instead using just margin-top on the examples, with an exception for the first one. No user-visible changes should result from this.
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index a65bec37e1d..022ed606cc3 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -2003,7 +2003,6 @@ in storage.js .more-examples-toggle .hide-more { margin-left: 25px; - margin-bottom: 5px; cursor: pointer; } @@ -2031,16 +2030,12 @@ in storage.js height: 100%; } -.more-scraped-examples .scraped-example { - margin-bottom: 20px; -} - -.more-scraped-examples .scraped-example:last-child { - margin-bottom: 0; +.more-scraped-examples .scraped-example, .example-links { + margin-top: 20px; } -.example-links a { - margin-top: 20px; +.more-scraped-examples .scraped-example:first-child { + margin-top: 5px; } .example-links ul { |
