Skip to content

Commit 46314f7

Browse files
Rollup merge of #86903 - GuillaumeGomez:small-header-display, r=Nemo157
Fix small headers display You can see it on the `IoSlice` or on the `ErrorKind` pages. Before: ![Screenshot from 2021-07-06 15-26-33](https://user-images.githubusercontent.com/3050060/124610344-b50a8100-de70-11eb-8ab4-ac5de8adf18f.png) ![Screenshot from 2021-07-08 17-51-43](https://user-images.githubusercontent.com/3050060/124953436-7235de00-e015-11eb-9f99-b361c7eb41a9.png) After: ![Screenshot from 2021-07-08 17-48-42](https://user-images.githubusercontent.com/3050060/124953042-12d7ce00-e015-11eb-8132-1ae4552dd969.png) ![Screenshot from 2021-07-08 17-48-47](https://user-images.githubusercontent.com/3050060/124953052-13706480-e015-11eb-89f8-dab96c2f0f63.png) r? `@Nemo157`
2 parents d85718a + 1f84bff commit 46314f7

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)