diff --git a/book.toml b/book.toml
index c7a4a96c..a9bcbe5c 100644
--- a/book.toml
+++ b/book.toml
@@ -10,4 +10,4 @@ edit-url-template = "https://github.com/uqbar-dao/kinode-book/edit/main/{path}"
[output.html.fold]
enable = true
-level = 0
\ No newline at end of file
+level = 1
\ No newline at end of file
diff --git a/theme/book.js b/theme/book.js
index aa12e7ec..b48f243d 100644
--- a/theme/book.js
+++ b/theme/book.js
@@ -305,7 +305,10 @@ function playground_text(playground, hidden = true) {
themePopup.querySelectorAll('.theme-selected').forEach(function (el) {
el.classList.remove('theme-selected');
});
- themePopup.querySelector("button#" + get_theme()).classList.add('theme-selected');
+ const theme = themePopup.querySelector("button#" + get_theme())
+ if (theme && theme.classList) {
+ theme.classList.add('theme-selected');
+ }
}
function hideThemes() {
diff --git a/theme/css/chrome.css b/theme/css/chrome.css
index e6ed4e8d..c0d48d2d 100644
--- a/theme/css/chrome.css
+++ b/theme/css/chrome.css
@@ -153,6 +153,9 @@ a > .hljs {
flex-direction: column;
transition: color 0.5s, background-color 0.5s;
+
+ margin: calc(6 * var(--page-padding)) var(--page-padding);
+ border-radius: var(--page-padding);
}
.nav-chapters:hover {
@@ -561,11 +564,11 @@ ul#searchresults span.teaser em {
opacity: 0.68;
position: absolute;
left: -2em;
- color: var(--links);
+ color: var(--sidebar-fg);
}
.chapter li > a.toggle div {
- transition: transform 0.5s;
+ transition: all 0.5s;
}
/* collapse the section */
@@ -581,6 +584,7 @@ ul#searchresults span.teaser em {
.chapter li.expanded > a.toggle div {
transform: rotate(90deg);
+ color: var(--links);
}
.spacer {
@@ -667,4 +671,8 @@ ul#searchresults span.teaser em {
h1 {
font-size: 3em;
}
+
+ .nav-chapters {
+ margin: 0;
+ }
}
diff --git a/theme/index.hbs b/theme/index.hbs
index 505653ba..472e1707 100644
--- a/theme/index.hbs
+++ b/theme/index.hbs
@@ -21,9 +21,9 @@
-
-
-
+
+
+
{{#if print_enable}}
{{/if}}
@@ -315,8 +315,8 @@
{{/if}}
-
-
+
+
{{#each additional_js}}