diff --git a/404.html b/404.html
index 548b42e..661275f 100644
--- a/404.html
+++ b/404.html
@@ -6,7 +6,6 @@
Page not found - Geometry Script
-
@@ -30,13 +29,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/advanced-scripting.html b/api/advanced-scripting.html
index 1f3cb6e..dad9a71 100644
--- a/api/advanced-scripting.html
+++ b/api/advanced-scripting.html
@@ -5,7 +5,6 @@
Advanced Scripting - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/advanced-scripting/attributes.html b/api/advanced-scripting/attributes.html
index 102354c..31216d6 100644
--- a/api/advanced-scripting/attributes.html
+++ b/api/advanced-scripting/attributes.html
@@ -5,7 +5,6 @@
Attributes - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/advanced-scripting/boolean-math.html b/api/advanced-scripting/boolean-math.html
index bf4e08e..c6340eb 100644
--- a/api/advanced-scripting/boolean-math.html
+++ b/api/advanced-scripting/boolean-math.html
@@ -5,7 +5,6 @@
Boolean Math - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/advanced-scripting/drivers.html b/api/advanced-scripting/drivers.html
index 7986784..80a6b4b 100644
--- a/api/advanced-scripting/drivers.html
+++ b/api/advanced-scripting/drivers.html
@@ -5,7 +5,6 @@
Drivers - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/advanced-scripting/generators.html b/api/advanced-scripting/generators.html
index 1cca92b..3473d67 100644
--- a/api/advanced-scripting/generators.html
+++ b/api/advanced-scripting/generators.html
@@ -5,7 +5,6 @@
Generators - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/advanced-scripting/input-groups.html b/api/advanced-scripting/input-groups.html
index 550af95..521a1c7 100644
--- a/api/advanced-scripting/input-groups.html
+++ b/api/advanced-scripting/input-groups.html
@@ -5,7 +5,6 @@
Input Groups - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/advanced-scripting/node-groups.html b/api/advanced-scripting/node-groups.html
index a37b9ee..e09c345 100644
--- a/api/advanced-scripting/node-groups.html
+++ b/api/advanced-scripting/node-groups.html
@@ -5,7 +5,6 @@
Node Groups - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/basics.html b/api/basics.html
index 61b0c62..71de25b 100644
--- a/api/basics.html
+++ b/api/basics.html
@@ -5,7 +5,6 @@
Basics - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/basics/modules.html b/api/basics/modules.html
index 35699ea..4f35b84 100644
--- a/api/basics/modules.html
+++ b/api/basics/modules.html
@@ -5,7 +5,6 @@
Modules - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/basics/sockets.html b/api/basics/sockets.html
index 36a47fb..8f3284b 100644
--- a/api/basics/sockets.html
+++ b/api/basics/sockets.html
@@ -5,7 +5,6 @@
Sockets - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/basics/tree-functions.html b/api/basics/tree-functions.html
index a16e860..0371e19 100644
--- a/api/basics/tree-functions.html
+++ b/api/basics/tree-functions.html
@@ -5,7 +5,6 @@
Tree Functions - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/api/basics/using-nodes.html b/api/basics/using-nodes.html
index b91f5d1..b128f41 100644
--- a/api/basics/using-nodes.html
+++ b/api/basics/using-nodes.html
@@ -5,7 +5,6 @@
Using Nodes - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/book.js b/book.js
index d40440c..627a368 100644
--- a/book.js
+++ b/book.js
@@ -11,7 +11,7 @@ function playground_text(playground) {
let editor = window.ace.edit(code_block);
return editor.getValue();
} else {
- return code_block.textContent;
+ return code_block.innerText;
}
}
@@ -300,6 +300,13 @@ function playground_text(playground) {
themePopup.querySelector("button#" + get_theme()).focus();
}
+ function updateThemeSelected() {
+ themePopup.querySelectorAll('.theme-selected').forEach(function (el) {
+ el.classList.remove('theme-selected');
+ });
+ themePopup.querySelector("button#" + get_theme()).classList.add('theme-selected');
+ }
+
function hideThemes() {
themePopup.style.display = 'none';
themeToggleButton.setAttribute('aria-expanded', false);
@@ -355,6 +362,7 @@ function playground_text(playground) {
html.classList.remove(previousTheme);
html.classList.add(theme);
+ updateThemeSelected();
}
// Set theme
diff --git a/css/chrome.css b/css/chrome.css
index 10fa4b3..59eae11 100644
--- a/css/chrome.css
+++ b/css/chrome.css
@@ -507,6 +507,8 @@ ul#searchresults span.teaser em {
padding: 0;
list-style: none;
display: none;
+ /* Don't let the children's background extend past the rounded corners. */
+ overflow: hidden;
}
.theme-popup .default {
color: var(--icons);
@@ -515,7 +517,7 @@ ul#searchresults span.teaser em {
width: 100%;
border: 0;
margin: 0;
- padding: 2px 10px;
+ padding: 2px 20px;
line-height: 25px;
white-space: nowrap;
text-align: left;
@@ -527,8 +529,10 @@ ul#searchresults span.teaser em {
.theme-popup .theme:hover {
background-color: var(--theme-hover);
}
-.theme-popup .theme:hover:first-child,
-.theme-popup .theme:hover:last-child {
- border-top-left-radius: inherit;
- border-top-right-radius: inherit;
+
+.theme-selected::before {
+ display: inline-block;
+ content: "✓";
+ margin-left: -14px;
+ width: 14px;
}
diff --git a/css/general.css b/css/general.css
index 0e4f07a..344b53e 100644
--- a/css/general.css
+++ b/css/general.css
@@ -22,8 +22,8 @@ body {
}
code {
- font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace !important;
- font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
+ font-family: var(--mono-font) !important;
+ font-size: var(--code-font-size);
}
/* make long words/inline code not x overflow */
@@ -148,6 +148,18 @@ blockquote {
border-bottom: .1em solid var(--quote-border);
}
+kbd {
+ background-color: var(--table-border-color);
+ border-radius: 4px;
+ border: solid 1px var(--theme-popup-border);
+ box-shadow: inset 0 -1px 0 var(--theme-hover);
+ display: inline-block;
+ font-size: var(--code-font-size);
+ font-family: var(--mono-font);
+ line-height: 10px;
+ padding: 4px 5px;
+ vertical-align: middle;
+}
:not(.footnote-definition) + .footnote-definition,
.footnote-definition + :not(.footnote-definition) {
diff --git a/css/variables.css b/css/variables.css
index 56b634b..21bf8e5 100644
--- a/css/variables.css
+++ b/css/variables.css
@@ -6,6 +6,8 @@
--page-padding: 15px;
--content-max-width: 750px;
--menu-bar-height: 50px;
+ --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
+ --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */
}
/* Themes */
diff --git a/index.html b/index.html
index ffecc53..13e4b19 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,6 @@
Introduction - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/introduction.html b/introduction.html
index ffecc53..13e4b19 100644
--- a/introduction.html
+++ b/introduction.html
@@ -5,7 +5,6 @@
Introduction - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/print.html b/print.html
index 81b1561..f478b7d 100644
--- a/print.html
+++ b/print.html
@@ -6,7 +6,6 @@
Geometry Script
-
@@ -30,13 +29,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/setup/installation.html b/setup/installation.html
index 0733880..febb4a1 100644
--- a/setup/installation.html
+++ b/setup/installation.html
@@ -5,7 +5,6 @@
Installation - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/setup/internal-editing-basics.html b/setup/internal-editing-basics.html
index 2376f19..c2bd2fc 100644
--- a/setup/internal-editing-basics.html
+++ b/setup/internal-editing-basics.html
@@ -5,7 +5,6 @@
Internal Editing Basics - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/tutorials/city-builder.html b/tutorials/city-builder.html
index a24ab8d..828fea9 100644
--- a/tutorials/city-builder.html
+++ b/tutorials/city-builder.html
@@ -5,7 +5,6 @@
City Builder - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/tutorials/voxelize.html b/tutorials/voxelize.html
index 878e67b..882bb51 100644
--- a/tutorials/voxelize.html
+++ b/tutorials/voxelize.html
@@ -5,7 +5,6 @@
Voxelize - Geometry Script
-
@@ -29,13 +28,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+