Skip to content

Commit

Permalink
rustdoc: Make toggle marker on the same line with <summary>
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jul 8, 2024
1 parent 2089bd2 commit c71ffcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,11 @@ details.toggle {
position: relative;
}

details.implementors-toggle {
/* This makes [-] on the same line as <summary>. */
contain: inline-size;
}

/* The hideme class is used on summary tags that contain a span with
placeholder text shown only when the toggle is closed. For instance,
"Expand description" or "Show methods". */
Expand Down

0 comments on commit c71ffcc

Please sign in to comment.