An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
fix(site): lesson covers, impeccable pass
yzrb53d6e509789
diff --git a/engine/contents.css b/engine/contents.cssindex 5c5a616..5b8be35 100644--- a/engine/contents.css+++ b/engine/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/elementary-algebra/lib/contents.css b/site/elementary-algebra/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/elementary-algebra/lib/contents.css+++ b/site/elementary-algebra/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/joke-collection/lib/contents.css b/site/joke-collection/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/joke-collection/lib/contents.css+++ b/site/joke-collection/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/lib/books.css b/site/lib/books.cssindex cc96421..90c849d 100644--- a/site/lib/books.css+++ b/site/lib/books.css@@ -1,12 +1,17 @@/* Website-only additions to the books' cover and contents (not part of the Papermorph template):the links back to the bookshelf and the "Inspired by" line. Loaded after lib/contents.css. */-.back-shelf { color: var(--dim); font: 13px var(--ui); text-decoration: none; white-space: nowrap; }+.back-shelf { color: var(--dim); font: 13px var(--ui); text-decoration: none; white-space: nowrap; border-radius: 8px; }.back-shelf:hover { color: var(--chalk); }-.cover-back { position: absolute; top: 24px; left: 24px; }-.contents-back { margin-left: 16px; }+/* The padding makes the small link a full-size target; the offsets keep the text where it was. */+.cover-back { position: absolute; top: 10px; inset-inline-start: 14px; padding: 14px 10px; }+.contents-back { padding: 13px 10px; margin: -13px -10px -13px 6px; }.inspiration { max-width: 48em; margin: 22px 0 0; color: var(--dim); font-size: 14px; line-height: 1.6; text-wrap: balance; }.inspiration a { text-decoration-color: var(--faint); text-underline-offset: 3px; }.inspiration a:hover { color: var(--chalk); text-decoration-color: currentColor; }+/* Phones: the title takes the first row of the contents header, the way back and the chapter count share the second. */@media (max-width: 560px) {- .contents-back { margin-left: 0; font-size: 11px; }+ #contents .top:has(.contents-back) { display: grid; grid-template-columns: auto 1fr; }+ #contents .top:has(.contents-back) .home { grid-column: 1 / -1; justify-self: start; }+ .contents-back { grid-row: 2; margin: -13px 0 -13px -10px; }+ #contents .top:has(.contents-back) .prog { grid-row: 2; grid-column: 2; justify-self: end; }}diff --git a/site/linear-algebra/index.html b/site/linear-algebra/index.htmlindex 71f486f..ef33459 100644--- a/site/linear-algebra/index.html+++ b/site/linear-algebra/index.html@@ -8,6 +8,7 @@<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%231d2b27'/%3E%3Ctext x='32' y='45' text-anchor='middle' font-size='48' fill='%23f0b45a'%3E∞%3C/text%3E%3C/svg%3E"><link rel="stylesheet" href="lib/units.css"><link rel="stylesheet" href="lib/contents.css">+<link rel="stylesheet" href="../lib/books.css"><script src="lib/units.js"></script><script src="lib/contents.js"></script><script src="unit-art.js"></script>@@ -43,12 +44,14 @@</div><p class="meta" id="meta"></p><p class="credit">Based on <a href="https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/">MIT OpenCourseWare 18.06, Linear Algebra</a> by Gilbert Strang, used under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>. Retold, redrawn and animated by Papermorph; this book is shared under the same licence. Not affiliated with or endorsed by MIT.</p>+ <a class="back-shelf cover-back" href="../">← Back to the bookshelf</a></section><main id="contents"><header class="top"><a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Linear <i>Algebra</i></strong></a><span class="prog" id="prog"></span>+ <a class="back-shelf contents-back" href="../">← Bookshelf</a></header><div id="units"></div><p class="refs-more" id="refsMore" hidden><a href="#references"><b data-t="references">References</b><span id="refsCount"></span><i data-t="viewAll">View all →</i></a></p>diff --git a/site/linear-algebra/lib/contents.css b/site/linear-algebra/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/linear-algebra/lib/contents.css+++ b/site/linear-algebra/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/little-horse/lib/contents.css b/site/little-horse/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/little-horse/lib/contents.css+++ b/site/little-horse/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/little-red-riding-hood/lib/contents.css b/site/little-red-riding-hood/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/little-red-riding-hood/lib/contents.css+++ b/site/little-red-riding-hood/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/madness-shorts/lib/contents.css b/site/madness-shorts/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/madness-shorts/lib/contents.css+++ b/site/madness-shorts/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/madness/lib/contents.css b/site/madness/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/madness/lib/contents.css+++ b/site/madness/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/math-notebook/lib/contents.css b/site/math-notebook/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/math-notebook/lib/contents.css+++ b/site/math-notebook/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/pandemic-shorts/lib/contents.css b/site/pandemic-shorts/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/pandemic-shorts/lib/contents.css+++ b/site/pandemic-shorts/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/pandemic/lib/contents.css b/site/pandemic/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/pandemic/lib/contents.css+++ b/site/pandemic/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/physics-notebook/index.html b/site/physics-notebook/index.htmlindex 43c47ae..f46c0f0 100644--- a/site/physics-notebook/index.html+++ b/site/physics-notebook/index.html@@ -38,6 +38,8 @@body::before { background: linear-gradient(90deg, transparent 56px, #f2a7b5 56px 58px, transparent 58px),repeating-linear-gradient(180deg, transparent 0 34px, #bfe0ef 34px 35px); }h1 i { font-style: normal; }+/* The marker colours are too light for small text on paper: darken them toward the ink. */+.kicker, .unit h2 .label { color: color-mix(in srgb, var(--c, var(--quiz)) 78%, var(--chalk)); }</style></head><body>diff --git a/site/physics-notebook/lib/contents.css b/site/physics-notebook/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/physics-notebook/lib/contents.css+++ b/site/physics-notebook/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/proteus/lib/contents.css b/site/proteus/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/proteus/lib/contents.css+++ b/site/proteus/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/science/lib/contents.css b/site/science/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/science/lib/contents.css+++ b/site/science/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/shooting-an-elephant/lib/contents.css b/site/shooting-an-elephant/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/shooting-an-elephant/lib/contents.css+++ b/site/shooting-an-elephant/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;diff --git a/site/three-little-pigs/lib/contents.css b/site/three-little-pigs/lib/contents.cssindex 5c5a616..5b8be35 100644--- a/site/three-little-pigs/lib/contents.css+++ b/site/three-little-pigs/lib/contents.css@@ -47,7 +47,7 @@ h1 i { color: var(--task); font-style: italic; }.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }.btn.quiet:hover { border-color: var(--dim); }.btn svg { width: 15px; height: 15px; fill: currentColor; }-.meta { margin: 30px 0 0; color: var(--faint); font-size: 15px; letter-spacing: .04em; }+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 *//* Faint chalk notes around the edges of the board. */.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;