Skip to content

Commit f309934

Browse files
committed
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.
1 parent 03770f0 commit f309934

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/librustdoc/html/static/css/rustdoc.css

+4-9
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,6 @@ in storage.js
20092009

20102010
.more-examples-toggle .hide-more {
20112011
margin-left: 25px;
2012-
margin-bottom: 5px;
20132012
cursor: pointer;
20142013
}
20152014

@@ -2037,16 +2036,12 @@ in storage.js
20372036
height: 100%;
20382037
}
20392038

2040-
.more-scraped-examples .scraped-example {
2041-
margin-bottom: 20px;
2042-
}
2043-
2044-
.more-scraped-examples .scraped-example:last-child {
2045-
margin-bottom: 0;
2039+
.more-scraped-examples .scraped-example, .example-links {
2040+
margin-top: 20px;
20462041
}
20472042

2048-
.example-links a {
2049-
margin-top: 20px;
2043+
.more-scraped-examples .scraped-example:first-child {
2044+
margin-top: 5px;
20502045
}
20512046

20522047
.example-links ul {

0 commit comments

Comments
 (0)