Made the table of contents sticky

This commit is contained in:
Helen Chong 2023-07-15 10:00:53 +08:00
parent 5bee9b54eb
commit f809bbf0de
1 changed files with 7 additions and 5 deletions

View File

@ -31,11 +31,13 @@
<nav></nav> <nav></nav>
<main> <main>
<aside class="left-sidebar"> <aside class="left-sidebar">
<h3 class="sidebar__toc-title">Contents</h3> <div class="sidebar__toc">
<ul class="sidebar__toc-list"> <h3 class="sidebar__toc-title">Contents</h3>
<li><a href="#KotOR1">For <cite>Knights of the Old Republic I</cite></a></li> <ul class="sidebar__toc-list">
<li><a href="#KotOR2">For <cite>Knights of the Old Republic II: The Sith Lords</cite></a></li> <li><a href="#KotOR1">For <cite>Knights of the Old Republic I</cite></a></li>
</ul> <li><a href="#KotOR2">For <cite>Knights of the Old Republic II: The Sith Lords</cite></a></li>
</ul>
</div>
</aside> </aside>
<article> <article>