Skip to content

Commit

Permalink
Create new CSS class for "big toggles"
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 15, 2024
1 parent fbc794f commit a868b3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ fn render_assoc_items_inner(
let id =
cx.derive_id(small_url_encode(format!("deref-methods-{:#}", type_.print(cx))));
let derived_id = cx.derive_id(&id);
tmp_buf.write_str("<details class=\"toggle implementors-toggle\" open><summary>");
tmp_buf.write_str("<details class=\"toggle big-toggle\" open><summary>");
close_tags.push("</details>");
write_impl_section_heading(
&mut tmp_buf,
Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ details.toggle {
position: relative;
}

details.implementors-toggle {
details.big-toggle {
/* This makes [-] on the same line as <summary>. */
contain: inline-size;
}
Expand Down Expand Up @@ -1828,7 +1828,7 @@ details.toggle > summary:not(.hideme)::before {
left: -24px;
}

details.implementors-toggle > summary:not(.hideme)::before {
details.big-toggle > summary:not(.hideme)::before {
left: -34px;
top: 9px;
}
Expand Down

0 comments on commit a868b3f

Please sign in to comment.