Use an icon for ToC expand toggle

This commit is contained in:
Alwinfy 2022-08-13 16:40:44 -04:00
parent 6669ba7fe1
commit cb2221cbf8
No known key found for this signature in database
GPG key ID: 2CCB99445F0C949E
2 changed files with 2 additions and 5 deletions

View file

@ -522,9 +522,9 @@ def write_category(out, book, category):
def write_toc(out, book):
with out.pair_tag("h2", id="table-of-contents", clazz="page-header"):
out.text("Table of Contents")
with out.pair_tag("a", href="javascript:void(0)", clazz="toggle-link small", data_target="toc-category"):
out.text("(toggle all)")
permalink(out, "#table-of-contents")
with out.pair_tag("a", href="javascript:void(0)", clazz="permalink toggle-link small", data_target="toc-category", title="Toggle all"):
out.empty_pair_tag("i", clazz="bi bi-list-nested")
for category in book["categories"]:
with out.pair_tag("details", clazz="toc-category"):
with out.pair_tag("summary"):

View file

@ -46,9 +46,6 @@
blockquote.crafting-info {
font-size: inherit;
}
a.toggle-link {
margin-left: 0.5em;
}
a.permalink {
margin-left: 0.5em;
}