Files
ProcessControl/_book/fr/site_libs/quarto-contrib/calc-notes-2.9.1/narrow.css
T
MatsuneMikuroiandClaude Fable 5.1 f047b9c7ae 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>
2026-10-16 09:44:27 +02:00

107 lines
5.0 KiB
CSS

/* narrow.css — the book on a phone.
Nothing in the flow may be wider than the screen: a wide formula, table or
figure scrolls inside its own box instead of pushing the whole page
sideways (which leaves the text cut off at the left edge).
Loaded with calc-notes.css, so every page of every book gets it. */
/* --- display maths ------------------------------------------------------
The boxes of this extension (.calc, .exo, .further) already scroll their
own maths; this covers every other display formula on the page. */
:is(main, .quarto-title-block) :is(mjx-container[display="true"], .math.display) {
max-width: 100%;
overflow-x: auto;
overflow-y: hidden; /* Firefox computes phantom vertical overflow */
padding-bottom: 0.35em; /* keep descenders clear of a scrollbar */
/* a centred formula that overflows would hide its left side out of reach,
so centre it only while it fits */
justify-content: safe center;
}
/* --- everything else that can be wider than a phone ---------------------- */
main :is(pre, .sourceCode) { max-width: 100%; overflow-x: auto; }
main :is(img, svg) { max-width: 100%; height: auto; }
main table:not(.ltx-table) { display: block; max-width: 100%; overflow-x: auto; }
/* the animated figures of lesson-style chapters */
.notes-cantor, .notes-spiral, .notes-dominos { max-width: 100%; overflow-x: auto; }
/* the glossary popup: never wider than the screen */
.gls-float { max-width: min(92vw, 26rem); }
/* --- phone-sized screens ------------------------------------------------- */
@media (max-width: 575.98px) {
/* the equation number of a labelled calc block goes under the line, so the
formula keeps the full width */
.calc { grid-template-columns: max-content 1fr; }
/* figure captions and the fold summaries read better tight */
.exo, .further { padding-left: 0.6rem; padding-right: 0.6rem; }
/* A bare url in prose, or a long identifier in a code span, is one word to
the line breaker and paints past its block on a narrow screen — no
element is oversized, so only the text itself overflows. */
#quarto-document-content :is(a, code) { overflow-wrap: break-word; }
/* Quarto lets inline code wrap only inside a <p> (white-space: pre-wrap);
in a list item or a table it keeps one line, and a formula such as
"{PersN} → {PersN, Name, Position, Room, …}" pushed a page to 947px. */
#quarto-document-content :not(pre) > code:not(.sourceCode) { white-space: pre-wrap; }
/* A long compound in running text — "Unternehmensarchitekturmanagement" in
a list item is 348px — has no break opportunity. The page's lang picks
the hyphenation dictionary; overflow-wrap is the fallback without one. */
#quarto-document-content { hyphens: auto; overflow-wrap: break-word; }
/* An inline formula MathJax cannot break (one long fraction or product)
is wider than a phone: 413px in ModernPhysics' first exercise. It scrolls
inside its own box instead of pushing the page; the padding keeps tall
glyphs clear of the box's edge. */
/* A Bootstrap grid (::: {.grid} with .g-col-* items) has 12 columns and 11
gaps of 1.5rem: 264px of gaps alone, more than a callout on a phone
(248px in SoftwareEngineering's git appendix), so the columns collapse to
0 and a full-width item overflows. A smaller gap keeps the layout;
min-width: 0 lets an item's text wrap instead of widening its track. */
.grid { --bs-gap: 0.75rem; }
.grid > [class*="g-col"] { min-width: 0; }
#quarto-document-content mjx-container:not([display="true"]) {
display: inline-block;
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
vertical-align: middle;
padding-block: 0.15em;
}
/* Quarto's own previous/next footer: the chapter titles are laid out in a
row that will not shrink, so a long title pushes the page sideways. */
.page-navigation { flex-wrap: wrap; row-gap: 0.75em; }
.nav-page, .nav-page .nav-page-text { min-width: 0; }
.nav-page .chapter-title { overflow-wrap: break-word; }
/* A long compound in a heading — "Implementierungsentscheidungen" is 366px
at h3 size — is wider than a 320px screen. The page's lang picks the
hyphenation dictionary; overflow-wrap is the fallback without one. */
#quarto-document-content :is(h1, h2, h3, h4, h5, h6),
.quarto-title .title {
hyphens: auto;
overflow-wrap: break-word;
}
/* The bar at the top of a phone page: menu button, the chapter's title,
search. The title is a flex item that will not shrink, so a long one
("3 Komplexitätsanalyse" in darkly's wider font) pushes the search button
off the screen. It now shrinks and ends in an ellipsis. */
.quarto-secondary-nav nav.quarto-page-breadcrumbs { min-width: 0; }
.quarto-secondary-nav nav.quarto-page-breadcrumbs .breadcrumb {
flex-wrap: nowrap;
min-width: 0;
}
.quarto-secondary-nav nav.quarto-page-breadcrumbs .breadcrumb-item {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}