Skip to content

Commit

Permalink
Rollup merge of #102367 - notriddle:notriddle/help-text-align, r=Guil…
Browse files Browse the repository at this point in the history
…laumeGomez

rustdoc: remove redundant `#help-button` CSS

When the separate top and bottom styles were added in cd3f4da, some of the CSS rules were needlessly duplicated.

The `text-align: initial` rule on `.side-by-side` was always redundant, since the rules that centered the text were set on children, not parents.
  • Loading branch information
matthiaskrgr authored Sep 27, 2022
2 parents 3ca0cd0 + 3bbb328 commit 5971b1a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,6 @@ so that we can apply CSS-filters to change the arrow color in themes */
font-size: 1.125rem;
}
#help-button span.top {
text-align: center;
display: block;
margin: 10px 0;
border-bottom: 1px solid var(--border-color);
padding-bottom: 4px;
Expand All @@ -1036,9 +1034,6 @@ so that we can apply CSS-filters to change the arrow color in themes */
clear: both;
border-top: 1px solid var(--border-color);
}
.side-by-side {
text-align: initial;
}
.side-by-side > div {
width: 50%;
float: left;
Expand Down

0 comments on commit 5971b1a

Please sign in to comment.