Skip to content

Commit

Permalink
Rollup merge of rust-lang#104462 - notriddle:notriddle/rightside-padd…
Browse files Browse the repository at this point in the history
…ing-right, r=GuillaumeGomez

rustdoc: remove pointless CSS `.rightside { padding-right: 2px }`

This CSS was added in 34bd2b8, as `.since { padding-right: 2px }`, to prevent it from uncomfortably touching the srclink, which were separate floated elements. It was carried forward with 962c0a4 to the new `.rightside`, but its role was replaced with adding " • " between them. All it does now is pushes the element 2px away from the page's right margin.

Removing this rule changes the page layout, but you have to look for it to notice it.
  • Loading branch information
matthiaskrgr authored Nov 16, 2022
2 parents 2b90e24 + 74969ac commit b57dfaf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,6 @@ so that we can apply CSS-filters to change the arrow color in themes */

.rightside {
padding-left: 12px;
padding-right: 2px;
float: right;
}

Expand Down

0 comments on commit b57dfaf

Please sign in to comment.