Rename book to Process Control

This commit is contained in:
MatsuneMikuroi committed 2026-09-29 12:34:56 +02:00
1 parent 919e79eb2a
commit afb816f459
53 files changed
+5587 -503

No files matched your search

@@ -0,0 +1,316 @@
/* high-contrast.css — the high-contrast pair, taken from GitHub's
"GitHub Light High Contrast" and "GitHub Dark High Contrast" VS Code
themes (the Primer `light_high_contrast` / `dark_high_contrast` scales).
It is switched by `hc` on <html>, which calc-notes.lua sets from
high-contrast: true
in the document metadata, and which the same in-header script sets for a
reader whose system asks for `prefers-contrast: more`. One class rather
than a class and a media query, so the palette below is written once.
It rides on top of the ordinary light/dark pair: `html.hc` restyles the
light theme, `html.hc body.quarto-dark` the night one, so the reader's own
light/dark toggle keeps working.
GitHub's two high-contrast themes separate things by outline rather than by
fill: text sits at full strength (fg.muted == fg.default), borders are
strong, and the tinted panels of the ordinary themes lose their tint. The
rules here do the same to the notes environments. */
/* ---------------------------------------------------------------- light -- */
html.hc {
/* Primer light_high_contrast */
--hc-canvas: #ffffff; /* canvas.default */
--hc-inset: #ffffff; /* canvas.inset — separation is by border */
--hc-fg: #0e1116; /* fg.default, and fg.muted, which equals it */
--hc-subtle: #66707b; /* fg.subtle — the only softened ink */
--hc-border: #20252c; /* border.default */
--hc-border-soft: #88929d; /* border.muted */
--hc-accent: #0349b4; /* accent.fg */
--hc-danger: #a0111f; /* danger.fg */
--hc-success: #055d20; /* success.fg */
--hc-attention: #4e2c00; /* attention.fg */
--hc-severe: #702c00; /* severe.fg */
--hc-done: #622cbc; /* done.fg */
/* the extension's own tokens */
--calc-ink: var(--hc-fg);
--calc-muted: var(--hc-fg);
--calc-line: var(--hc-border);
--calc-grid: var(--hc-border-soft);
--calc-accent-a: var(--hc-accent);
--calc-accent-b: var(--hc-severe);
--calc-accent-c: var(--hc-success);
--calc-danger: var(--hc-danger);
--calc-surface: var(--hc-canvas);
--calc-faint: var(--hc-border-soft);
--calc-shadow: rgba(14, 17, 22, 0.4);
--calc-domface: var(--hc-canvas);
--calc-domtop: #d8dee4;
--calc-notecolor: var(--hc-attention);
--calc-furthercolor: var(--hc-done);
/* the page itself */
--bs-body-bg: var(--hc-canvas);
--bs-body-color: var(--hc-fg);
--bs-emphasis-color: var(--hc-fg);
--bs-secondary-color: var(--hc-fg);
--bs-tertiary-color: var(--hc-subtle);
--bs-border-color: var(--hc-border);
--bs-link-color: var(--hc-accent);
--bs-link-hover-color: var(--hc-accent);
--bs-code-color: var(--hc-fg);
--bs-heading-color: var(--hc-fg);
}
/* ----------------------------------------------------------------- dark -- */
html.hc body.quarto-dark {
/* Primer dark_high_contrast, except for the canvas: the theme's own
#0a0c10 still reads as a very dark grey next to a black one, so the page
goes fully black and every other value keeps its relation to it. */
--hc-canvas: #000000; /* canvas.default is #0a0c10 upstream */
--hc-inset: #000000; /* canvas.inset */
--hc-subtle-bg: #272b33; /* canvas.subtle */
--hc-fg: #f0f3f6; /* fg.default == fg.muted */
--hc-subtle: #9ea7b3; /* fg.subtle */
--hc-border: #7a828e; /* border.default */
--hc-border-soft: #7a828e; /* border.muted — the same in this theme */
--hc-accent: #71b7ff; /* accent.fg */
--hc-danger: #ff9492; /* danger.fg */
--hc-success: #26cd4d; /* success.fg */
--hc-attention: #f0b72f; /* attention.fg */
--hc-severe: #ff803d; /* severe.fg */
--hc-done: #cb9eff; /* done.fg */
/* a stroke on near-black wants the text colour, not the border grey */
--calc-line: var(--hc-fg);
--calc-grid: var(--hc-border);
--calc-domface: var(--hc-subtle-bg);
--calc-domtop: #3d444d;
--calc-shadow: rgba(1, 4, 9, 0.8);
}
/* the tokens that only alias, so they follow whichever block is in force */
html.hc body.quarto-dark {
--calc-ink: var(--hc-fg);
--calc-muted: var(--hc-fg);
--calc-accent-a: var(--hc-accent);
--calc-accent-b: var(--hc-severe);
--calc-accent-c: var(--hc-success);
--calc-danger: var(--hc-danger);
--calc-surface: var(--hc-canvas);
--calc-faint: var(--hc-border);
--calc-notecolor: var(--hc-attention);
--calc-furthercolor: var(--hc-done);
--bs-body-bg: var(--hc-canvas);
--bs-body-color: var(--hc-fg);
--bs-emphasis-color: var(--hc-fg);
--bs-secondary-color: var(--hc-fg);
--bs-tertiary-color: var(--hc-subtle);
--bs-border-color: var(--hc-border);
--bs-link-color: var(--hc-accent);
--bs-link-hover-color: var(--hc-accent);
--bs-code-color: var(--hc-fg);
--bs-heading-color: var(--hc-fg);
}
/* --------------------------------------------------------- page chrome -- */
/* Quarto's own furniture is compiled from the bootswatch theme, so the
variables above do not reach all of it. */
html.hc body {
background-color: var(--hc-canvas);
color: var(--hc-fg);
}
html.hc :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, caption, figcaption, th, td) {
color: var(--hc-fg);
}
html.hc :is(.text-muted, .quarto-figure figcaption, figcaption.figure-caption,
.quarto-title-meta-heading, .quarto-title-meta-contents,
.callout-title-container, .footnotes) {
color: var(--hc-fg);
}
html.hc a:not(.nav-link):not(.sidebar-item-text) { color: var(--hc-accent); }
html.hc a:focus-visible,
html.hc button:focus-visible,
html.hc summary:focus-visible { outline: 2px solid var(--hc-accent); outline-offset: 2px; }
html.hc :is(#quarto-sidebar, #quarto-margin-sidebar, .sidebar, .sidebar-navigation,
#quarto-header, .navbar, .quarto-secondary-nav) {
background-color: var(--hc-canvas);
color: var(--hc-fg);
border-color: var(--hc-border);
}
html.hc :is(.sidebar-item-text, .sidebar .nav-link, nav[role="doc-toc"] a, .navbar .nav-link,
.quarto-secondary-nav .nav-link) {
color: var(--hc-fg);
opacity: 1;
}
html.hc .sidebar nav[role="doc-toc"] ul > li > a,
html.hc .sidebar-navigation .sidebar-item a,
html.hc .sidebar-navigation .sidebar-item .sidebar-item-text {
color: var(--hc-fg);
opacity: 1;
}
/* the active entry: Quarto writes its colour with !important, so this is the
one place the palette has to answer in kind */
html.hc .sidebar nav[role="doc-toc"] ul > li > a.active,
html.hc .sidebar nav[role="doc-toc"] ul > li > ul > li > a.active,
html.hc .sidebar nav[role="doc-toc"] ul > li > a:hover,
html.hc .sidebar-navigation .sidebar-item a.active,
html.hc .sidebar-navigation .sidebar-item a:hover {
color: var(--hc-accent) !important;
border-left-color: var(--hc-accent);
font-weight: 600;
}
html.hc nav[role="doc-toc"] { border-left: 1px solid var(--hc-border-soft); }
/* the breadcrumb of the collapsed header carries its own fill in both
bootswatch themes, and its ink is the weakest contrast on the page */
html.hc .breadcrumb {
background-color: var(--hc-canvas);
border: 1px solid var(--hc-border);
}
html.hc :is(.breadcrumb, .breadcrumb-item, .breadcrumb-item a, .quarto-btn-toggle) {
color: var(--hc-fg);
}
html.hc .breadcrumb-item a { color: var(--hc-accent); }
html.hc :is(hr, .quarto-title-block .quarto-title-banner, header#title-block-header) {
border-color: var(--hc-border);
}
html.hc hr { background-color: var(--hc-border); opacity: 1; }
html.hc blockquote {
border-left: 4px solid var(--hc-border);
color: var(--hc-fg);
}
html.hc :is(table, th, td) { border-color: var(--hc-border-soft); }
html.hc thead { border-bottom: 2px solid var(--hc-border); }
/* ------------------------------------------------------------- code ----- */
/* GitHub's high-contrast themes give a block an outline instead of a fill. */
html.hc :is(pre, div.sourceCode, pre.sourceCode) {
background-color: var(--hc-inset);
border: 1px solid var(--hc-border);
color: var(--hc-fg);
}
html.hc :not(pre) > code {
background-color: var(--hc-inset);
border: 1px solid var(--hc-border-soft);
border-radius: 3px;
color: var(--hc-fg);
padding: 0 0.2em;
}
html.hc code { color: var(--hc-fg); }
/* the syntax palette of the same two themes, mapped onto pandoc's classes */
html.hc code span:is(.co, .cv, .do, .an, .in) { color: var(--hc-subtle); font-style: italic; }
html.hc code span:is(.kw, .cf) { color: var(--hc-danger); }
html.hc code span:is(.st, .ch, .sc, .ss, .vs){ color: #032563; }
html.hc code span:is(.dv, .bn, .fl, .cn) { color: #023b95; }
html.hc code span:is(.fu, .ex) { color: #512598; }
html.hc code span:is(.va, .at) { color: var(--hc-severe); }
html.hc code span:is(.dt, .bu) { color: var(--hc-success); }
html.hc code span:is(.im, .pp) { color: var(--hc-severe); }
html.hc code span:is(.er, .wa, .al) { color: var(--hc-danger); font-weight: 600; }
html.hc code span:is(.op, .ot) { color: var(--hc-fg); }
html.hc body.quarto-dark code span:is(.st, .ch, .sc, .ss, .vs) { color: #addcff; }
html.hc body.quarto-dark code span:is(.dv, .bn, .fl, .cn) { color: #91cbff; }
html.hc body.quarto-dark code span:is(.fu, .ex) { color: #dbb7ff; }
html.hc body.quarto-dark code span:is(.co, .cv, .do, .an, .in) { color: #bdc4cc; }
/* ------------------------------------------- the notes environments ----- */
/* out goes the tint; the outline carries the box, at full accent strength */
html.hc :is(.exo, .further, .quiz, .gls-inline, .gls-float, .calc-note,
.exo-sol, .exo-hint, .quiz-opt) {
background: var(--hc-canvas);
}
html.hc .exo { border-color: var(--calc-notecolor); }
html.hc :is(.exo-sol, .exo-hint) { border-color: var(--calc-notecolor); }
html.hc .exo-head strong,
html.hc .exo-hint > summary { color: var(--calc-notecolor); }
html.hc .further { border-color: var(--calc-furthercolor); }
html.hc .gls-float { border-color: var(--calc-notecolor); box-shadow: 0 4px 14px var(--calc-shadow); }
html.hc :is(.gls-inline, .calc-note) { border-left-width: 4px; }
html.hc .gls-sym { text-decoration-color: var(--calc-notecolor); }
html.hc .quiz { --quiz-ok: var(--hc-success); --quiz-bad: var(--hc-danger); --quiz-ink: var(--hc-fg); }
html.hc :is(.quiz-opt.quiz-ok, .quiz-opt.quiz-bad) { background: var(--hc-canvas); }
html.hc .quiz-opt.quiz-ok { outline: 2px solid var(--hc-success); }
html.hc .quiz-opt.quiz-bad { outline: 2px solid var(--hc-danger); }
/* Quarto's own callouts, so a page does not mix outlined boxes with filled
ones; the callout keeps its colour, in its left bar and its title */
html.hc .callout {
background-color: var(--hc-canvas) !important;
border: 1px solid var(--hc-border);
}
html.hc .callout > .callout-header {
background-color: var(--hc-canvas) !important;
border-bottom: 1px solid var(--hc-border-soft);
}
html.hc :is(.callout-body, .callout-title-container, .callout-body-container p) {
color: var(--hc-fg);
}
html.hc .callout.callout-style-default > div.callout-header { font-weight: 600; }
/* Quarto's search box: its widget is not themed by the bootswatch pair, so it
stays white on a dark page unless it is told otherwise (see theme.css) */
html.hc :is(.aa-Form, .aa-InputWrapper, .aa-Panel, .aa-Item) {
background-color: var(--hc-canvas);
color: var(--hc-fg);
border-color: var(--hc-border);
}
html.hc :is(.aa-Autocomplete, .aa-DetachedFormContainer)
.aa-Form .aa-InputWrapper .aa-Input,
html.hc :is(.aa-Autocomplete, .aa-DetachedFormContainer)
.aa-Form .aa-InputWrapperSuffix .aa-ClearButton,
html.hc :is(.aa-Autocomplete, .aa-DetachedFormContainer)
.aa-Form .aa-InputWrapperPrefix :is(.aa-Label, .aa-LoadingIndicator) svg {
color: var(--hc-fg);
}
html.hc :is(.aa-Autocomplete, .aa-DetachedFormContainer)
.aa-Form .aa-InputWrapper .aa-Input::placeholder {
color: var(--hc-fg);
opacity: 0.75;
}
/* the results panel: Quarto colours the cards through an id, so this does too */
html.hc :is(.aa-DetachedOverlay, #quarto-search-results) li.aa-Item .search-item,
html.hc :is(.aa-DetachedOverlay, #quarto-search-results) li.aa-Item .search-item
:is(.search-result-title-container, .search-result-text-container,
.search-result-section, .search-result-text, .search-result-more) {
background-color: var(--hc-canvas);
color: var(--hc-fg);
}
html.hc :is(.aa-DetachedOverlay, #quarto-search-results) li.aa-Item[aria-selected="true"] .search-item,
html.hc :is(.aa-DetachedOverlay, #quarto-search-results) li.aa-Item[aria-selected="true"] .search-item
:is(.search-result-title-container, .search-result-text-container,
.search-result-section, .search-result-text, .search-result-more) {
background-color: var(--hc-accent);
color: var(--hc-canvas);
}
/* a hit is marked by weight and a rule, not by a block of colour */
html.hc :is(.aa-DetachedOverlay, #quarto-search-results) li.aa-Item .search-item
:is(mark.search-match, .search-match.mark) {
background-color: transparent;
color: inherit;
font-weight: 700;
text-decoration: underline;
}
/* the figure buttons of the animated schemes */
html.hc :is(.ns-btn, .nc-btn, .nd-replay) {
background: var(--hc-canvas);
color: var(--hc-fg);
border-color: var(--hc-border);
}
html.hc :is(.notes-spiral, .notes-cantor) :is(.ns-btn, .nc-btn)[aria-pressed="true"] {
background: var(--hc-canvas);
border-color: var(--hc-accent);
color: var(--hc-accent);
font-weight: 600;
}
/* the last tinted fills: a calc box and a note keep their outline instead */
html.hc :is(.calc-box, .calc-note, .calc-note[open]) { background: transparent; }