Rollup merge of #91223 - GuillaumeGomez:headings-indent, r=jsha
Fix headings indent Fixes #91200. Screenshots with the fix:   If the first element of a top docblock is a heading, we still need to keep the indent, but only on this one (I added a test to check it). We need it because otherwise the anchor will go over the `[-]` toggle. cc `@camelid` r? `@jsha`
This commit is contained in:
commit
330a558e42
3 changed files with 53 additions and 5 deletions
|
|
@ -1129,13 +1129,15 @@ h3.variant {
|
|||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.docblock > .section-header:first-child {
|
||||
.top-doc .docblock > .section-header:first-child {
|
||||
margin-left: 15px;
|
||||
margin-top: 0;
|
||||
}
|
||||
.top-doc .docblock > .section-header:first-child:hover > a:before {
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
.docblock > .section-header:first-child:hover > a:before {
|
||||
left: -10px;
|
||||
.docblock > .section-header:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
:target > code, :target > .code-header {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue