Skip to content

Commit

Permalink
Rollup merge of #84376 - torhovland:issue-84534, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Uses flex to fix formatting of h1 at any width

Fixes #84354.
  • Loading branch information
Dylan-DPC authored Apr 22, 2021
2 parents 2f438e3 + bb91805 commit 7b6fd61
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
padding-bottom: 6px;
}
h1.fqn {
display: flex;
width: 100%;
border-bottom: 1px dashed;
margin-top: 0;
}
Expand Down Expand Up @@ -458,6 +460,13 @@ nav.sub {
font-weight: normal;
}

h1.fqn > .out-of-band {
float: unset;
flex: 1;
text-align: right;
margin-left: 8px;
}

h3.impl > .out-of-band {
font-size: 21px;
}
Expand Down Expand Up @@ -1450,10 +1459,6 @@ h4 > .notable-traits {
padding: 0;
}

.content .in-band {
width: 100%;
}

.content h4 > .out-of-band {
position: inherit;
}
Expand Down

0 comments on commit 7b6fd61

Please sign in to comment.