Make the sidebar table of contents sticky

This commit is contained in:
Helen Chong 2023-06-27 07:36:54 +08:00
parent 74878a03aa
commit d669138660
1 changed files with 8 additions and 6 deletions

View File

@ -30,12 +30,14 @@
<header-component></header-component> <header-component></header-component>
<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="#Introduction">Introduction</a></li> <ul class="sidebar__toc-list">
<li><a href="#Mechanics">The Mechanics of Redeeming Bastila</a></li> <li><a href="#Introduction">Introduction</a></li>
<li><a href="#Walkthrough">Dialogue Walkthrough</a></li> <li><a href="#Mechanics">The Mechanics of Redeeming Bastila</a></li>
</ul> <li><a href="#Walkthrough">Dialogue Walkthrough</a></li>
</ul>
</div>
</aside> </aside>
<article> <article>