Night-mode styling, French cross-references, and the log through Part VI

- theme.scss and figures draw with the extension's --calc-… tokens; light/dark
  pair plus the high-contrast button; a11y highlight style for html
- figure labels split so none leaves its viewBox in any language
- _quarto-fr.yml: French cross-reference prefixes
- notes extension synced to 2.8.18
- conv/: Parts IV, V and VI logged, pasted terminal output redacted

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
MatsuneMikuroiandClaude Opus 5 committed 2026-10-06 03:36:51 +02:00
1 parent afb816f459
commit f7fa60ba81
62 files changed
+3552 -852

No files matched your search

+31 -34
View File
@@ -11,25 +11,11 @@ $font-family-monospace: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospa
$font-size-root: 17px;
$line-height-base: 1.66;
// Palette — cool technical, teal structure with an ochre warning accent.
$body-bg: #fbfcfd;
$body-color: #1b2430;
$link-color: #20666f;
$primary: #20666f;
$secondary: #5a6879;
$code-bg: #eef3f7;
$code-color: #1b2430;
$code-block-bg: #eef3f7;
$border-color: #dae0e8;
$toc-color: #5a6879;
$toc-active-border:#20666f;
// Callout colours — Exam trap (amber) and Note (teal).
$callout-color-warning: #8a5a08;
$callout-color-note: #20666f;
// No palette here. The canvas, body text and link colours come from cosmo in
// light mode and darkly in night mode, and everything this sheet draws itself
// uses a --calc-… token from the extension's theme.css, which carries all
// three modes (light, night, high contrast). The book's own accent is
// `notecolor:` in _quarto.yml, reachable as var(--calc-notecolor).
/*-- scss:rules --*/
@@ -49,11 +35,11 @@ h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-weight: 600; }
h2 {
font-weight: 600;
border-bottom: 1px solid $border-color;
border-bottom: 1px solid var(--calc-faint, #e7e9ec);
padding-bottom: .3rem;
margin-top: 2.6rem;
}
h3 { font-weight: 600; color: $primary; margin-top: 1.9rem; }
h3 { font-weight: 600; color: var(--calc-notecolor, #20666f); margin-top: 1.9rem; }
p, li { max-width: 78ch; }
@@ -68,15 +54,15 @@ table {
margin: 1.3rem 0;
}
thead th {
color: $primary;
color: var(--calc-notecolor, #20666f);
font-weight: 600;
text-align: left;
border-bottom: 2px solid $border-color !important;
border-bottom: 2px solid var(--calc-line, #444444) !important;
padding: .55rem .8rem .55rem 0;
vertical-align: bottom;
}
tbody td {
border-bottom: 1px solid $border-color;
border-bottom: 1px solid var(--calc-faint, #e7e9ec);
padding: .5rem .8rem .5rem 0;
vertical-align: top;
}
@@ -86,14 +72,20 @@ th:last-child, td:last-child { padding-right: 0; }
// ---- code -----------------------------------------------------------
pre, code { font-family: $font-family-monospace; }
code { font-size: .86em; }
// The inline-code pill (Bootstrap's gray-100, which darkly leaves alone, so
// night mode read 1.05:1) is tinted by the extension's theme.css since 2.8.9,
// which keeps each theme's own code colour. Nothing to do here.
div.sourceCode, pre {
border: 1px solid $border-color;
border: 1px solid var(--calc-faint, #e7e9ec);
border-radius: 4px;
}
pre code { font-size: .83rem; line-height: 1.5; }
// ---- callouts -------------------------------------------------------
// Flat left-bar boxes rather than Quarto's default cards.
// Flat left-bar boxes rather than Quarto's default cards. The tint is the
// page's own surface, so night mode and high contrast keep working; the bar
// carries the colour.
.callout {
border-radius: 0 3px 3px 0;
border-left-width: 3px !important;
@@ -109,24 +101,29 @@ pre code { font-size: .83rem; line-height: 1.5; }
.callout-body p { max-width: 74ch; }
.callout-warning {
background-color: #f8f1e0;
border-left-color: $callout-color-warning !important;
.callout-title, .callout-icon::before { color: $callout-color-warning; }
background-color: transparent;
border-left-color: var(--calc-accent-b, #D1541F) !important;
.callout-title, .callout-icon::before { color: var(--calc-accent-b, #D1541F); }
}
.callout-note {
background-color: #e5eff1;
border-left-color: $callout-color-note !important;
.callout-title, .callout-icon::before { color: $callout-color-note; }
background-color: transparent;
border-left-color: var(--calc-notecolor, #20666f) !important;
.callout-title, .callout-icon::before { color: var(--calc-notecolor, #20666f); }
}
// ---- blockquotes ----------------------------------------------------
// The colour of quoted text is the extension's since 2.8.9 (--calc-muted, the
// quieter reading); this book only draws the accent bar.
blockquote {
border-left: 3px solid $primary;
border-left: 3px solid var(--calc-notecolor, #20666f);
padding-left: 1.2rem;
color: $body-color;
font-style: normal;
}
// Breadcrumbs: the grey current crumb and separators are handled by the
// extension's theme.css since 2.8.5 (it also covers the mobile secondary-nav
// separators), so this book carries no rule of its own for them.
// ---- sidebar --------------------------------------------------------
.sidebar-item-text { font-size: .86rem; }
.sidebar nav[role="doc-toc"] ul > li > a.active { font-weight: 600; }