Use an icon for ToC expand toggle
This commit is contained in:
parent
6669ba7fe1
commit
cb2221cbf8
2 changed files with 2 additions and 5 deletions
|
@ -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"):
|
||||
|
|
|
@ -46,9 +46,6 @@
|
|||
blockquote.crafting-info {
|
||||
font-size: inherit;
|
||||
}
|
||||
a.toggle-link {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
a.permalink {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue