Skip to content

Commit e802936

Browse files
authored
Rollup merge of #102980 - notriddle:notriddle/content, r=GuillaumeGomez
rustdoc: merge separate `.item-info` CSS Rough timeline: * The longer `.content .item-info` selector originated in 110e727. No reason seems to be given in the PR why it needed the `.content` part, but it was probably added because of <https://github.com/rust-lang/rust/blob/110e7270ab7b0700ce714b8b1c7e509195dea2c4/src/librustdoc/html/static/rustdoc.css#L476-L478>. That selector with the margin-bottom was removed when CSS containment was added in 8846c08. * `.stability` was renamed `.item-info` in caf6c57. * The selector without the `.content` was added in d48a39a.
2 parents 0ace46f + f8da229 commit e802936

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

+3-6
Original file line numberDiff line numberDiff line change
@@ -692,16 +692,13 @@ pre, .rustdoc.source .example-wrap {
692692

693693
.item-info {
694694
display: block;
695+
margin-left: 24px;
695696
}
696697

697-
.content .item-info code {
698+
.item-info code {
698699
font-size: 0.875rem;
699700
}
700701

701-
.content .item-info {
702-
margin-left: 24px;
703-
}
704-
705702
#main-content > .item-info {
706703
margin-top: 0;
707704
margin-left: 0;
@@ -1945,7 +1942,7 @@ in storage.js plus the media query with (min-width: 701px)
19451942
}
19461943

19471944
/* Align summary-nested and unnested item-info gizmos. */
1948-
.content .impl-items > .item-info {
1945+
.impl-items > .item-info {
19491946
margin-left: 34px;
19501947
}
19511948
}

0 commit comments

Comments
 (0)