I made a new implementation of the XML/Java toggle (and added a third choice for having both available). Changes to make a dynamic ToC work with content selection toggles Various asciidoc and JavaScript changes to make the dynamic ToC (tocbot) work with the content toggle (XML or Java in this case but also more options in other projects).
16 lines
500 B
HTML
16 lines
500 B
HTML
<style>
|
|
#tocbot a.toc-link.node-name--H1{ font-style: italic }
|
|
@media screen{
|
|
#tocbot > ul.toc-list{ margin-bottom: 0.5em; margin-left: 0.125em }
|
|
#tocbot ul.sectlevel0, #tocbot a.toc-link.node-name--H1 + ul{
|
|
padding-left: 0 }
|
|
#tocbot a.toc-link{ height:100% }
|
|
.is-collapsible{ max-height:3000px; overflow:hidden; }
|
|
.is-collapsed{ max-height:0 }
|
|
.is-active-link{ font-weight:700 }
|
|
}
|
|
@media print{
|
|
#tocbot a.toc-link.node-name--H4{ display:none }
|
|
}
|
|
</style>
|