Style tab wrap table of contents

This commit is contained in:
Helen Chong 2024-12-09 13:01:49 +08:00
parent 3af0b933db
commit c85b5b7dc9
2 changed files with 9 additions and 2 deletions

View File

@ -30,8 +30,10 @@ isContentDivided: true
{% headingAnchor 2 %}{{ group.data.title }}{% endheadingAnchor %}
{% if group.data.toc %}
<div class="tabwrap__toc">
<h3>Table of Contents</h3>
{{ group.templateContent | toc | safe }}
</div>
{% endif %}
{{ group.templateContent | safe }}

View File

@ -195,6 +195,11 @@ p + .adoptables { margin-top: 1em; }
outline: 0.2em solid var(--clr-title-border);
outline-offset: 0.15em;
}
.tabwrap__toc {
background-color: var(--clr-quote-bg);
padding: 1em 1em 0.5em;
}
.tab__back { margin-top: 3em; }
/* Web ring */