Skip to content

Commit 1f84bff

Browse files
Fix display of small-section-header elements
1 parent ac8c3bf commit 1f84bff

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/librustdoc/html/render/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ fn render_assoc_items(
10271027
write!(
10281028
w,
10291029
"<h2 id=\"deref-methods\" class=\"small-section-header\">\
1030-
Methods from {trait_}&lt;Target = {type_}&gt;\
1030+
<span>Methods from {trait_}&lt;Target = {type_}&gt;</span>\
10311031
<a href=\"#deref-methods\" class=\"anchor\"></a>\
10321032
</h2>",
10331033
trait_ = trait_.print(cx),

src/librustdoc/html/static/css/rustdoc.css

-5
Original file line numberDiff line numberDiff line change
@@ -1092,11 +1092,6 @@ a.test-arrow:hover{
10921092
left: -10px;
10931093
}
10941094

1095-
#main > .variant, #main > .structfield {
1096-
display: block;
1097-
}
1098-
1099-
11001095
:target > code {
11011096
opacity: 1;
11021097
}

0 commit comments

Comments
 (0)