Style tab wrap table of contents

This commit is contained in:
Leilukin 2024-12-09 13:01:49 +08:00 committed by Helen Chong
parent 57f435a66a
commit ea2f7069e1
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 */