diff --git a/assets/style.css b/assets/style.css index 5cbeec4..c5fa064 100644 --- a/assets/style.css +++ b/assets/style.css @@ -236,3 +236,43 @@ html { h1{ margin-bottom: 0; } + +/* Sidebar Layout */ +.content-wrapper { + display: flex; + flex-direction: column; +} + +@media screen and (min-width: 1200px) { + body { + max-width: 80vw; + } + + .content-wrapper { + flex-direction: row; + align-items: stretch; + gap: 2rem; + } + + .main-content { + flex: 1; + min-width: 0; + } + + .toc-sidebar { + width: 250px; + flex-shrink: 0; + order: 2; + border-left: 1px solid var(--border); + padding-left: 1rem; + font-size: 0.9em; + } + + .toc-sticky { + position: sticky; + top: 50%; + transform: translateY(-50%); + max-height: 90vh; + overflow-y: auto; + } +} \ No newline at end of file diff --git a/layouts/learn.shtml b/layouts/learn.shtml index 70ae568..5e5789c 100644 --- a/layouts/learn.shtml +++ b/layouts/learn.shtml @@ -3,21 +3,27 @@
-