Rollup merge of #97249 - GuillaumeGomez:details-summary-fixes, r=notriddle
`<details>`/`<summary>` UI fixes With images it's easier to understand:   The headings in `<summary>` should not have bottom border so I removed it as well alongside the other fixes. r? `@jsha`
This commit is contained in:
@@ -158,8 +158,8 @@ h1.fqn {
|
||||
Underlines elsewhere in the documentation break up visual flow and tend to invert
|
||||
section hierarchies. */
|
||||
h2,
|
||||
.top-doc h3,
|
||||
.top-doc h4 {
|
||||
.top-doc .docblock > h3,
|
||||
.top-doc .docblock > h4 {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
h3.code-header {
|
||||
@@ -1681,6 +1681,11 @@ details.rustdoc-toggle[open] > summary.hideme::after {
|
||||
content: "Collapse";
|
||||
}
|
||||
|
||||
/* This is needed in docblocks to have the "▶" element to be on the same line. */
|
||||
.docblock summary > * {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Media Queries */
|
||||
|
||||
@media (min-width: 701px) {
|
||||
|
||||
Reference in New Issue
Block a user