Skip to content

Commit

Permalink
Rollup merge of rust-lang#102980 - notriddle:notriddle/content, r=Gui…
Browse files Browse the repository at this point in the history
…llaumeGomez

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.
  • Loading branch information
JohnTitor authored Oct 13, 2022
2 parents 0ace46f + f8da229 commit e802936
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -692,16 +692,13 @@ pre, .rustdoc.source .example-wrap {

.item-info {
display: block;
margin-left: 24px;
}

.content .item-info code {
.item-info code {
font-size: 0.875rem;
}

.content .item-info {
margin-left: 24px;
}

#main-content > .item-info {
margin-top: 0;
margin-left: 0;
Expand Down Expand Up @@ -1945,7 +1942,7 @@ in storage.js plus the media query with (min-width: 701px)
}

/* Align summary-nested and unnested item-info gizmos. */
.content .impl-items > .item-info {
.impl-items > .item-info {
margin-left: 34px;
}
}
Expand Down

0 comments on commit e802936

Please sign in to comment.