Create new CSS class for "big toggles"

This commit is contained in:
Guillaume Gomez 2024-07-15 18:10:26 +02:00
parent fbc794fe1e
commit a868b3fce7
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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;
}
@ -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;
}