Skip to content

Commit 20eda22

Browse files
Update the first heading indent rule so it is only applied on the first heading of the top doc block
1 parent 6d246f0 commit 20eda22

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,15 +1129,17 @@ h3.variant {
11291129
margin-top: 3px;
11301130
}
11311131

1132-
.docblock > .section-header:first-child {
1132+
.top-doc .docblock > .section-header:first-child {
11331133
margin-left: 15px;
1134-
margin-top: 0;
11351134
}
1136-
1137-
.docblock > .section-header:first-child:hover > a:before {
1135+
.top-doc .docblock > .section-header:first-child:hover > a:before {
11381136
left: -10px;
11391137
}
11401138

1139+
.docblock > .section-header:first-child {
1140+
margin-top: 0;
1141+
}
1142+
11411143
:target > code, :target > .code-header {
11421144
opacity: 1;
11431145
}

0 commit comments

Comments
 (0)