Skip to content

Commit

Permalink
Add missing CSS rules for associated types
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 2, 2021
1 parent dfde867 commit 5bd9146
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/librustdoc/html/static/rustdoc.css
Expand Up @@ -110,7 +110,7 @@ h3 {
font-size: 1.3em;
}
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.notable),
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant):not(.associatedtype) {
font-weight: 500;
margin: 20px 0 15px 0;
padding-bottom: 6px;
Expand All @@ -128,18 +128,18 @@ h1.fqn > .in-band > a:hover {
text-decoration: underline;
}
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant):not(.associatedtype) {
border-bottom: 1px solid;
}
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant {
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant, h4.associatedtype {
flex-basis: 100%;
font-weight: 600;
margin-top: 16px;
margin-bottom: 10px;
position: relative;
}
h3.impl, h3.method, h4.method.trait-impl, h3.type,
h4.type.trait-impl, h4.associatedconstant.trait-impl {
h4.type.trait-impl, h4.associatedconstant.trait-impl, h4.associatedtype.trait-impl {
padding-left: 15px;
}

Expand Down Expand Up @@ -599,8 +599,9 @@ h4 > code, h3 > code, .invisible > code {
}

.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant,
.content .impl-items details > summary > .type,
.impl-items details > summary > .associatedconstant {
.impl-items > .associatedtype, .content .impl-items details > summary > .type,
.impl-items details > summary > .associatedconstant,
.impl-items details > summary > .associatedtype {
margin-left: 20px;
}

Expand Down Expand Up @@ -660,7 +661,8 @@ a {
}

.in-band:hover > .anchor, .impl:hover > .anchor, .method.trait-impl:hover > .anchor,
.type.trait-impl:hover > .anchor, .associatedconstant.trait-impl:hover > .anchor {
.type.trait-impl:hover > .anchor, .associatedconstant.trait-impl:hover > .anchor,
.associatedtype.trait-impl:hover > .anchor {
display: inline-block;
position: absolute;
}
Expand Down Expand Up @@ -1470,7 +1472,8 @@ h4 > .notable-traits {
margin-left: 0;
}

.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant,
.impl-items > .associatedtype {
display: flex;
}

Expand Down

0 comments on commit 5bd9146

Please sign in to comment.