Skip to content

Commit 5bd9146

Browse files
Add missing CSS rules for associated types
1 parent dfde867 commit 5bd9146

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/librustdoc/html/static/rustdoc.css

+11-8
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ h3 {
110110
font-size: 1.3em;
111111
}
112112
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.notable),
113-
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
113+
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant):not(.associatedtype) {
114114
font-weight: 500;
115115
margin: 20px 0 15px 0;
116116
padding-bottom: 6px;
@@ -128,18 +128,18 @@ h1.fqn > .in-band > a:hover {
128128
text-decoration: underline;
129129
}
130130
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
131-
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
131+
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant):not(.associatedtype) {
132132
border-bottom: 1px solid;
133133
}
134-
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant {
134+
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant, h4.associatedtype {
135135
flex-basis: 100%;
136136
font-weight: 600;
137137
margin-top: 16px;
138138
margin-bottom: 10px;
139139
position: relative;
140140
}
141141
h3.impl, h3.method, h4.method.trait-impl, h3.type,
142-
h4.type.trait-impl, h4.associatedconstant.trait-impl {
142+
h4.type.trait-impl, h4.associatedconstant.trait-impl, h4.associatedtype.trait-impl {
143143
padding-left: 15px;
144144
}
145145

@@ -599,8 +599,9 @@ h4 > code, h3 > code, .invisible > code {
599599
}
600600

601601
.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant,
602-
.content .impl-items details > summary > .type,
603-
.impl-items details > summary > .associatedconstant {
602+
.impl-items > .associatedtype, .content .impl-items details > summary > .type,
603+
.impl-items details > summary > .associatedconstant,
604+
.impl-items details > summary > .associatedtype {
604605
margin-left: 20px;
605606
}
606607

@@ -660,7 +661,8 @@ a {
660661
}
661662

662663
.in-band:hover > .anchor, .impl:hover > .anchor, .method.trait-impl:hover > .anchor,
663-
.type.trait-impl:hover > .anchor, .associatedconstant.trait-impl:hover > .anchor {
664+
.type.trait-impl:hover > .anchor, .associatedconstant.trait-impl:hover > .anchor,
665+
.associatedtype.trait-impl:hover > .anchor {
664666
display: inline-block;
665667
position: absolute;
666668
}
@@ -1470,7 +1472,8 @@ h4 > .notable-traits {
14701472
margin-left: 0;
14711473
}
14721474

1473-
.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
1475+
.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant,
1476+
.impl-items > .associatedtype {
14741477
display: flex;
14751478
}
14761479

0 commit comments

Comments
 (0)