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 @@

-
-

Table of Contents

-
-
-
-
-
- - - +
+
+
+

TOC

+
+
-
- - - +
+
+
+
+ + + +
+
+ + + +
+
diff --git a/layouts/monthly.shtml b/layouts/monthly.shtml index 06a3d9c..981189b 100644 --- a/layouts/monthly.shtml +++ b/layouts/monthly.shtml @@ -1,6 +1,6 @@ - +
- \ No newline at end of file +
\ No newline at end of file diff --git a/layouts/page.shtml b/layouts/page.shtml index 06a3d9c..981189b 100644 --- a/layouts/page.shtml +++ b/layouts/page.shtml @@ -1,6 +1,6 @@ - +
- \ No newline at end of file +
\ No newline at end of file diff --git a/layouts/post.shtml b/layouts/post.shtml index af26f52..2dcd8d5 100644 --- a/layouts/post.shtml +++ b/layouts/post.shtml @@ -14,6 +14,6 @@ - +
- +
diff --git a/layouts/templates/content.shtml b/layouts/templates/content.shtml index 45c2603..7644cae 100644 --- a/layouts/templates/content.shtml +++ b/layouts/templates/content.shtml @@ -19,21 +19,27 @@ -
-

TOC

-
-
- -
-
- - - +
+
+
+

TOC

+
+
-
- - - +
+ +
+
+ + + +
+
+ + + +
+