Skip to content

Commit f8da229

Browse files
committed
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.
1 parent 538f118 commit f8da229

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -694,16 +694,13 @@ pre, .rustdoc.source .example-wrap {
694694

695695
.item-info {
696696
display: block;
697+
margin-left: 24px;
697698
}
698699

699-
.content .item-info code {
700+
.item-info code {
700701
font-size: 0.875rem;
701702
}
702703

703-
.content .item-info {
704-
margin-left: 24px;
705-
}
706-
707704
#main-content > .item-info {
708705
margin-top: 0;
709706
margin-left: 0;
@@ -1948,7 +1945,7 @@ in storage.js plus the media query with (min-width: 701px)
19481945
}
19491946

19501947
/* Align summary-nested and unnested item-info gizmos. */
1951-
.content .impl-items > .item-info {
1948+
.impl-items > .item-info {
19521949
margin-left: 34px;
19531950
}
19541951
}

0 commit comments

Comments
 (0)