Skip to content

Commit 2835b66

Browse files
authored
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.
2 parents c6be9a7 + f309934 commit 2835b66

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
@@ -2003,7 +2003,6 @@ in storage.js
20032003

20042004
.more-examples-toggle .hide-more {
20052005
margin-left: 25px;
2006-
margin-bottom: 5px;
20072006
cursor: pointer;
20082007
}
20092008

@@ -2031,16 +2030,12 @@ in storage.js
20312030
height: 100%;
20322031
}
20332032

2034-
.more-scraped-examples .scraped-example {
2035-
margin-bottom: 20px;
2036-
}
2037-
2038-
.more-scraped-examples .scraped-example:last-child {
2039-
margin-bottom: 0;
2033+
.more-scraped-examples .scraped-example, .example-links {
2034+
margin-top: 20px;
20402035
}
20412036

2042-
.example-links a {
2043-
margin-top: 20px;
2037+
.more-scraped-examples .scraped-example:first-child {
2038+
margin-top: 5px;
20442039
}
20452040

20462041
.example-links ul {

0 commit comments

Comments
 (0)