Skip to content

Commit a868b3f

Browse files
Create new CSS class for "big toggles"
1 parent fbc794f commit a868b3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/render/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ fn render_assoc_items_inner(
12671267
let id =
12681268
cx.derive_id(small_url_encode(format!("deref-methods-{:#}", type_.print(cx))));
12691269
let derived_id = cx.derive_id(&id);
1270-
tmp_buf.write_str("<details class=\"toggle implementors-toggle\" open><summary>");
1270+
tmp_buf.write_str("<details class=\"toggle big-toggle\" open><summary>");
12711271
close_tags.push("</details>");
12721272
write_impl_section_heading(
12731273
&mut tmp_buf,

src/librustdoc/html/static/css/rustdoc.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ details.toggle {
17331733
position: relative;
17341734
}
17351735

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

1831-
details.implementors-toggle > summary:not(.hideme)::before {
1831+
details.big-toggle > summary:not(.hideme)::before {
18321832
left: -34px;
18331833
top: 9px;
18341834
}

0 commit comments

Comments
 (0)