Skip to content

Commit

Permalink
rustdoc: remove redundant #help-button CSS
Browse files Browse the repository at this point in the history
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
notriddle committed Sep 27, 2022
1 parent 57ee5cf commit 3bbb328
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 @@ -1019,8 +1019,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 @@ -1030,9 +1028,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 3bbb328

Please sign in to comment.