Parts V to IX in the book, extension 2.9.1, Demo topics
Add chapters 05-08 to the three language profiles: the published book stopped at Part IV because only 00-04 were listed. Rename the MQTT topic root Tutorial/ to Demo/ in Part IX (code and output included). Shared notes extension 2.9.1: dependency folders are named after the extension version, so browsers stop serving stale scripts after an update. Full rebuild of _book/ (HTML and PDF, three languages); remove the stray site_libs/ that the last Deploy commit had added at the project root. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
01f681165f
commit
f047b9c7ae
128 files changed
+18893
-7591
No files matched your search
@@ -0,0 +1,115 @@
|
||||
/* calc-notes — HTML layout for the calc / calc* environments */
|
||||
|
||||
.calc {
|
||||
display: grid;
|
||||
/* lhs | rhs | notes | equation number */
|
||||
grid-template-columns: max-content max-content minmax(8rem, 1fr) auto;
|
||||
column-gap: 0.35rem;
|
||||
row-gap: 0.6rem;
|
||||
align-items: baseline;
|
||||
margin: 1rem 0 1.4rem;
|
||||
/* allow horizontal scrolling for very wide equations, but never show a
|
||||
vertical bar (Firefox computes phantom vertical overflow otherwise) */
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
padding-bottom: 0.4em; /* keep descenders clear of a horizontal bar */
|
||||
}
|
||||
|
||||
.calc-row { display: contents; }
|
||||
|
||||
.calc-lhs { grid-column: 1; justify-self: end; }
|
||||
.calc-rhs { grid-column: 2; justify-self: start; }
|
||||
.calc-full { grid-column: 1 / 3; justify-self: start; }
|
||||
|
||||
/* ---- notes ------------------------------------------------------- */
|
||||
|
||||
.calc-notes {
|
||||
grid-column: 3;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.35rem 0.75rem;
|
||||
align-items: baseline;
|
||||
min-width: 0;
|
||||
padding-left: 0.9rem;
|
||||
}
|
||||
|
||||
.calc-note {
|
||||
color: var(--calc-notecolor, #B45309);
|
||||
font-size: 0.85em;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.calc-note > summary {
|
||||
cursor: pointer;
|
||||
list-style: none; /* remove the default triangle ... */
|
||||
user-select: none;
|
||||
font-style: italic; /* quiet by style and --calc-muted (theme.css), not by
|
||||
opacity, which took it under 4.5:1 */
|
||||
}
|
||||
.calc-note > summary::-webkit-details-marker { display: none; }
|
||||
.calc-note > summary::before { content: "▸ "; font-style: normal; }
|
||||
.calc-note[open] > summary::before { content: "▾ "; }
|
||||
.calc-note > summary:hover { opacity: 1; }
|
||||
|
||||
.calc-note[open] {
|
||||
background: color-mix(in srgb, var(--calc-notecolor, #B45309) 8%, transparent);
|
||||
border-left: 2px solid var(--calc-notecolor, #B45309);
|
||||
border-radius: 0.25rem;
|
||||
padding: 0.15rem 0.45rem;
|
||||
}
|
||||
|
||||
.calc-note-body { margin-top: 0.1rem; }
|
||||
.calc-note-body p { margin: 0; }
|
||||
|
||||
/* \mnote: math note (no extra styling needed — body is typeset math) */
|
||||
.calc-note-math .calc-note-body { padding: 0.1rem 0; }
|
||||
|
||||
/* ---- calc*: boxed final result ----------------------------------- */
|
||||
|
||||
.calc-box {
|
||||
display: inline-block;
|
||||
border: 1.5px solid currentColor;
|
||||
border-radius: 0.3em;
|
||||
padding: 0.3em 0.65em;
|
||||
margin-top: 0.15em;
|
||||
background: color-mix(in srgb, currentColor 4%, transparent);
|
||||
}
|
||||
|
||||
/* ---- labelled blocks: equation number on the last line ----------- */
|
||||
|
||||
.calc-tag {
|
||||
grid-column: 4;
|
||||
justify-self: end;
|
||||
padding-left: 1rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ---- printing: show notes unfolded, like the PDF ------------------ */
|
||||
|
||||
@media print {
|
||||
.calc-note > summary { display: none; }
|
||||
.calc-note[open] { background: none; border: none; padding: 0; }
|
||||
}
|
||||
|
||||
/* small screens: notes drop under the equation line */
|
||||
@media (max-width: 560px) {
|
||||
.calc { grid-template-columns: max-content 1fr; }
|
||||
.calc-notes { grid-column: 1 / 3; padding-left: 1.5rem; }
|
||||
.calc-full { grid-column: 1 / 3; }
|
||||
.calc-tag { grid-column: 1 / -1; }
|
||||
}
|
||||
|
||||
/* --- interactive figures ------------------------------------------------
|
||||
A figure that is dragged — a rotatable 3d view, a point moved with the
|
||||
mouse — must not select its own labels while the pointer travels over
|
||||
them: the browser would paint the axis names and captions as selected
|
||||
text. The readouts and captions around the drawing stay selectable, so a
|
||||
value can still be copied. The hooks are the ones every course's figure
|
||||
scripts build into. */
|
||||
[data-notes-fig] svg,
|
||||
[data-notes-plot] svg,
|
||||
[data-notes-fig] canvas,
|
||||
[data-notes-plot] canvas {
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
Reference in new issue
Block a user