Files
ProcessControl/theme.scss
T
MatsuneMikuroiandClaude Opus 5 f7fa60ba81 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>
2026-10-06 03:36:51 +02:00

139 lines
4.8 KiB
SCSS

/*-- scss:defaults --*/
// Fonts — IBM Plex, one superfamily in three roles. Designed for
// technical documentation, which is what this is.
$web-font-path: "https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Serif:ital,wght@0,400;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap";
$font-family-sans-serif: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
$font-family-serif: "IBM Plex Serif", Georgia, serif;
$font-family-monospace: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
$font-size-root: 17px;
$line-height-base: 1.66;
// 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 --*/
body {
font-family: $font-family-serif;
}
// Headings, sidebar, tables and code all use the sans/mono faces.
h1, h2, h3, h4, h5, h6,
.sidebar, .quarto-title-block, #quarto-margin-sidebar,
.callout-title, table, .quarto-figure figcaption {
font-family: $font-family-sans-serif;
}
h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-weight: 600; }
h2 {
font-weight: 600;
border-bottom: 1px solid var(--calc-faint, #e7e9ec);
padding-bottom: .3rem;
margin-top: 2.6rem;
}
h3 { font-weight: 600; color: var(--calc-notecolor, #20666f); margin-top: 1.9rem; }
p, li { max-width: 78ch; }
// ---- tables ---------------------------------------------------------
// The book is table-heavy; keep them airy, hairline-ruled, scrollable.
.table-wrapper, .cell-output-display { overflow-x: auto; }
table {
font-size: .89rem;
border-collapse: collapse;
width: 100%;
margin: 1.3rem 0;
}
thead th {
color: var(--calc-notecolor, #20666f);
font-weight: 600;
text-align: left;
border-bottom: 2px solid var(--calc-line, #444444) !important;
padding: .55rem .8rem .55rem 0;
vertical-align: bottom;
}
tbody td {
border-bottom: 1px solid var(--calc-faint, #e7e9ec);
padding: .5rem .8rem .5rem 0;
vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
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 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. 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;
margin: 1.4rem 0;
}
.callout.callout-style-default > .callout-header {
background: transparent;
font-family: $font-family-sans-serif;
font-weight: 600;
font-size: .88rem;
padding-bottom: .1rem;
}
.callout-body p { max-width: 74ch; }
.callout-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: 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 var(--calc-notecolor, #20666f);
padding-left: 1.2rem;
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; }
// ---- print ----------------------------------------------------------
// Printing the HTML is a fallback; the PDF format is the real print path.
@media print {
.sidebar, #quarto-margin-sidebar, .nav-page, #quarto-header { display: none !important; }
body { font-size: 10.5pt; }
h1 { break-before: page; }
table, pre, .callout { break-inside: avoid; }
}